Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in C++ that uses a structure to store the following data on a company division. - Division Name (East, West, North or

Write a program in C++ that uses a structure to store the following data on a company division.

- Division Name (East, West, North or South)

- Quarter (1, 2, 3 or 4)

- Quarterly Sales

The user should be asked for the four quarters sales figures for the East, West, North and South divisions. The data for each quarter for each division should be written to a file called salesreport.txt.

Input validation

- Do not accept negative numbers for any sales figures.

- Standardize users Division Name input to East, West, North or South

Please also answer the following questions:

1. What members will your structure contain? What is the data type of each member?

2. How will data be organized in your output file.

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

Which personal relationships influenced you the most?

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

How was your life influenced by those events?

Answered: 1 week ago