Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++)

  1. Declare variables and constants.

  2. Issue welcome message

  3. 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.

  4. Ask for sales by quarter for region1; the user should enter 4 sales $ amounts.

    1. use cin >> q1r1 >> q2r1 >> q3r1>> q4r1; to obtain input in one line.

  5. Ask for sales by quarter for region2; the user should enter 4 sales $ amounts.

  6. Ask for sales by quarter for region3; the user should enter 4 sales $ amounts.

  7. Compute quarterly totals

  8. Compute regional sales totals

  9. Display tabular report heading with the device name

  10. Display column headings

  11. Use iomanipulators to display fixed decimal values with 2 decimals. Zeroes after the decimal place must be shown.

  12. Use setw(n) properly to generate columns

  13. Display quarterly and regional totals

  14. 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)

  15. 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.

  16. 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

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions