Copyright  © – Sudharsan Iyengar

 

CS – 234                     Individual Programming Assignment: #1.                 Due: Midnight, Sunday 9/22/2024

 

Dept. collaboration policy applies to this assignment. Work entirely on your own!

 

You are required to write an application that can be used to convert a user given volume in cups to its equivalent number of teaspoons, tablespoons, ounces, pints, quarts, or gallons.

 

In the Comment part of your code, you MUST include the following

 

            Your name, the assignment number for this program

 

            Write the problem description that defines your application.

 

Enumerate (list) and write the goals of your application.

 

Enumerate, list, and type of inputs and outputs for your application

 

A table of inputs values and corresponding expected output values

 

List of essential data required by your application – the conversion constants (make them final and label them all capitals)

 

Pseudo-code for the steps your application will execute to achieve its goals

 

Test your program for various input data.

 

You should export your project to your folder.

 

Example Input:           Please input the number of cups you want converted:  4

 

Output for the above input (4):

 

                        4 cups equals 4 * 48 = 192 teaspoons

                        4 cups equals 4 * 16 =  64 tablespoons

                        4 cups equals 4 * 8   =  32 ounces

                        4 cups equals 4 * 0.5   =  2 pints

                        4 cups equals 4 * 0.25   =  1 quart

                        4 cups equals 4 * 0.0625   =   0.2500 gallon