Homework NA, I Scream!

Short Description:

Write a program to assist a ice cream cone vendor in ordering ice cream.

Goals

When you finish this homework, you should have:

Formal Description

You have been contacted by the owner of a ice cream cone shop to write a program to assist in the ordering of ice cream.

The file normalsales.dat contains a list of the ice cream normally sold on a day. This consists of two lines for each flavor.

Right now, there is only one size cone sold, an 8oz waffle cone. Therefore on a typical day, with the above sales data, the owner would expect to need 800oz of vanilla ice cream. Since there are 128 oz in a gallon, the store would need 6.25 gallons of vanilla ice cream. Unfortunately ice cream is only sold in whole gallons, so a total of 7 gallons of ice cream is needed.

The owner needs one option, on weekends they sell twice the number of cones, and on holidays they sell four times the number of cones.

Your program should start by asking the type of day. It should then produce a list of flavors and the quantity of each flavor of ice cream that should be purchased for that type of day.

The output should be in the form:

n gallons of flavor ice cream.
This line should end with a newline.

your code must compile, without warnings or errors, using the following compiler flags:

 -g -O2 -Wall -Wextra -Wpedantic -Werror
   -Wold-style-cast -Wunused-parameter
  -Wuninitialized -Wshadow -Wdangling-else 
It must run on either devweb1, or prog1 (when that machine becomes available)

Required Files

NA, but normally the files needed to build the project.

Submission

NA, but normally : Submit the assignment to the D2L folder Homework NA by the due date.