Question: C++ 3. 4. Always use braces to define blocks 5. our code well and follo w proper formatting and indentation. Use meaningful variable names following
3. 4. Always use braces to define blocks 5. our code well and follo w proper formatting and indentation. Use meaningful variable names following camelCase convention 6. Do not use infinite loop conditions, such as while (1), etc. 7. Comment your code to clarify your thoughts if needed. 8. Do NOT comment every single line of code 9. Name each program problemX.cpp where X is the problem number, e.g. problem1.cpp 10. Upload your individual cpp files to Canvas named problem1, problem2, etc Warning: Entirely commented files will receive 10% penalty. Problem Sales Tax 10 points Write a program that calculates the sales tax. Prompt the user to enter the price of an item. Assume the state sales tax is 7.25 and the county tax is 2. Print out the sales tax for each and the total price. Format your output nicely that all numbers and decimals align as shown in the example! Limit decimals to two digits. Enter price: 95.5 Your total price is ttemi State tax:92 County tax; 1.91 95.50 Total Price: 104.33
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
