Problem #1 write pseudocode for a program that calculates and displays the total
ID: 3780963 • Letter: P
Question
Problem #1 write pseudocode for a program that calculates and displays the total retail price of an item sold at a store. The total retail price of a sale item is the price of an item before sales tax plus the amount of sales tax on the item. The program will need to get the sales tax rate and the price of the item before sales tax from the user in order to calculate the total retail price of the item. The program should output (display) the calculated amount of sales tax on the item and the total calculated total retail price of the item.
Explanation / Answer
pseudocode:
print "enter total amount of the sale"
get total sale_amount
print "enter total sale tax rate"
get total sale_tax_rate
total_retailsale=(sale_tax_rate * sale_amount) + sale_amount
print "total amount of sale: $" sale_amount
print "sale tax: $" sale_tax_rate * sale_amount
print "total sale: $" total_retailsale
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.