Creating a recipe

    Many recipes tend to be rather small, producing the fewest number of servings that are really possible with the included ingredients. Sometimes one will want to be able to scale those recipes upwards for serving larger groups. This program's task is to determine how much of each ingredient in a recipe will be required for a target party size. The first inputs to the program will be the recipe itself. Here is an example recipe: This is a recipe scaler for serving large crowds! Enter one ingredient per line, with a numeric value first. Indicate the end of input with an empty line. 4 tbsp cocoa 1/4 pound butter 2 tsp corn syrup 1 can evaporated milk 1 tsp water Here is the recipe that has been recorded 4 tbsp cocoa 1/4 pound butter 2 tsp corn syrup 1 can evaporated milk 1 tsp water How many does this recipe serve? 16 How many people must be served? 25 Multiplying the recipe by 2 8 tbsp cocoa 1/2 pound butter 4 tsp corn syrup 2 can evaporated milk 2 tsp water Serves 32 NOTE: The recipe rounds upwards, since it is usually not practical to obtain fractional cans or fractional eggs, etc. Also, displayed results must have these features to make them look nice: -- actual ingredient names listed with a common alignment (such as cocoa, butter, etc.) -- single digit whole numbers line up with the '/' in fractions with single-digit numerator and denominator