Copyright  © – Sudharsan Iyengar

 

CS – 234         Spring 2025    Assignment: 1             Due: Midnight 2/25/2025

 

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’s given volume in cups to its equivalent number of teaspoons, tablespoons, ounces, pints, quarts, or gallons. Test your program for various input data. Write a library class (with static methods) for the conversions.

 

At the top of your application – include comments with your name, class, and a brief assignment description. At the top of the library class – include comments – with your name, class, and a brief description of the library. Include comments above every method that describes briefly the intent of the method.

 

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