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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
question
Computers and Technology, 24.06.2019 07:20
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
You know the right answer?
Acorpora tion has six divisions, each respons ible for sales to differen t geograph ic loca tions. d...
Questions
question
Mathematics, 06.11.2019 06:31
question
Mathematics, 06.11.2019 06:31
Questions on the website: 13722360