Calculate the sales tax


Write a program to input a purchase amount and calculate the sales tax and total do. The SalesTax depends on the county identifying code. County's with a number less than eight have a 5% sales tax. The 8-20 Kos have a sales tax of 6%. Codes above 20 have a sales tax of 7%. The purchase amount in county code entered by the user. Use a loop to validate that the county code is between five and 30. Display the amount of the sales tax and the total.

Request for Solution File

Ask an Expert for Answer!!
Microeconomics: Calculate the sales tax
Reference No:- TGS0535115

Expected delivery within 24 Hours