Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

What is a no-load or low-load life insurance policy? Explain.

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago