Question: I've already written the code for the Number Guessing Game. I just need help with the code for the interactive choice between the 2 options
I've already written the code for the "Number Guessing Game". I just need help with the code for the interactive choice between the options and the Euler Method problem. Thanks!
Write a MATLAB script that runs as an interactive program. Upon executing the script, the user should
be given the choice between two options detailed below. Ask the user which choice they want, then
execute the appropriate commands and display the requested output. After this is done, the user should
be asked if they want to choose again, or end the program. All of your input prompts should clearly
explain to the user what you want them to enter.
Options for program to implement:
Repeat the Euler method problem from homework assignment Ask the user to enter a
desired end time and step size, then implement an Euler finite difference method solution to
solve. Output to the user the depth value at the end time, as well as a plot showing depth over
time.
Number guessing game: Have the program generate a random integer between and without
displaying to the user. Have the user guess an integer within that range. Have the program
respond by informing them whether they need to guess higher or lower, and keep them
guessing until they enter the correct number, at which point congratulate them and tell them
they guessed the correct number.
:
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
