subject

Acorpora tion has six divisions, each respons ible for sales to differen t geograph ic loca tions. design a di vsal es class that keeps sales data for a division, with the following members: • an array with four elements for holding four quarters of sales figures for the division. • a private stat ic variable for holding the tota l corporate sales for all divisions for the entire year. • a member function that takes four arguments, each assumed to be the sales for a quarte r. the value of the arguments should be copied into the array that holds the sales data . the total of the four argumen ts shou ld be added to the static variable that holds the tota l yearly corpora te sales. • a function that takes an integer argument within the range of oto 3. the argument is to be used as a subscript into the division quarterly sales array . the function should return the value of the array element with that subscript. write a program that creates an array of six di vsal es objects. the program should ask the user to enter the sales for four quarte rs for each division. after the data is entered, the program should display a table showing the division sales for each quarter. the program should then display the total corporate sales for the year.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:00, candiceforever123
Idon understand these and need some ! ?
Answers: 2
image
Computers and Technology, 22.06.2019 08:00, jcastronakaya
Apex q: what does a low employment rate indicate? a. not many people are earning high salaries b. not many people are going to college c. not many people are renting their homes d. not many people have jobs
Answers: 2
image
Computers and Technology, 22.06.2019 10:00, ozzy55
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
image
Computers and Technology, 22.06.2019 10:30, robert7248
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
You know the right answer?
Acorpora tion has six divisions, each respons ible for sales to differen t geograph ic loca tions. d...

Questions in other subjects:

Konu
Mathematics, 19.02.2021 20:10
Konu
Mathematics, 19.02.2021 20:10
Konu
Mathematics, 19.02.2021 20:10
Konu
English, 19.02.2021 20:10