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

  Why is tcp termed a reliable protocol

Why is TCP termed a reliable protocol? What is the significance of the port number? How will you find out the port number finger uses?

  Write all scripts using the shell rather than learning a new

Why not just write all scripts using the shell rather than learning a new programming language like Perl?

  What would be some of the risks associated

In your role as a project manager at an IT company, you are tasked with shortening the critical path of the project and saving money. Is this possible?

  How java programing benefits to nonprogrammers

How does knowledge of programming concepts benefit individuals working in any IT position.

  How can u make sure that the destructor of derived

How can u make sure that the destructor of Derived is always called when a dynamic Derived is pointed by base's pointer?

  Encode decoded sequence using the same initial dictionary

Encode the decoded sequence using the same initial dictionary. Does your answer match the sequence given above?

  Define a simple pascal-like language by means of bnf grammar

Define a simple Pascal-like language by means of a BNF grammar. Then find one or more test sets that satisfy the syntax-driven testing criterion.

  Write an application that accepts up to twenty strings

Write an application that accepts up to 20 Strings. Divide them into two lists-one for short String that are five characters or fewer and other for long String.

  Use the driver log erd found on the huffman

Using Microsoft Access, create the preliminary (no keys and no relationships) database tables for the Huffman Trucking Driver Log. Use the Driver Log ERD found on the Huffman Intranet site, Information Technology page for guidance.

  Write a graphical application that produce a restaurant bill

Write a graphical application that produces a restaurant bill. Provide buttons for ten popular dishes or drink items.

  How you would apply the approach in an enterprise setting

The week's reading mentioned various methods of approach to account recovery. In your own words state what approach(s) you believe are the best approaches.

  Create your own unique database table using mysql

create your own unique Database table using MySQL, Query the table to display all columns for all records

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