subject

Althe 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
// 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 0
mainloop()
endwhile
finishup()
stop

startup()
output "enter a price or 0 to quit"
input price
return

mainloop()
totaltax = price * state_tax_rate + price * city_tax_rate
total = price + totaltax
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()
output "end of program"
return

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
question
Computers and Technology, 23.06.2019 22:50
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
Which of the statements below describe the guidelines for the use of text in presentation programs? a. do not use numbered lists. b. fonts should be appropriate for your audience. c. limit the number of fonts you use to three or four. d. only use bulleted lists for sales promotions. e. select font sizes that are appropriate for your delivery method. f. use font colors that work well with your background. select all that apply
Answers: 1
You know the right answer?
Althe the program to meet the new specifications.

// this program accepts any number of...
Questions
question
Mathematics, 17.06.2020 21:57
question
Mathematics, 17.06.2020 21:57
question
Engineering, 17.06.2020 21:57
question
Mathematics, 17.06.2020 21:57
Questions on the website: 13722362