The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Use psuedocode to design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 3.45 percent and the county sales tax is 8.75 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax). Hint: Use the value 0.0875 to represent 8.75 percent, and 0.0345 to represent 3.45 percent
I have attached what I believe to be correct. Please go over it and check
Declare real purchaseAmount, stateTaxAmount, countyTaxAmount, totalTax, saleTotal
Constant real stateTaxRate = .0345
Constant real countyTaxRate = .0875
Display “Please enter the amount of purchase”
Input purchaseAmount
Set stateTaxAmount = purchaseAmount * stateTaxRate
Set countyTaxAmount = purchaseAmount * countyTaxRate
Set totalTax = stateTaxAmount + countyTaxAmount
Set saleTotal = purchaseAmount + totalTax
Display “Amount of Purchase:$” , purchaseAmount
Display “ State Sales Tax:$” , stateTaxAmount
Display “ County Sales Tax:$” , countyTaxAmount
Display “ Total Sales Tax:$” , totalTax
Display “ Total Sale Amount:$” , saleTotal
-----------