subject

The company array contains the amounts the company sold both domestically and internationally during the months of January through June. The first row contains the domestic sales for the six months. The second row contains the international sales during the same period. 1. What value is stored in the company[1][5] element?
2. How can you calculate the total company sales made in February?
3. What is the highest row subscript in the company array? What is the highest column subscript in the array?
4. If the January domestic sales are stored in the company[0][0] element, where are the January international sales stored?
5. If you change the for clause in Line 16 to for (int month = 1; month <= 6; month += 1), how will the change affect the assignment statement in the for loop?
6. Run the program. The total company sales are $643900.
7. Modify the program so that it displays the total domestic sales, total international sales, and total company sales. Save and then run the program. (The total domestic sales are $345500.) Take a print screen of the output screen and copy the code and paste bother here.
8. Next, modify the program so that it also displays the total sales made in each month. Save and then run the program. (The total January sales are $115000.) Take a print screen of the output screen and copy the code and paste bother here.
Program:
//Lab - calculates the total company sales
#include "stdafx. h"
#include
using namespace std;
int main()
{
int company[2][6] = { { 75000, 30200, 67800,
45000, 60000, 67500 },
{ 40000, 75000, 64000,
32600, 47800, 39000 } };
int companySales = 0;
for (int location = 0; location < 2; location += 1)
for (int month = 0; month < 6; month += 1)
companySales += company[location][month];
//end for
//end for
cout << "Company sales: $" << companySales << endl;
return 0;
}//end of main function

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
What is a society that has moved to the internet rather than relying on physical media called
Answers: 2
question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
You know the right answer?
The company array contains the amounts the company sold both domestically and internationally during...
Questions
question
English, 18.09.2019 04:00
question
History, 18.09.2019 04:00