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: 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 eg 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 instead of pushing a button.
Q: 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.
Q: Write a for loop that will print a column of five s
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
