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, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
question
Computers and Technology, 24.06.2019 16:30
Which program can damage your computer?
Answers: 1
question
Computers and Technology, 25.06.2019 00:40
Roger ginde is developing a program in supply chain management certification for managers. ginde has listed a number of activities that must be completed before a training program of this nature could be conducted. the activities, immediate predecessors, and times appear in the accompanying table: activity immediate predecessor(s) time (days) a -− 44b -− 55 c -− 11 d b 1010 e a, d 55 f c 55 g e, f 1010 calculate the slack time. show the details.
Answers: 2
You know the right answer?
Althe the program to meet the new specifications.

// this program accepts any number of...
Questions
question
Arts, 06.03.2021 01:00
question
Mathematics, 06.03.2021 01:00
question
Mathematics, 06.03.2021 01:00
question
Mathematics, 06.03.2021 01:00
question
Mathematics, 06.03.2021 01:00
question
Mathematics, 06.03.2021 01:00
question
English, 06.03.2021 01:00
question
Mathematics, 06.03.2021 01:00
Questions on the website: 13722363