You will need to create at leasttwo functions: a main() function that will contr
ID: 3613541 • Letter: Y
Question
You will need to create at leasttwo functions: a main() function that will control youroverall program flow, and a function that you will call from main()to calculate the amount of tax required. You will need tohave a user interface in main() that requests input from the user,and then reads in that input. You must then pass the $ amountof the new item as a parameter to a function that computes theamount of tax and returns that amount using a return statement. Upon returning to main(), you will need to use formattedprintf statements to neatly print a statement to the user tellinghim/her the amount of tax that will be charged on the current item,and the total cost of the item, including tax.
Your user interface will need touse a loop to continue to process tax calculation requests as longas the user wishes to do so. (You will need to set up sometype of query or specific input so that you will know when the useris done.) At some point, you should inform the user as to thetax rate being used for your calculations (the value of thesymbolic constant TAX).
Explanation / Answer
please rate - thanks #include #include #define TAX .08 double calctax(double); int main() {double price, total,tax; printf("The tax rate is %.2lf%% ",TAX*100.); printf("Enter the item price (Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.