Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Alter the program to meet the new specifications. // This program accepts any number of purchase prices // and computes state sales tax as 6%

Alter the program to meet the new specifications. image text in transcribed

// This program accepts any number of purchase prices // and computes state sales tax as 6% of the value // and city sales tax as 2% of the value // Modify the program so that the user enters /i the two tax rates // at the start of the program start Declarations num price num STATE TAX RATE = 0.06 num CITY TAX RATE = 0.02 num totalTax num total startUp() while price not equal to e mainLoop) endwhile finishUp() stop startUpO output "Enter a price or 0 to quit" input price return minoop) totalTaxpriceSTATE TAX RATE price CITY_TAX_RATE total price tota!Tax output "Price is ", price, "and total tax is ", totalTax output "Total is ", total output "Enter a price or 0 to quit" input price return finishUp) return output "End of program

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

=+Are there shop stewards?

Answered: 1 week ago