Menu based program
Write a menu based program implementing the following functions:
(0) Write a function called displayMenu that does not take any parameters, but returns an integer representing your user's menu choice. Your program's main function should only comprise of the following:
a do/while loop with the displayMenu function call inside the loop body
switch/case, or if/else if/ ... for handling the calls of the functions based on the menu choice selected in displayMenu.
the do/while loop should always continue as long as the user does not choose to quit the program.
(1) Write a function that prompts the user for the name of a file to output as a text file that will hold a two dimensional array of the long double data type.
Have the program prompt the user to enter the number of rows and the number of columns for the two dimensional array.
Have the program prompt the user to enter the values for each row and column element in the two dimensional array.
Wr
(0) Write a function called displayMenu that does not take any parameters, but returns an integer representing your user's menu choice. Your program's main function should only comprise of the following:
a do/while loop with the displayMenu function call inside the loop body
switch/case, or if/else if/ ... for handling the calls of the functions based on the menu choice selected in displayMenu.
the do/while loop should always continue as long as the user does not choose to quit the program.
(1) Write a function that prompts the user for the name of a file to output as a text file that will hold a two dimensional array of the long double data type.
Have the program prompt the user to enter the number of rows and the number of columns for the two dimensional array.
Have the program prompt the user to enter the values for each row and column element in the two dimensional array.
Wr