Prompt the user for an integer between 10 and 100

Assignment Help Computer Engineering
Reference no: EM132206052

Write a MATLAB script (write using MATLAB) that prompts the user for an integer between 10 and 100 by displaying

"Enter an integer between 10 and 100:"

If the user enters a number (integer or not) outside this range, the following error will be displayed:

"Incorrect Entry. Number must be between 10 and 100."

If the entry is within range but not an integer, it will display:

"Incorrect Entry. Number must be integer."

In either of the above cases, the program will abort after the invalid entry. For a valid entry (for instance, 11) it will display the square of the number as follows:

"The square of your entry is 121"

Reference no: EM132206052

Questions Cloud

Write a method called append that accepts two integer : Write a method called append that accepts two integer arrays as parameters and returns a new array that contains the result of appending the second array.
Write a merge program that merges two ordered lists : Write a "merge" program that merges two ordered lists of integers into a new ordered list.
Design for the business and application domains : MN503 - Network requirement analysis and plan - Investigate and develop an architectural internetworking design for the business and application domains
Write a matlab program that rolls a fair 10-sided dice : Write a MATLAB program that rolls a fair 10-sided dice (whose faces go from 0 to 10) for some given number of times.
Prompt the user for an integer between 10 and 100 : Write a MATLAB script (write using MATLAB) that prompts the user for an integer between 10 and 100 by displaying.
Write a matlab script to numerically solve any first order : Write a MATLAB script file to numerically solve any first order initial value problem using Rulers method.
Accept a two-dimensional array of integers as a parameter : Write a method called is Magic Square that accepts a two-dimensional array of integers as a parameter and returns true if it is a magic square.
Disadvantages of adding indexes to a database tables : What are the advantages and disadvantages of adding indexes to a database tables?
Which specific professions would you choose : Given what you have found out regarding the psychological perspectives on aging pertaining to the changes impacting memory, clarity, wisdom, creativity, recall.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define what is the look up table

The PIC18F4321 microcontroller is required to input a number from 0 to 9 from an ASCII keyboard interfaced to it and output to an EBCDIC printer.

  Determine the term enterprise system and how can this

write a 200- to 300-word short answer response that addresses the followingwhat is an enterprise system and how can

  Review the agile and systems development life cycle sdlc

question 1. review the agile and systems development life cycle sdlc software development methodologies in your

  Demonstrate deadlock without synchronized keywoord

Write a Java program that demonstrates deadlock WITHOUT synchronized keywoord.

  What is the purpose of the instruction decoder

What is the purpose of the program counter?

  Cisco defines network security

Write review on this - Cisco defines network security as any activity designed to protect the usability and integrity of your network and data.

  Develop and the function that returns the periodic payment

Develop and the function that returns the periodic payment. The amount loaned, rate of interest and the number of payments in a year must be input by the user.

  Would you create multilingual capabilities for application

Would you create multilingual capabilities for any application that would be available to non-English speaking people? Think about Web sites that exist today.

  Determine which algorithm runs faster

Determine which algorithm runs faster. Show your work; you will need to compute a maximum common point after which one algorithm is better.

  Write a gui that displays your image of choice

Write a GUI that displays your image of choice in which all of the elements are of the same color.

  Biometric user authentication

You have just been promoted to manager of computer security for a large enterprise (XYZ Corporation). Your first project as the security manager is to compute the principal of physical characteristics utilized for biometric user authentication.

  Process of developing a new inventory management system

Process of developing a new inventory management system. One of the event handling processes in that system is Receive Supplier Shipments.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd