Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:30, donmak3833
Agood flowchart alludes to both the inputs and outputs you will need to receive and give to the user. true or false?
Answers: 3
image
Computers and Technology, 22.06.2019 07:30, DivineMemes420
What type of computer network ensures high security ?
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, lopez7512
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, kaylee2828
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
Do you know the correct answer?
Acorpora tion has six divisions, each respons ible for sales to differen t geograph ic loca tions. d...

Questions in other subjects:

Konu
History, 29.10.2019 00:31
Konu
Mathematics, 29.10.2019 00:31