Question
Hello! So I'm currently programming a sales report program. I cannot figure out how to put the data into a column for question ten. (This
Hello! So I'm currently programming a sales report program. I cannot figure out how to put the data into a column for question ten. (This is for C++)
-
Declare variables and constants.
-
Issue welcome message
-
Request the device name (Encourager or Stimulator) and store in a string variable you may use cin or getline no spaces will be in the name.
-
Ask for sales by quarter for region1; the user should enter 4 sales $ amounts.
-
use cin >> q1r1 >> q2r1 >> q3r1>> q4r1; to obtain input in one line.
-
-
Ask for sales by quarter for region2; the user should enter 4 sales $ amounts.
-
Ask for sales by quarter for region3; the user should enter 4 sales $ amounts.
-
Compute quarterly totals
-
Compute regional sales totals
-
Display tabular report heading with the device name
-
Display column headings
-
Use iomanipulators to display fixed decimal values with 2 decimals. Zeroes after the decimal place must be shown.
-
Use setw(n) properly to generate columns
-
Display quarterly and regional totals
-
Determine the region number with the highest sales. (Extra credit if you identify the region number in the message in addition to the highest sales amount)
-
Display a congratulations message to the region number with the highest total sales for the year. If you do not determine the highest region (extra credit), just congratulate CSDE for the high sales.
-
Please note that output of all costs will be formatted. For example, 395.5 must be displayed as 395.50.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started