Question: Using C programming, the question in the attaced pictuare and a sample ( I dont want it as answer ) Should be working as the
Using C programming, the question in the attaced pictuare and a sample ( I dont want it as answer ) Should be working as the sample. Sample is below the question.

SAMPLE:

our program should present a menu with 4 options, 1) Print author info 2) perforn integer operation 3) perform floating point operation 0) Exit Where selection 1 prints your information (name and student id) selection two performs an integer math operation selection 3 performs a floating point (non whole number) nath operation Selection 0 will exit the progran immediately Any other selection will print an error message stating that an invalid selection was made When one of the math operation selections are chosen, the user will enter a simple math formula (such as "1 1 you should then calculate the result of their entered fornula and print both the operation and the result to the screen The result should be preceeded by the text "OUTPUT:" The result should include two values to the right of the decimal. for exanple if the user entered: "4+6" You would print: OUTPUT: 4624.90 You can expect the user to enter the formula in the format of: oplcoperator>op2 where there is no white space in the fornula The operations you nust support are: + addition - subtraction nultiplication / division % nodulus Make sure your results are nathenatically correct (you will be graded on math as if this were a math class. To get full credit you need to follow the output rules exactly the file check.sh can be used to check some basic operations for your program Run t from the command pronpt using the following syntax ./check.sh_path_to_executable A few progranming notes: scanf is the intput counterpart to printf's output To print and integer and a character you would use: printf("integer: %d char: %c ", iA,CA); to read in an integer and a character from the screen you would use: renen ber: blindly accept that you need the 6' for scanf with chars doubles, and ints Also: when when working with data types (such as int and double) you can tell the progran to treat something ike a different type by "casting" it For exanple to tell the program to treat the char variable cA as an integer, you use the following code: (int) CA the (int) tells the conputer that the variable after it should be treated as an int (pretend that it is an int This does not change the value of cA in anyway, it merely for this particular instance right now treats cA as an integer Since I'm teling you this, it may be of some inportance for this assignnent
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
