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 18:00
Assume that you have an array of integers named a. which of these code segments print the same results? int i = 1; while(i < a.length) { system.out.println(a[i]); i++; } int i; for (i = 0; i < a.length; i++) { system.out.println(a[i]); } for (int i : a) { system.out.println(i); } i and ii only ii and iii only i and iii only all three print the same results. all three print different results.
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Suppose you have 9 coins and one of them is heavier than others. other 8 coins weight equally. you are also given a balance. develop and algorithm to determine the heavy coin using only two measurements with the of the balance. clearly write your algorithm in the form of a pseudocode using the similar notation that we have used in the class to represent sorting algorithms
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
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, 16.09.2020 04:01
question
Social Studies, 16.09.2020 04:01
question
English, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
question
Mathematics, 16.09.2020 04:01
Questions on the website: 13722359