Question
c++ please
Instructions In this assignment, you need to complete following tasks on 2D array of randomly sales figures. Assume that you
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The solution of the given problem is below:

The screenshot of the code is :

1 #include<bits/stdc++.h> 2 using namespace std; 3 int main() srand(time()); 5 int sales[5][3]; int i, j; 7 for(i=1;i<=5;i++)

for(i=1;i<=5; i++) int sum=0; for(j=1;j<=3; j++) { { if(max<sales[i][j]) { max=sales[i][j]; pri; } 29 30- 31 32- 33 34 - 35 3

{ if(m<sales[i][3]) { m=sales[i][j]; z=i; ہا 57 - 58 59- 50 51 52 53 54 55 56 57 58 59 } cout<<The branch makes the highest

The output screen :

Your collected sales data in (5+3) matrix is: 310 387 39 766 172 569 888 117 117 956 625 876 691 265 799 Highest sales amount

Please upvote in case of any douts comment me.

Add a comment
Know the answer?
Add Answer to:
c++ please Instructions In this assignment, you need to complete following tasks on 2D array of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write c++ program In this assignment, you need to complete following tasks on 2D array of...

    Write c++ program In this assignment, you need to complete following tasks on 2D array of randomly sales figures. Assume that you are the manager of coffee shop chain, and oversee 5 branches. ID of branches are 1 to 5. You already collected sales data for yesterday from each branch, in three categories: morning, afternoon, and evening. First, you need to create a 2D array (5x3) with random numbers between 300 and 1000 (including 300 and 1000), i.e., from $300...

  • Write c++ program In this assignment, you need to complete following tasks on 2D array of...

    Write c++ program In this assignment, you need to complete following tasks on 2D array of randomly sales figures. Assume that you are the manager of coffee shop chain, and oversee 5 branches. ID of branches are to 5. You already collected sales data for yesterday from each branch, in three categories: morning, afternoon, and evening. First, you need to create a 2D array (5x3) with random numbers between 300 and 1000 (including 300 and 1000), i.e., from $300 to...

  • Need help with this programming please this is the instruction my teacher provided Write a C++...

    Need help with this programming please this is the instruction my teacher provided Write a C++ class called "Sales" and a main( ) function that uses the class. Also, write documentation of your project. Below is a specification of the class. . INTRODUCTION A company has four salespeople (1 to 4) who sell five different products ( to 5)1. Once a day each salesperson passes in a slip for each different type of product sold. Each slip contains: The salesperson...

  • Write SQL statements to answer the following questions using Assignment 3’s schema (tables from part 1)....

    Write SQL statements to answer the following questions using Assignment 3’s schema (tables from part 1). 1- Find how many branches had have loans over $2000.00. 2- For each branch, find the most expensive loan. Your output should include Branch Id, loan amount for the highest loan for that Branch. 3- Find how many accounts there are for each customer. The output should include customer id and number of accounts for that customer. 4- Find the total balance amount of...

  • code must be c++ thank you This assignment is about array operations. You need to count...

    code must be c++ thank you This assignment is about array operations. You need to count a specific items in an array. Steps to follow are here: • Create an array with 1000 items and fill it with random numbers from the range of -100, 100 (including - 100 and 100). . In your program asks user to enter a number, K. • Search this number and print the frequency (how many) of this K is found in the array...

  • Given the following 2D array double nums[MAXROW][MAXCOL] = {{ 7, 12, 8, 23, 43, 16, 9,...

    Given the following 2D array double nums[MAXROW][MAXCOL] = {{ 7, 12, 8, 23, 43, 16, 9, 15}, {21, 7, 14, 48, 13, 6, 43, 29), {11, 2, 17, 91, 36, 14, 65, 43), {18, 5, 47, 38,52, 1, 18, 26}}; int numRows = 4; int numCols = 8; Write a function called totalRow that has the array, the number of rows, and the number of columns passed in. It will then print the total of the row that has 11,...

  • write c++ program This assignment is about array operations. You need to count a specific items...

    write c++ program This assignment is about array operations. You need to count a specific items in an array. Steps to follow are here: . Create an array with 1000 items and fill it with random numbers from the range of -100, 100 (including -100 and 100). In your program asks user to enter a number, K. Search this number and print the frequency (how many) of this K is found in the array. • Ask another number, and so...

  • Java Programing Code only Ragged Array Assignment Outcome: Student will demonstrate the ability to create and...

    Java Programing Code only Ragged Array Assignment Outcome: Student will demonstrate the ability to create and use a 2D array Student will demonstrate the ability to create and use a jagged array Student will demonstrate the ability to design a menu system Student will demonstrate the ability to think Program Specifications: Write a program that does the following: Uses a menu system Creates an array with less than 25 rows and greater than 5 rows and an unknown number of...

  • using java Program: Please read the complete prompt before going into coding. Write a program that...

    using java Program: Please read the complete prompt before going into coding. Write a program that handles the gradebook for the instructor. You must use a 2D array when storing the gradebook. The student ID as well as all grades should be of type int. To make the test process easy, generate the grade with random numbers. For this purpose, create a method that asks the user to enter how many students there are in the classroom. Then, in each...

  • For this assignment, you will need to determine the following: What is a logical objective for...

    For this assignment, you will need to determine the following: What is a logical objective for the sales call; Where they are on the sales continuum and what questioning techniques to use; Possible objections/consequences; A logical commitment to advance the sale Your position You are a sales representative for the Amelia Island Plantation Check them out at this website - hotels amelia- lantatio As you will see, this is a beautiful, upscale resort near Jacksonville, Florida (on the Atlantic Coast)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT