Question: ANYONE COULD HELP ME ASAP. NEEDING HELP ON 1.2 and 1.3 (confusing instructions so I am not sure what to do). PLEASE READ CAREFULLY BECAUSE
ANYONE COULD HELP ME ASAP. NEEDING HELP ON 1.2 and 1.3 (confusing instructions so I am not sure what to do). PLEASE READ CAREFULLY BECAUSE IT"S ASKING FOR A MENU WITH A FOR-LOOP. I APPRECIATE ALOT IF YOU COUPD HELP ME ASAP. (my working code that I tested on Visual Studio is attached below)
I AM TRYING TO PUT THAT INTO A FOR-LOOP and ITS NOT WORKING.
AND in 1.3, I don't know where am I suppose to start! Please help me! THANKS in ADVANCE!



Instead of repeating the same code five times, you can use a loop to reduce the code length. Modify the program to use a 'for' loop to aslk the user for a character. Use an input function such as getchar() to input the character. You should display a menu to the user such as "Menu: d, y, m, t" each time the user is supposed to input a character. Submit the rewritten program Notes: 1) For-loops are supported in the C99 standard, so you must use the-std=c99 flag in your gcc command to compile a program using a for loop. Also note that C99 supports different functions, so some of your functions may need to be updated to a supported version. 2) You may need to call getchar) and then getc() to flush the newline character left behind by the previous getcharO; 3) You can fill in the table in question 2.2 while you are solving question 1 1.3 Save the five input characters in a text file named inputdata.txt and save the output data into a text file outputdata.txt. Then, use input and output redirections to run the program so that it takes the inputs from file inputdata.txt and prints the output into the file outputdata.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
