Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions