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

  Convert code c to c++

I don't know where to start and how I should go about doing this and am looking for some advice - the code just has to compile in g++, it does not need to be completely rewritten in C++.

  Loops in what ways are the initialization repetition test

in what ways are the initialization repetition test and update steps alike for a sentinel-controlled loop and an

  Wrtie a function called gen_rand_double_array

Wrtie a function called gen_rand_double_array that generates 900 samples of size 22500 random numbers from U(10, 12). For each of these 900 samples, write a main funciton that calculates the mean and finds the simulated probability that the mean is b..

  Assume that a text file named text1txt contains text

Assume that a text file named text1.txt already contains some text written into it, write a function named vowelwords(), that reads the file text1.txt and create a new file named text2.txt,

  Part 1write a cc program to read a data file and extract

part 1write a cc program to read a data file and extract parameters. the program must obtain the filename via a

  Learning programming easily

C++ LECTURE : Best Lectures: Easy understanding: Learn programming easily, Easy Examples , Easy and simple english used to eloborate. Helping codes included.

  Write a program that analyzes a months worth of temperatures

Write a program that analyzes a month's worth of temperatures. Provide a menu for the user to choose which statistics they want.

  1 write a c program that takes an eastern standard time

1. write a c program that takes an eastern standard time in hours minutes and secondsand prints it out in central

  Write a c program that uses functions to perform

Write a C program that uses functions to perform the following: i) Addition of Two Matrices ii) Multiplication of Two Matrices

  Sum of all odd numbers between a and b

The sum of all odd numbers between a and b (inclusive). Where a and b are read in by the user - Can you find the error in this code.

  Write a while loop that lets the user enter a number

Write a while loop that lets the user enter a number-The number should be multiplied by 10, and the result stored in the variable product

  Write a program that find the average time spent programming

Write a program that finds the average time spent programming by a student each day over a 3 day period.

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