write a C++ program.. In this assignment, you need to complete tasks on 2D array of randomly sales figures. Assume that you are the manager of coffee shop chain, and oversee six branches. ID of branches are 1 to 6. 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 (6x3) with random numbers between 300 and 1000 (including 300 and 1000), i.e., from $300 to $1000. Then, find / answer Print the sales data on screen in 6 rows and 3 column format Show highest sales amount Show lowest of sales amount Average of sales amount done by shop #3 Is total of all morning sales from all branches higher than total of all afternoon sales from all branches? (Yes/No)

Question

write a C++ program..

In this assignment, you need to complete tasks on 2D array of randomly sales figures. Assume that you are the manager of coffee shop chain, and oversee six branches. ID of branches are 1 to 6. 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 (6x3) with random numbers between 300 and 1000 (including 300 and 1000), i.e., from $300 to $1000. Then, find / answer

  • Print the sales data on screen in 6 rows and 3 column format
  • Show highest sales amount
  • Show lowest of sales amount
  • Average of sales amount done by shop #3
  • Is total of all morning sales from all branches higher than total of all afternoon sales from all branches? (Yes/No)

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: I have to code the game mastermind, but i only got halfway. I got the user input, 8 colors and the 3...

A:  solving the duplication problem:Create a temporary array named "temp" and initiate that array with ...

Q: 2)   Consider the following class   class Department { private: string name; const long locationNo; ...

A: Program descriptionThe class definition has the declarations of the static variables, regular variab...

Q: Python 3.7.4 Store four file objects corresponding to the files winter2003.txt , spring2003.txt, sum...

A: Python statements for creating file objects: winter=open("winter2003.txt", "r")spring=open("spring20...

Q: Given a nested list named table, use nested loops to print each element in the nested list.  Each el...

A: Python program to all the elements in a nested listProgram IntroCreate a python program to print all...

Q: Question 2: Which statement(s) is/are true about vectors? a) A vector's size is static. b) A vector'...

A: VectorsA vector is an object that has both magnitude and direction. It is a directed line segment wh...

Q: Hi I am coding for java and I am trying to generate 20 numbers in the sequence of  1, 2, 4, 8, 16, 3...

A: In this java program,Print a 20 numbers series in the sequence of 1, 2, 4, 8, 16, 32, ...Print the 5...

Q: Simplify the following functional expressions using Boolean algebra and its identities. List the ide...

A: (a) F(x,y,z) = y(x’ + (x + y)’)

Q: I have tried this  a few times and cannot figure it out. This is for python.

A: The sub lists can be printed by printing each row; hence the answer would be:for i in range(len(tabl...

Q: How can I fix that Traceback (most recent call last):  File "C:\Users\Richard Seegerer\Documents\Pyt...

A: Here you are trying to open a file name module.txt in reading only format. You are utilizing a relat...

Q: What security technology did Cisco deployed to control building security?

A: According to STS (Security, technology and System) team the more important challenges that are suppo...

Q: In Lab 2, you created a menu for a simple calculator program. In Lab 6, you added some functionality...

A: Program Algorithm-STARTStep1 Import essential headers.Step2 Define main functionStep3 Print “Hello u...

Q: in c++ Create a new file (in Dev C++)  In Lab 2, you created a menu for a simple calculator program...

A: This C++ calculator program contains following functions:displayMessage : It prints string message o...

Q: Create a new Java application called "AtmSimDoLoop" (without the quotation marks) that simulates a s...

A: Following are the steps to create the java application AtmSimDoLoop that simulates the working of AT...

Q: Submission Instructions Follow the instructions for How to Submit Programming Assignments. Assignmen...

A: the name of the java application is PatternMaker.A string variable firstString is used to store the ...

Q: Write a query to display the book number, title, and cost for all books in the “Database” subject so...

A: The name of the table is the subject.Attributes of the table are book_number, book_title, book_costC...

Q: for C++ write a progam for the greatest common divisor of integers x and y is the largest integer th...

A: program to find the greatest common divisor of x and y.if x is 0 then answer is y.if y is 0 then the...

Q: Suppose you have two tables: EMPLOYEE and EMPLOYEE_1. The EMPLOYEE table contains the records for th...

A: Two tables are given named as EMPLOYEE and EMPLOYEE1. Each table has its records. EMPLOYEE table has...

Q: Are the following two clauses the same: constraint X primary key (Y, Z) and constraint X primarykey ...

A: Primary key:Primary key is a key which is used to uniquely identify a row in a table.A Primary key c...

Q: Write a Java program that prompts the user for the page size used in a virtual memory system; this w...

A: A Java program that accepts a valid system page size and virtual address and calculates the page num...

Q: program3_3.py in pythonWrite a wholly creative quiz program that consists of three original question...

A: The code consists of three inputs such as int, float and string for wholly creative quiz program. 

Q: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: Program Instructions:Declare the initial balance to $5000.Use do-while loop to repeatedly show the m...

Q: Arrays Write a for loop to print all elements in courseGrades, following each element with a space (...

A: Programming instructions: First, initialize the variable which takes the size of the array and an ar...

Q: Think of one of your Math homework. How can you use program to reveal the answer? Write a calculatio...

A: A program is to be created that uses at least 10 variables to calculate a problem. Let us consider a...

Q: I am getting a floating point exception in my code. Which is to divide matrix 1 by matrix 2 (striaig...

A: Program Instructions:A floating-point exception occurs when an attempt is made to divide a number by...

Q: in python   Write a Python program that uses a for loop with the range function to inspect all integ...

A: Multiples() function defines to display these two totals.

Q: What is the RAND Report? Why was it developed? What was published in the RAND Report R-609?Why was i...

A: RAND Report:RAND reports consist of findings from the profound research and objective analysis which...

Q: This is for python. It says: write an expression that refers to the last four characters in the prev...

A: Suppose the value “hello world!” is assigned to the variable ssn. The expression to get the last fou...

Q: What is the mantisa and exponent value if 6.75 represnt in 8 bit binary floating point

A: The mantissa and exponent value of 6.75 can be obtained by converting the given decimal number into ...

Q: Using DeMorgan's Law, write an expression for the complement of F ifF(x,y,z) = xz' (xy + xz)+ xy'(wz...

A: Expression:

Q: Convert the following machine language instructions into assembly language, EXPLAIN ALL STEPS, assum...

A: 82B7DE:The given machine language instruction is 82B7DE.Its equivalent binary representation is 1000...

Q: Problem 2: Using HTML/JavaScript, find and display the number of multiples of a certain number enter...

A: Program:<!--open the html tag--><html> <!--head tag defines the head portion of a doc...

Q: (check all that apply) Under what conditions, the 3rd normal form is automatically satisfied if arel...

A: Third Normal FormThird normal form is a normal form used for normalizing a database design for reduc...

Q: Given a nested list named table, use a loop to print each sub list of the nested list. The sub lists...

A: Program descriptionOne 3 x3 list is created to demonstrate the conceptdisplay the elements of the su...

Q: C++    Write a recursive program that finds out if n is a Fibonacci number or not. The Fibonacci num...

A: The C++ program will follow the given rubrics:Importing header files.Displaying the message to user ...

Q: A bit confused on where to begin this program. I'm confused by the information I'm being given I thi...

A: In this program user wants to perform following tasks:    1.Taking inputs as a (A, B, C).     2. Cal...

Q: What role does database technology play in managing data as a business resource within an organizati...

A: Data resource management is applying software tools and information systems technologies such as dat...

Q: Please explain all steps: Exercise 2: A) Suppose the main memory of the Pep/9 were completely filled...

A: A) The Pep/9 has 64K or 65,536 of bytes in the main memory and a unary instruction takes 1 byte. Hen...

Q: Design a reasonably efficient algorithm for solving each of the following problems and determine its...

A: Algorithm to find who failed to pay telephone billFor finding who failed to pay telephone bill, firs...

Q: While attempting to connect to the wireless network at your job, you notice that five different wire...

A: Wireless network:It is a network which is used to communicate among computer systems and other netwo...

Q: Use the Design Recipe to write a function weighted_total(number_list,weights) that consumes a list o...

A: The given list of numbers is [1, 2, 3].The given weights are [0.1, 0.5, 0.4].weighted_total(number_l...

Q: Assume that a double variable named alpha contains the value of an angle in radians. Compose a C++ s...

A: Below program uses following c++ functionsstd::setw, std:setfill, setprecision(int n) defined under ...

Q: Write a simplified expression for the Boolean function defined by the following Kmap.

A: Answer:Given K-map:                  

Q: Consider partitioning the list {1,4,0,1,1,1,2,3,1,0,4,4,1,2,0,1} where the first element ofthe array...

A: Program description for part (A)The program for part A works by using two new arrays for the left an...

Q: in python Write a program that creates a list of your friends. Start with an empty list and then us...

A: List:  A list in python is a data structure which stores data or items of various data types. A list...

Q: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: Program:import java.util.Scanner; public class PatternMaker{    public static void main(String[] arg...

Q: Required program is java   Create a class called DuplicateRemover. Create an instance method called ...

A: Program Instructions:In class DuplicateRemover, declare a set of Strings and create methods remove()...

Q: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: Following are the steps to create the java application Rooter that simulates the working of ATM:Crea...

Q: What are the mantissa and exponent values if 6.75 is represented in 8 bit binary floating point repr...

A: Calculating the mantissa and exponent of 6.75 with 8-bit binary floating-point representation.Firstl...

Q: Python 3.7.4 Given that add, a function that expects two int parameters and returns their sum, and g...

A: The statement is given below,eurasia_sales = add(euro_sales, asia_sales)

Q: Hi, I have to display the first 20 Fibonacci numbers to the console. The first two numbers are given...

A: Program: class PrSpecial { public static final int N = 20; public static void main(String[] args){ i...