Question: Do in Matlab please! 2. Create an interactive program that allows a teacher to enter each student's quiz scores, then prints out a table of
Do in Matlab please!



2. Create an interactive program that allows a teacher to enter each student's quiz scores, then prints out a table of each student's individual quiz scores and total points. The program should operate as follows: Prompt the user for the name of the next student. If the user enters a null string (in other words, hits Enter without entering a name), the program skips ahead to step c. Otherwise, it stores the student's name and goes to step b. A while loop is the best way to implement this. (Hint: the built-in function isempty () might be useful.) Prompt the user for the student's quiz scores, which will be entered as a row vector. That is, the prompt and user's response will appear as: a. b. Enter the student's quiz scores in brackets: [98, 95, 88] Then, repeat step a. c. Print to the command window a table in the following format: Quiz 1 st. 1 quiz 1 st. 1 quiz 1 Quiz 2 st. 2 quiz 2 st. 2 quiz 2 Total st. 1 total st. 2 total Name Student1 name Student2 name Use the following set of scores to test your program: Luke: 98 85 2. Create an interactive program that allows a teacher to enter each student's quiz scores, then prints out a table of each student's individual quiz scores and total points. The program should operate as follows: Prompt the user for the name of the next student. If the user enters a null string (in other words, hits Enter without entering a name), the program skips ahead to step c. Otherwise, it stores the student's name and goes to step b. A while loop is the best way to implement this. (Hint: the built-in function isempty () might be useful.) Prompt the user for the student's quiz scores, which will be entered as a row vector. That is, the prompt and user's response will appear as: a. b. Enter the student's quiz scores in brackets: [98, 95, 88] Then, repeat step a. c. Print to the command window a table in the following format: Quiz 1 st. 1 quiz 1 st. 1 quiz 1 Quiz 2 st. 2 quiz 2 st. 2 quiz 2 Total st. 1 total st. 2 total Name Student1 name Student2 name Use the following set of scores to test your program: Luke: 98 85
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
