Question
IN PYTHON 1. A video club wants to reward its best members with a discount based on the members number of movie rentals and the
IN PYTHON
1. A video club wants to reward its best members with a discount based on the members number of movie rentals and the number of new members referred by the member. The discount is in percent and is equal to the sum of the rentals and the referrals, but it cannot exceed 75 percent. Write a program to calculate the value of the discount.
Here is a sample run:
Enter the number of movie rentals: 56
Enter the number of members referred to the video club: 3
The discount is equal to 59%.
#copy and paste your code here (including the file header comment)
2. The Fast Freight Shipping Company charges the following rates. Write a program that asks the user to enter the weight of a package then displays the shipping charges.
Weight of Package | Rate per Pound |
---|---|
2 pounds or less | $1.50 |
Over 2 pounds but not more than 6 pounds | $3.00 |
Over 6 pounds but not more than 10 pounds | $4.00 |
Over 10 pounds | $4.75 |
#copy and paste your code here (including the file header comment)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started