Reference no: EM132161725
The basics of conditionals.
Requirements
This assignment consists of five major requirements.
1) Developing a solution to the problem below.
2) Ensuring that it assembles and runs correctly using the tools on edoras.
3) Documenting your solutions correctly.
4) Organizing your handin directory and submissions correctly.
Problem
1) First, the program will print the programming assignment number, your name, and your class account, all on one line.
Your program is going to determine if an input number is prime.
Your program will prompt the user to enter a number of three to five characters in length. Your program will validate that the user has entered a valid base10 number.
If the user has not, your program will print an error message "Not a number." and re-prompt for the input again. Your program will then determine if the input number is prime.
If the number is prime, your program should output "The number XXXX is prime."
If the number is not prime, your program should output "The number XXXX is not prime."
If the user enters a number that is not at least three characters long, or longer than five characters you should print the following error message and reprompt for input: "Incorrect input length."
Attachment:- Assembly Language.rar