Question: Submit the Python code and the program design (pseudocode or flowchart) for each of the following questions: A tea company sells a box of tea

Submit the Python code and the program design (pseudocode or flowchart) for each of the following questions:

  1. A tea company sells a box of tea that retails for $15. A 20% quantity discount is given for purchasing 10 or more boxes of tea. Write a program that asks the user to enter the number of tea boxes purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.

  1. The area of a rectangle is the rectangle's length times its width. Write a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has a greater area.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!