Answered step by step
Verified Expert Solution
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.
// 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 programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started