Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 2 a) The following diagram shows the logical view of an array called number. number 64 5 44 26 Determine the result for each
QUESTION 2 a) The following diagram shows the logical view of an array called number. number 64 5 44 26 Determine the result for each of the following questions. result - number (0) + number 4); li result - number 13 - 21 - number 12 + 2]; ili. result - number (2) - 2. number[1]; (3 marks) b) IT Avenue is a company that sells personal computer. It has 10 salespersons. The sales manager is responsible to keep track of the number of computers sold by each salesperson. The following array is used to store the number of computers sold by each salesperson. int salesperson (10); Write a C++ program segment to do the following tasks: i. Read the number of computers sold by each salesperson ii. Calculate and display the total number of computers sold by all salespersons. ii. Identity and display the index number of computers who sold the highest number of computers. (7 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started