Question: Write a C++ program that exec Linux command: 1- When the program starts, you should display for the user the two options as follow:
Write a C++ program that exec Linux command: 1- When the program starts, you should display for the user the two options as follow: 1- Linux command line to show the calendars of the current, last and next month. 2- Linux command line to show the username for the user. 2- Then prompt the user to input option number. Hint: You can use command (scanf) C language to input value. Sample Input/output The following sample output of this program and should help about the way the program should start. Welcome To Program Menu: 1- Linux command line to show the calendars of the current, last and next month. 2- Linux command line to show the username for the user. Select an option: (The user will input the option)
Step by Step Solution
3.34 Rating (166 Votes )
There are 3 Steps involved in it
Heres a C program that prompts the user to select an option and then executes Linux commands based o... View full answer
Get step-by-step solutions from verified subject matter experts
