Your program must do the following:
The subject of the email should be "CMSC104 Section 0401 Project 4". This must be an exact match for the TA to be able to filter the mail and put your work in the correct folder! Write your name, last four digits of your social security number and your section number in the body of the email. Please follow all this instructions and make sure that you have met them before sending the email. Don't send a copy to me. You will lose points if you don't follow the instructions.
Enter 1 for integers, 2 for floats, 0 to quit:
8
Invalid option. Try again.
Enter 1 for integers, 2 for floats, 0 to quit:
1
Enter A to add, S to subtract, D to divide and
M to multiply: A
Enter integer 1: 24
Enter integer 2: 12
Answer : 24 + 12 = 36
Enter 1 for integers, 2 for floats, 0 to quit:
2
Enter A to add, S to subtract, D to divide and
M to multiply: M
Enter float 1: 1.2
Enter float 2: 3.4
Answer : 1.200000 * 3.400000 = 4.080000
Enter 1 for integers, 2 for floats, 0 to quit:
0
Quitting !!
Enter 1 for integers, 2 for floats, 0 to quit:
1
Enter A to add, S to subtract, D to divide and
M to multiply: X
Enter integer 1: 24
Enter integer 2: 12
Invalid operation selected. Try again
Enter 1 for integers, 2 for floats, 0 to quit:1
Enter A to add, S to subtract, D to divide and
M to multiply: A
Enter integer 1: 24
Enter integer 2: 12
Answer : 24 + 12 = 36
Enter 1 for integers, 2 for floats, 0 to quit:
0
Quitting !!
-- Remember the program keeps on asking for options
unless the user wants to quit.
-- Also the user can alternate between asking to perform a float
operation and an integer operation in any random order.
-- Make sure you use the switch statement.
/* ** Filename: proj4.c ** Name: Your name ** SSAN: Last four digits of your SSN ** Date: Date of submission ** Course: CMSC-104 Section XXX ** Description: (Your psuedocode goes here. Must be detailed) ** Notes: (As needed, such as how to compile) */
You will lose points if you don't follow the
instructions for the Header Comment Block.