Pearson eText for Concepts of Programming Languages -- Instant Access (Pearson+)
12th Edition
ISBN: 9780135102268
Author: Robert Sebesta
Publisher: PEARSON+
expand_more
expand_more
format_list_bulleted
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
Language C++
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)
Must be written in the coral language. Complete the PrintArray function to iterate over each element in dataValues. Each iteration should put the element to output. Then, put "*" to output.
Ex: If dataValue's elements are 2 4 7, then output is: 2*4*7*
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Create a program for Matrix with the following requirements: 1. Allow the user to select what operation to perform like: finding eigenvalues and eigenvectors, sketching the Gershgorin circles, and diagonalization. 2. Allow the user to input any size of the matrices and their elements. 3. Display the matrix input and the result of the operation.arrow_forwardTrying to colve this arrays assingment, the programming language is c++ could you help? Thanks!arrow_forwardDo it yourself and make sure code is not plagiarize .arrow_forward
- Using either pseudocode of C++ code, write a function that takes three parameters and performs a sequential search. The first parameter is an array of integers. The second parameter is an integer representing the size of the array. The third parameter takes the value to be search form. The function should return the subscripts at which the value is found or -1 is the array does not contain the search term. Please dont use vectors and explain each steparrow_forwardWrite a C++ program that helps the user plan out their budget. It should ask the user for the most recent 5 things that they bought; it should ask for both the name for the item and its price. Then, print out the following: total money spent, average money spent per item, lowest priced item, and highest priced item. You can assume that each item has a different name and a different price. You must use at least 1 array and you must display all numbers as dollar values (exactly 2 places after the decimal) EXPECTED OUTPUT Welcome to the Budget Helper. What are the last 5 things you bought? Item 1 name: Bananas Item 1 price: 1.5 Item 2 name: Shoes Item 2 price: 45 Item 3 name: Coffee Item 3 price: 2.5 Item 4 name: Metrocard Item 4 price: 120 Item 5 name: Jacket Item 5 price: 89 The total amount you spent is $258The average price per item is $51.60The cheapest item is BananasThe most expensive item is Jacketarrow_forwardwrite a c++ program in wich you have to Declare a two-dimensional array which can be used to store a yearly budget.Each row of the array corresponds to a particular budgeted item like rent, electric,etc. There are at most 15 items to be budgeted. Each column of the array correspondsto a month, January, February, etc. Of course there are 12 columns corresponding tothe 12 months of the year. All the data to be placed in the array consists of realnumbers.arrow_forward
- You are designing a function that will manipulate an array of integers. It needs to work for arrays of any length. What is the minimum number of parameters your function will have?arrow_forwardWrite a function which solves a projectile problem. As input, the function will take the initial height (y0) from which the projectile is launched, the initial velocity, and the angle in degrees which the initial velocity makes with the horizontal (positive if above the horizontal, negative if below the horizontal). The function should calculate the time T the projectile stays in air, generate a time array (0, T/100, 2T/100, 3T/100, …, T), and return the values of x and y (the components of the position vector of the projectile) at the times in the array. Plot the projectile trajectory using matplotlib. Use phyton languagearrow_forwardWrite a function which solves a projectile problem. As input, the function will take the initial height (y0) from which the projectile is launched, the initial velocity, and the angle in degrees which the initial velocity makes with the horizontal (positive if above the horizontal, negative if below the horizontal). The function should calculate the time T the projectile stays in air, generate a time array (0, T/100, 2T/100, 3T/100, …, T), and return the values of x and y (the components of the position vector of the projectile) at the times in the array. Plot the projectile trajectory using matplotlib. Use phyton language pls put output screenshot import mathimport numpy as npimport matplotlib.pyplot as plt%matplotlib inlinearrow_forward
- Using C++arrow_forwardAdvanced computer. Home work about curvesarrow_forwardWrite a program in C++ which takes two 4 x 4 matrices as input from the user and displays the matrices in tabular form. Then ask user to make a choice: 1. Press 1 for matrix addition 2. Press 2 for matrix subtraction 3. Press 3 for matrix multiplication 4. Press 4 for matrix transpose Use 2D arrays to save matrix values and use functions to perform addition, subtraction, multiplication and transpose. Note : it's already available on internet more than 2 website .try to do yourself it should be different from others code on Internet. Try to avoid the plagiarism.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Definition of Array; Author: Neso Academy;https://www.youtube.com/watch?v=55l-aZ7_F24;License: Standard Youtube License