Question: > Modify the original code so that the program will output a message Lab 2/Part 1/Modification 1, then it will ask to input your full
> Modify the original code so that the program will output a message Lab 2/Part 1/Modification 1, then it will ask to input your full name and then, your full name will be displayed. Then the program will ask to input your student ID number and your student ID will be displayed. Strictly follow the output format shown below<
----
Lab 2/Part 1/Modification 1
Please input your full name:
John Smith
Your name is:
John Smith
Please input your student ID number: 123456789
Your student ID number is:
123456789
Here is the Code that you need to add those >
int main(void) { char ch;
/* Init board hardware. */ BOARD_InitBootPins(); BOARD_InitBootClocks(); BOARD_InitDebugConsole();
PRINTF("Lab2/Part1/Modification 1. ");
while (1) { ch = GETCHAR(); PUTCHAR(ch); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
