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

  Strategies for successful health care marketing

Describe three different strategies for successful health care marketing and public relations.  Which is your personal favorite?  Why?

  What problem arises as the lengths of the time slices

What problem arises as the lengths of the time slices in a multiprogramming system are made shorter and shorter?

  Books with suitable members

Design a system using a class called Books with suitable members

  Design an algorithm to find the selling price

To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

  Program to find the factors

Write a c++ program to find the factors of an integer (entered by the user) which are themselves squares.

  Amount of the order for computer

Decision Tree Using the SOS, EraTech sends out invoices monthly and will gi,e discounts if payments are made within 10 days, The discount policy is as follows:

  Discuss the different c++ loops and their characteristics

Discuss the different C++ loops, their characteristics

  The stack-based routing scheme

the stack-based routing scheme you are to have a stack of maze locations.

  Write a linked-list-based push-down stack implementation

Write a linked-list-based push-down stack implementation that keeps items on the list in order from least recently inserted to most recently inserted. You will need to use a doubly linked list.

  Write a program to print out 30 real random numbers

Write a program to print out 30 Real Random Numbers with specific limitation (e.g. the real random numbers should be the real number between min=11.1 to  max=222.2).

  Calculates the exact integral over the interval

Write your program so that it outputs the interval entered, the exact solution, the approximation, the number of trapezoids and the difference between the exact and approximate solutions - trapezoids increases the approximate result converges to th..

  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

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