How much of each chocolate type they produce for a given

Assignment Help Computer Engineering
Reference no: EM132084534

The O-So-Good Chocolate Company produces different types of chocolates daily. They need a little summary report that shows how much of each chocolate type they produce for a given month.

This way they can plan next month's production schedule.

They record each day's production for each chocolate type in a file named Chocolates.

I will put the file out on Blackboard under Assignments. The data indicates the batches of chocolates made each day and is described as the type of chocolates produced and the number of pieces in each batch.

The company makes several different chocolates each day so there will be several different entries for a given day.

The input will be two numbers per line where the first number is the chocolate type and the second is the number of pieces made for that batch. Each input line is a batch. There are 25 chocolate types numbered 1 to 25.

For example:

3 30 chocolate type 3 there are 30 pieces

21 45 chocolate type 21 there are 45 pieces
6 28 chocolate type 6 there are 28 pieces

etc..

The company can produce up to 25 different kinds of chocolates. The input file is one month of data.
You are to count the number of chocolates pieces for each type of chocolate produced and the number of batches for the given month.

The report should have a title and headings. Output for each type of chocolate, the total pieces produced, the total batches produced, the average number of pieces produced in each batch. Label all output and make it a nice readable report, table format.

Also print out which candy type had the largest number candy pieces produce this month. (Print the candy type and the number of pieces)
You must use arrays, pass arrays, and use functions.

Reference no: EM132084534

Questions Cloud

Write a matlab code in the spirit of the pseudo-code : Write a MATLAB code in the spirit of the pseudo-code for row-oriented back substitution.
How much of the ordinary loss and ltcl should he report : How much of the ordinary loss and LTCL should he report on his individual income tax return for the year in question
Ideals inform the actions and ideas : Describe their respective outcomes. To what extent did Enlightenment ideals inform the actions and ideas of those calling for change?
Prepare the company journal entries for january : Prepare the company's journal entries for January 1, 2016, July 1, 2017 and December 31, 2017. Assume an effective interest rate of 9%
How much of each chocolate type they produce for a given : The data indicates the batches of chocolates made each day and is described as the type of chocolates produced and the number of pieces in each batch.
Which do you feel was the most damaging cause : Analyze specific social, political, economic, and cultural reasons for Rome's gradual collapse. Which do you feel was the most damaging cause, and why?
Identify which categories you experienced in high school : Using Marcia's identity statues (Identity Achievement, Moratorium, Identity Foreclosure, and Identity Diffusion), Identify which categories you experienced
Discuss pros and cons of drawing up a partnership agreement : The colleague stipulates that due to your past relationship, Discuss the pros and cons of drawing up a partnership agreement
Weeks and months following the nazi invasion of russia : How did this incident differ from the other situations that arose in the weeks and months following the Nazi invasion of Russia?

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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