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: Question 4

A: In C, strings are ended with a special null character to mark its end. Hence, when a string is store...

Q: CAREER B VENT LYY a sqeo1 NON 0LO no o N aND Welcome | MYSAIL Oakland Un X Th Course: CSI-1420-43702...

A: This program is written in C language. Year is given as input and Easter Sunday's Month and day is c...

Q: Write an application to pre-sell a limited number of cinema tickets. Each buyer can buy as many as 4...

A: Create a java program to pre-sell the cinema ticket.The name of the program is TicketSeller.The maxi...

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: In C++: Examine the code segment. What will be printed? If there are any errors indicate the nature ...

A: The code given in question will give two compile time errors. Both the errors are indicated in bold ...

Q: Using the data file capabilities of C++, create a Personnel file, personnel.dat on your drive and th...

A: Program Instructions:Use do-while loop to repeatedly present the menu.Use switch statement to opt di...

Q: in python 3.2 Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a commissi...

A: Import local function to use currency formatting in the program.prompt user to enter the type of veh...

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

A: a.82B7DEConvert the above machine language into binary format1000 0010 1011 0111 1101 11101000 raaaT...

Q: Double any element's value that is less than minValue. Ex: If minValue = 10, then dataPoints = {2, 1...

A: Completing the given C++ program so, that it can follow the given rubrics:The array is already decla...

Q: Many documents use a specific format for a person's name. Write a program whose input is: firstName ...

A: This program can be done in a very easy way. Programming instruction: First, take the input from the...

Q: Shipping is free for online orders totaling $25 or more at Mississippi.com. Orders less than $25 are...

A: Note: You didn't mention any language so i use Python#get the inputs from the userunit_cost = float(...

Q: output

A: Answer:Paste the given HTML code into “Notepad” and save the file with an extension of “.html”.After...

Q: 2. You are again working for the census bureau and they need some statistics regarding the distribut...

A: Create a PYTHON3 program, and import all required modules for the given problem, import the "statist...

Q: You are given a function called is_prime  which consumes a positive number and returns True if the n...

A: Before solving this question first, you should know some functions definitions :Prime number: Primar...

Q: For any element in keysList with a value greater than 100, print the corresponding value in itemsLis...

A: The given elements of keysList is {42, 105, 101, 100}And the given elements of itemsList is {10, 20,...

Q: In MS Access, which character will be used for an optional digit such as 0, 1, 2, ..., 9? A) 0 B) 9 ...

A: Microsoft (MS) AccessMicrosoft access is a database management system from Microsoft that combines r...

Q: I am having trouble writing a python program that opens a file that contains baby names. One file fo...

A: To run this code, make all the files Boys.txt, Girls.txt and .py files in same folder.input() is use...

Q: My prompt for my C++ problem is to write a program that accepts command line arguments and to print ...

A: Create a C++ program which will shows either true or false for first and last string character.Progr...

Q: please just help with parts afterr //     3) Write friend function for the following class to overlo...

A: A friend function is defined outside the context of a class, but it has the rights to access the mem...

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: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: Create a JAVA file named IncomeTax.Ask the user to enter income and marital status.Based on marital ...

Q: Create reports containing the following details from the database: Q1 How many books are there in th...

A: SELECT category, count(category) AS "numberOfBooks",FROM booksWHERE category='computer'; The above q...

