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, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
Answers: 1
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
You know the right answer?
Althe the program to meet the new specifications.

// this program accepts any number of...
Questions
question
Mathematics, 22.04.2020 21:24
Questions on the website: 13722359