Program to calculate the records in database

Assignment Help C/C++ Programming
Reference no: EM13936783

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 describes 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. There are 25 chocolate types numbered 1 to 25.
For example:
3 30 chocolate number 3 there are 30 pieces
21 45 chocolate number 21 there are 45 pieces
6 28 chocolate number 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 kind 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.

You must use arrays, pass arrays, and use functions.

Attachment:- Program Array ChocolateCo.doc

Reference no: EM13936783

Questions Cloud

Evaluation of plan effectiveness criteria : Evaluation of Plan Effectiveness Criteria - Would I be able to implement the interventions? If not, what barriers exist
Difficulty to get people take part in market research survey : It is becoming more and more difficult to get people to take part in market research surveys. What are the implications of this and what can market researchers do to encourage people to take part? - No more than a 1,000 words.
What are the mechanisms of dna repair : What is DNA repair? What are the mechanisms of DNA repair? What is DNA stability?
Design and implement a class called statistician in c++ : Design and implement a class called statistician in C++. After a statistician is initialized, it can be given a sequence of double numbers. Each number in the sequence is given to the statistician by activating a member function called next_number..
Program to calculate the records in database : 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.
Appropriate tertiary qualifications-equivalent combination : Appropriate tertiary qualifications or an equivalent combination of qualifications and relevant demonstrated experience undertaking data warehouse development and support activities.
What were the two most common perspectives of the history : How did European thinkers in the past centuries view the past of the Earth, life, and especially, the human species? What were the two most common perspectives of the history of the Earth in the 17th and 19th centuries
Conduct a literature review : Conduct a literature review of about 600 words about customer satisfaction, in particular at shows.  Propose a sampling plan to survey visitors at the show.
Which mutants have mutations in the same gene : Fill in a complementation table. Use "+" for complementation and "0" for no complementation. How many genes are affected among all these mutant strains? Which mutants have mutations in the same gene(s)?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write c++ statements that remove all the items

write C++ statements that remove all the items from storeBag and place them into one of two new bags, as follows: Place all occurrences of bread and eggs into fragileBag, and all other items into groceryBag.

  Write a c++ statement that outputs the data stored

Write a C++ statement that declares student to be a personType object, and initialize its first name to "Buddy" and last name to "Arora".

  Write a switch statement that assigns a string variable

Write a switch statement that assigns a String variable monthName with the months January, February, March, April, May, and June, ifmonthNum is 1, 2, 3, 4, 5, 6, accordingly.

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Prepare a program to add the specific numbers

Write a program that will read in 5 numbers and add 10 to the first number, 20 to the second number, and 30 to the third number, 40 to the fourth and 50 to the 50th.

  Individual genes are substrings of a genome

Individual genes are substrings of a genome delineated by 3-element start and stop codons. Genes begin with the start codon ATG and end with one of the following 3 stop codons: TAG, TAA or TGA. Note that start codons can appear anywhere in the string..

  How would you put a empty space between output

How would you put a empty space between output, right now it prints 6 rows but how do i add a space or a "\n" for example row1 row2 row3

  Program that asks user to enter the size of the matrix

Write a program that asks user to enter the size of the matrix (rows and column) then, it asks the user to enter the elements of two matrices and finally it adds two matrix and displays the result in C language.

  Determine an appropriate functional decomposition

Create structure charts for a problem and determine an appropriate functional decomposition or top-down design from a structure chart

  Industry standards in configuration management and control

Information related to configuration management and preventative maintenance. Industry standards in configuration management and control. Training approaches to allow for adaptive maintenance and confidence.

  Invites user to enter a random string

Invites user to enter a random string of lower case letters 2)get the string on the same line as the invitation 3)checks correctness of input(if its only lowercase letters 4)computes number of letters that is not being used 5)program out puts the ans..

  Create a friend class

Create a Friend class that contains a first name, last name, a birthday, and a telephone number. Create a Contacts class that contains an array of Friend as well as the owner's name and cell phone Number.

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