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:
- 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.
- 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
Get step-by-step solutions from verified subject matter experts
