subject

// 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// the two tax rates// at the start of the pricenum STATE_TAX_RATE = 0.06num CITY_TAX_RATE = 0.02num totalTaxnum totalstartUp()while price not equal to 0mainLoop()endwhilefinishUp()stopst artUp()output "Enter a price or 0 to quit"input pricereturnmainLoop()totalTax = price * STATE_TAX_RATE + price * CITY_TAX_RATEtotal = price + totalTaxoutput "Price is " , price, " and total tax is ", totalTaxoutput "Total is ", totaloutput "Enter a price or 0 to quit"input pricereturnfinishUp()output "End of program"return

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
Explain briefly why you cannot expect to find a previous version of every file with which you work.
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
Ryan is working on the layout of her web page. she needs to figure out where her header, navigation bar, text, and images should go. what technique can her?
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
You know the right answer?
// This program accepts any number of purchase prices// and computes state sales tax as 6% of the va...
Questions
question
Mathematics, 27.05.2020 21:00