Q: I need help with a C program     /* Figure 6.2 */ /* Reads each number from an input file and wri...

A: Program://inlcude the required header files#include <stdio.h>#include <stdlib.h> //defin...

Q: consider the udp header 12 03 00 0F 00 1E A3 10.What is the total length of the udp

A: The UPD header basically has 4 parts, each part is of 2 bytes. That means following interpretation o...

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

A: Create a PYTHON program to print all “table” (list) element with respect to there first, second and ...

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

A: A java application that uses nested for loops to print the given multiplication table is given below...

Q: You will write 4 classes for Program 5.  Assignment:The BankAccount class models an account of a cus...

A: Java Program:Filename :- BankAccount.java// Import the required packageimport java.util.Date;// Clas...

Q: Im trying to write code for java where the random array that I have genreated are used and then list...

A: Following is the source code with modifications in it. Comments have been added wherever the modific...

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: Python 3.7.4: Assume that C is a variable has been assigned a string value. Write an expression whos...

A: Since you have not specified what needs to be done in else part so we have included a print statemen...

Q: Compare and contrast iOS and Android mobile operating systems. Which one is better?

A: Comparison of Android and iOS:

Q: Consider the sender A transmits 12 data packets to B using stop wait 3rd packet is lost while transm...

A: In stop wait protocol, both the sender and receiver have a windows size of one. The lost packets in ...

Q: In python I have  N unique coupons that are included in boxes of the cereal being sold. A consumer w...

A: All the lines included after the #(hash) are python comments.To print the N unique coupons:for loop ...

Q: Create a time conversion program that prompts the user for a time in minutes. The program will conve...

A: Create a C++ program and inside the main method declare all required variables. And then take input ...

Q: 1.Write a program in C++ , to count the number of people in each of the following age groups: 0-16 (...

A: Following is the approach of the program to count the number of persons of different age groups:Decl...

Q: Create a new file (in Dev C++) and save it as lab7_XYZ.cpp (replace XYZ with your initials). In Lab ...

A: Code-#include<iostream>using namespace std; int main(){    cout<<"Hello\n";   int choice...

Q: This program is written in pseudocode."Design a program that asks the user to enter a store's sales ...

A: Create a C++ program and in the "main" method define an array with name "item" and define a macro wi...

Q: Write a C program that converts an uppercase character to alowercase character. Declare functionchar...

A:  To solve this question following variables and function should be required:Variables: ch, char and ...

Q: Discuss the approaches used to categorize access control methodologies. Discuss the types of control...

A: Answer:Access control:Access control is a security technique that controls the admission of workers ...

Q: Write a program in Python that converts an improper fraction to a mixed number. The program should p...

A: Program:#Display the messageprint("Calculate Mixed Number")print("======================")print()#Pr...

Q: In Python Use the Design Recipe to write a function has_duplicates, which consumes a list and return...

A: This program returns true when a list has duplicate value, if the list has not any duplicate value t...

Q: This is my function for validating a char value. So far it doesn't accept any value. I need it to ac...

A: A C++ program for validating a char value is as follows,//Declare headre files#include <iostream&...

Q: Use the Design Recipe to define a function remove_value that consumes a list and a value and returns...

A: Program: def remove_value(list, value):result = []for number inlist:if number != value:result.append...

Q: Suppose that a maximum flow network contains a node, other than the source node, without incoming ar...

A: Maximum flow problem:“Yes”, it is possible if the maximum flow network does not contain source node ...

Q: How an executable infecting computer virus might append itself to an executable. What changes must i...

A: The VIRUS stands for vital information Resource under siege.The virus may be loaded into your comput...

Q: 1. For the finite automaton below, find a minimal-state finite automaton accepting the same language...

A: Draw the table showing state transitions on different inputs:

Q: What are the SQL commands to create TABLE BOOK, that includes  both primary and foreign keys, with t...

A: Primary key:A PRIMARY KEY is used to uniquely define every tuple in a table. The PRIMARY KEY imposes...

Q: Translate the following pseudocode for finding the minimum value from a set of inputs into a Java pr...

A: Java program to find the minimum valueimport java.util.Scanner; public class Program{     Public sta...

Q: Using MIPS assembly language can someone help me write a program that does .. Write a program to fin...

A: Program Instructions:Ask the user for number of integers and get those integers.Load the array, redu...

Q: All programming languages have a loop capability. Looping is the program logic’s ability to repeat o...

A: Program://inlcude the header files#include <iostream>using namespace std; //definition of main...