Determine the total revenue from category of cakes

Assignment Help Basic Computer Science
Reference no: EM133270164

Assignment:

You are picking up some extra hours at the local bakery and have been assigned to take care of cake sales. The price of cakes varies by size, which can be approximated by the amount of people it feeds. You are required to keep track of how many cakes the store has to make, as well as how much you sold the cakes for. You write a MATLAB program to sort the cakes for you. 

Your program should:

  • Take a user input (in vector form) for the amount of people each ordered cake is designed to feed.  Assume the user will enter valid numbers.
  • Use a while loop and selection structure(s) to determine the amount of cakes of each size.
  • Determine the total revenue from each category of cakes.
  • Determine the total revenue from the batch.
  • Output the vector that the user entered.
  • Output a detailed summary which includes the cake size, total amount of cakes of each size, total revenue from each cake size, and total revenue from the entire batch.

Reference no: EM133270164

Questions Cloud

Expressing concern for someone health and fat-shaming : The author attempts to distinguish expressing concern for someone's health and fat-shaming.
Implementations of the sameinstruction set architecture : 1.Consider two different implementations of the sameinstruction set architecture (ISA). The instructions in each ISA can bedivided into four classes according t
Determine the number of pallet jacks : List the variables needed to determine the number of pallet jacks required to deliver these parts from Line 1 to Line 2.
Main types of non-exclusive selectors : The three main types of non-exclusive selectors are the switch, checkbox, and toggle button. In which scenarios do you use each? Write a response in 250-400 wor
Determine the total revenue from category of cakes : You are picking up some extra hours at the local bakery and have been assigned to take care of cake sales. The price of cakes varies by size, which can be appro
Underlying scheduling algorithm for event : Give two examples of events that may occur in a system that cause a process to go directly from the state "Running" to the state "Ready".
Number of times the character appears in the string : Write a method named countchar this method should accept two arguments a reference to a string object and a character that returns the number of times the chara
Allow the user to input their pto goal in hours : At your new job, you are told that you can start saving Personal Time Off (PTO) at a rate of 0.038 PTO hour per hour worked
Write a function walk with one input argument number : Write a function walk with one input argument number_0:f_steps and one output argument steps_- made_successfully.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd