Question: Write a script that will use the menu function to present the user with choices for functions fix, floor, and ceil. Error-check by looping to

Write a script that will use the menu function to present the user with choices for functions "fix", "floor", and "ceil". Error-check by looping to display the menu until the user pushes one of the buttons (an error could occur if the user clicks on the "X" on the menu box rather than pushing one of the buttons). Then, generate a random number and print the result of the users function choice of that number (e.g. fix(5)).

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!