$\require{cancel}$

Several Store Problems

These are some problems we will use to illustrate problem solving and algorithm development.
  1. You run an ice cream concession stand and you would like some assistance ordering the next day's ice cream. You know that you can produce 24 ice cream cones from a gallon of ice cream. If you can anticipate how many ice cream codes you will sell in a day, write an algorithm that will tell you how many gallons of ice cream to order.

  2. Your previous algorithm was so successful you have decided to modify it to account for busy days and holidays. On a busy day you will sell twice the quantity of ice cream cones and on a holiday you will sell for times the number of cones. Write an algorithm that will ask for the average number of cones sold and the type of day (normal, busy, holiday). This algorithm should then print the number of gallons of ice cream to order.

  3. You have decided to expand your business to include multiple flavors of ice cream. Write an algorithm that will ask for the type of ice cream, the average number of cones sold and the type of day (normal, busy, holiday) and will compute the number of gallons of each type of ice cream to order.