Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 1: Do the following in a script file. You can then copy the commands fro

ID: 3888652 • Letter: P

Question

Problem 1: Do the following in a script file. You can then copy the commands from your script file and the resulting output into this document. (a) Write a set of input statements that prompt the user for his/her favorite band, favorite number, favorite restaurant, and favorite food. (b) Write two fprintf statements. The first statement should display the user's favorite band and favorite number. The second statement should display the user's favorite restaurant and favorite food on a new line. PASTE MATLAB COMMANDS BELOW: PASTE OUTPUT TO COMMAND WINDOW WHEN SCRIPT IS EXECUTED:

Explanation / Answer

A)

B)