Write a program that asks the User to enter the number of packages purchased.

Responsive Centered Red Button

Need Help with this Question or something similar to this? We got you! Just fill out the order form (follow the link below), and your paper will be assigned to an expert to help you ASAP.

Learning Goal: I’m working on a python multi-part question and need an explanation and answer to help me learn.General information/requirements/grading rulesAdhere to the naming conventions discussed in class for variable names, program name and function names
Use meaningful names for variables
If there are two words in the variable use first word lowercase and first letter of second wordupper case i.e., firstName or underscore between 2 words i.e first_name
Include appropriate comments in the code
Output should be displayed exactly as mentioned against each problem
Indent the lines of code appropriate
Write a program that displays all of the prime numbers from 1 through 10. The program should have a loop that calls the is_prime function.Hints:Declare local variables under main() programFor each number, print whether or not it is prime. Write for loop, use range function to loop through the total numbers. Call is_prime function print if the number is prime or not prime Define is_prime function, ‘def is_prime(number):’ The is_prime function receives a number as an argument, and returns True if number is prime, False otherwise. Sample Output:number is prime————————1 not prime2 prime3 prime4 not prime5 prime6 not prime7 prime8 not prime9 not prime10 not primeA software company sells a package that retails for $99. Quantity discounts are as follows: QuantityDiscount10 -1910%20 – 4920%50 – 9930%100 or more 40%Write a program that asks the User to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Hints:Declare local variables Prompt the user to enter packages purchased Calculate the discount amount and the total with discount.Sample Output:If the number of packages purchased was 88Discount Amount: $ 2613.60Total Amount: $ 6098.40Write a program that will calculate the amount of money a person would earn over a period of time if his/her salary is one penny the first day and two pennies for the second day, and continue to double each day. Hints:1. Declare variables2. Get the number of days from the user.3. Show the salary table for each day4. Use ‘for loop’ to loop through the range of days 5. Display the total pay in dollarsOutput: if number of the days entered is 10 the output looks like the belowDay Pennies————————-1 $ 0.012 $ 0.023 $ 0.044 $ 0.085 $ 0.166 $ 0.327 $ 0.648 $ 1.289 $ 2.5610 $ 5.12The total salary for 10 days is: $ 10.23Write a program that asks the user to enter the amount that he/she have budgeted for a month. A loop should then prompt the user to enter each of his/her expenses for the month and keep a running total. When the loop finishes, the program should display the amount that the user is over or under budget. Hints:1. Declare variables2. Get the budgeted amount from the user.3. Get the total amount spent from the user. Use a while loop to go through the amount and keep the running total. 4. Display the result i.e budgeted and total spent 5. If budget is greater than total , display WELL DONE!6. If budget is less than total , display PLAN BETTER NEXT TIME!7. Else display GOOD PLANNING!
Requirements: answer   |   .doc file

How to create Testimonial Carousel using Bootstrap5

Clients' Reviews about Our Services