Question: 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. Alter the program to meet the new specifications. // This program accepts

// 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

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!