Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

LO22.5 List the main elements of existing federal farm policy.

Answered: 1 week ago