DIRECTIONS: Write а shоrt аnswer (twо tо four sentences) for the question below. Remember: you sentence(s) must be complete (subject, verb, аnd correct punctuation). QUESTION: What information was used to turn Montag in to the authorities, and where did it come from?
Creаte а MATLAB mаin prоgram/script that will display the menu belоw until the exit chоice is selected; the menu should be repeated after each selection. You may use the built-in menu (GUI) function. Include a flag or other mechanism to require user to complete item 1 before items 2 or 3; include a message to the user if items 2 or 3 are chosen before item 1 and allow them to choose again. The program will complete the following requirements by calling a function for each menu item: Ask the user to enter number of grades (check that the number is > 0) and enter each grade (check that the grades >0); this function, should use one or more loops to get number of grades and get grades and store them in a vector. Test with a minimum of 3 grades. Return the grades vector to the main program as an output of the function; no inputs to this function. Calculate the total of the grades and the average and pass the average back to the main script (this function should use a loop structure to calculate total). Also, print the total in this function. Grades vector should be passed as an input to this function; average should be returned to the main program as an output of this function. Main program should print the average. Determine the associated letter grade for each numeric grade; this function should accept the grade vector as an input and use selection statements to choose a letter grade, (>90 - A; >80 - B; >70 - C; >60 D), and store the letter grades along with the numeric grades in a cell array. This function should return the cell array to the main program. The main program should print a table of numeric grades and letter grades using the cell array. Exit Partial sample run: This program will display a menu of grade functions until you decide to exit. Choose one of the following:1. Enter grades2. Calculate and display average3. Display letter grades4. Exit 1Please enter the number of grades you will submit: 3Please enter a grade: 78Please enter a grade: 89Please enter a grade: 90 Choose one of the following:1. Enter grades2. Calculate and display average3. Display letter grades4. Exit 2The total of the grades is 257.00.The average of the grades is 85.67. Choose one of the following:1. Enter grades2. Calculate and display average3. Display letter grades4. Exit 3Grade Letter78.00 C89.00 B90.00 A Choose one of the following:1. Enter grades2. Calculate and display average3. Display letter grades4. Exit 4All done, thanks.>> Make sure: (i) To follow the Program Template and use good programming style (include comment after function header)(ii) To use appropriate data types as indicated by the problem (iii) To include error checking for invalid numeric input and menu choice and allow for error correction and sample runs of these (iv) To use logic in selection statements(v) To display results with two decimal place accuracy (vi) To include an adequate number of sample runs (test every branch including errors) (vii) To upload your .m file - include all functions in the same file as the main script - to the Canvas Gradescope Dropbox in this module