Question: Write a MATLAB program that prompts the user to enter a 2- integer number for example: (12). Check that the entered number is a valid

 Write a MATLAB program that prompts the user to enter a

Write a MATLAB program that prompts the user to enter a 2- integer number for example: (12). Check that the entered number is a valid 2-digit number,if it is not valid print NOT VALID NUMBER". After that, the program should calculate the square root of the digit summation, For example:) and outputs if the result of the square root is an even or odd number. Hint: use floor function for the results of the square root that are float and not integers. For example: and Please check the sample output for your program (user input are in bold) Sample 1: Please enter the 2-digit integer: 22 The output result is 2 which is even Sample 2: Please enter the 2-digit integer: 27 The output result is 3 which is odd

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!