Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5 This question deals with if then else statements and while loops Write a Matlab code for the following pseudo code. a- get user input

image text in transcribed
5 This question deals with if then else statements and while loops Write a Matlab code for the following pseudo code. a- get user input of a number between 3 and 9 (make it user friendly) b if the number is less that 3, display the message (Wrong choice) and loop back to get user input again c i the number is between 3 and 5 (inclusive), then display the message "lt is a nice Day" d- f the number is greater than 5 but less that 8, then display the message "I love Matlab" e if the number is greater than or equal to 8 and less than or equal to 9, display the message " Good f- if the number is greater than 9, then display the message "Wrong choice" and loop back Note, make sure you have a graceful way of exiting the program. So, if a user enters a specific data, the program should terminate

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. Share student successes through notes or email messages.

Answered: 1 week ago

Question

Prepare for a successful job interview.

Answered: 1 week ago

Question

Describe barriers to effective listening.

Answered: 1 week ago

Question

List the guidelines for effective listening.

Answered: 1 week ago