Question: THIS CODE ONLY NEEDS MINOR EDITS!!!! THANK U!!! 1.1 For the program given below, compile, debug (find and fix any syntax errors), and execute the

THIS CODE ONLY NEEDS MINOR EDITS!!!! THANK U!!!

1.1 For the program given below, compile, debug (find and fix any syntax errors), and execute the program and fix any semantic errors, for example, by adding "break" statements, change variable type so that floating point type of values can be stored and printed, and by proper initialization, if any. The code is supposed to perform one of the operations in each switch case. Submit the corrected program.

THIS CODE ONLY NEEDS MINOR EDITS!!!! THANK U!!! 1.1 For the program

given below, compile, debug (find and fix any syntax errors), and execute

the program and fix any semantic errors, for example, by adding "break"

/This C program demonstrates the switch statement without using breaks. /* The program is tested with GCC and MS Visual C++ platform #include void main() int date29; int year; int month; int time; // For example: 10.45 So 2 digits for hours, 2 digit for minutes char ch; printf("ch = %c ", ch); switch (ch) case d': printf( "Date : %d ", date); case y: printf("Year : %d ", year) ; case sn': printf( "Month : %d ", month); case : printf( "Time : %d ", time); default: printf("invalid operator "); printf("ch = %c ", ch); switch (ch) case d': printf("Date : %d ", date); case y: printf( "Year : %d ", year) ; case "m': printf( "Month : %d ", month

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!