Tcos 24 5 and 8 write a program to input a purchase amount


(TCOs 2,4, 5, and 8) Write a program to input a purchase amount and calculate the sales tax and total due. The sales tax depends on the county identifying code. Counties with a number less than 20 have a 5% sales tax. The 21-35 codes have a sales tax of 6%. Codes above 35 have a sales tax of 7%. The purchase amount and county code are entered by the user. Use a loop to validate that the county code is between 10 and 40. Display the amount of the sales tax and the total.

 

 

Request for Solution File

Ask an Expert for Answer!!
Chemistry: Tcos 24 5 and 8 write a program to input a purchase amount
Reference No:- TGS01196312

Expected delivery within 24 Hours