Programming
Instructions
Follow these instructions to complete your assignment:
1. Write a flowchart (or pseudocode) and C code for a program that does the following:
·
· Declares variables with float (real) data types.
· Assigns the tax rate = .08
· Asks the user to enter the sales amount
· Computes the sales tax by multiplying the sales by the tax rate
· Displays the sales tax with the appropriate message
· Create an assignment statement that computes the total sales, including the tax amount.
· Output a final message along with the total sales amount
· Be sure to add comments throughout your program describing what is happening
2. Submit one Word document which contains:
·
· A screenshot of your code
· A screenshot of your output including the Title Bar of the console window.
· Pseudocode if you did not create a flowchart
3. Submit the “.c” code file, which should include a comment line with your name and the date. You should NOT save your file with a .cpp file extension.
4. Submit the Flowgorithm (.fprg) file if you decided not to create pseudocode.
Review the output below to check your work!
Here is what the program looks like when it's executed: