Question: Q . 2 : Write a function receiving one number as an input argument. It will use the menu function to display 'Choose a function'

Q.2: Write a function receiving one number as an input argument. It will use the menu function
to display 'Choose a function' and have buttons labeled 'fix', 'floor', and 'abs'. Using a switch
statement, the function will then calculate and return the requested function (e.g., if 'abs' is chosen,
the function will return the absolute value of the input argument). Choose a fourth function to
return if the user clicks on the red 'x' instead of pushing a button.
Q.3: Prompt the user for a character vector, and then print either the character vector that the user
entered or an error message if the user did not enter anything.
Q4: Write a for loop that will print a column of five *'s.
 Q.2: Write a function receiving one number as an input argument.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!