Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

POLUu n 5: Total Purchase A customer in a store is purchasing five items. Write a program that asks for the price of each item,

image text in transcribed
image text in transcribed
POLUu n 5: Total Purchase A customer in a store is purchasing five items. Write a program that asks for the price of each item, then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 7 percent. Formatting tip: (Tip: see slide 24 & 25 in PowerPoint for a guide and lining up decimals) Do all 5 Programs in ONE file: eric Ch 1 of your program: Page 1 #5 Calculate Project Must use 5 input statement to ask for 5 prices (tip: all money input must be float) Must show all items and their total (items, subtotal, tax, total) Decimals must line up Tip: "format(iteml, "10,.21) the 10 is a field width , 2f - inserts a comma with 2 decimal points for a floating point number Sample Output: Item 1 1,000.00 Item 2 500.00 Item 3 25.25 Item 4 25.25 Item 5 100.00 Subtotal 1,650.00 Tax 7% 115.50 Total 1,765,50 Your prices will vary!!! Page 2

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

Students also viewed these Databases questions

Question

What is Constitution, Political System and Public Policy? In India

Answered: 1 week ago

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago

Question

What is the orientation toward time?

Answered: 1 week ago

Question

4. How is culture a contested site?

Answered: 1 week ago