Program Description
Create a program called YourLastName_assignment3.asm. This simple program will print the following information to the command prompt screen as well as take in user input and perform some basic computations:
a. Print your full name on one line
b. Prompt the user to enter two numbers and retrieve this information on the same line.
c. Prompt the user to enter their favorite color and retrieve this information (user should be able to enter and store up to 6 characters, i.e. black, yellow, orange, red, etc.)
d. Prompt user for a negative number
e. Echo what was entered to the back to the screen
f. Preform basic math computations (+, -, *, /, %) on the numbers and print out the results (indented as seen below) do both signed and unsigned multiply.
- (See pdf page 43 and 44 of the Carter text for information on mul, imul, div, and idiv)
- Be sure to include tabbing and spacing as are in the example output below.
g. Print a blank line
h. Print out the statement with the first number entered shown both as signed, unsigned, and as a character.
i. Print out the statement with the negative number shown both as signed, unsigned, and as a character.
j. Print a blank line.
k. Print out a made up "Username" that consists of the information the user entered of the format color_num2num1.
l. Finally print out that the program reached a successful termination
For example, the output will look like the following (including tabs and output sentences):
Your name here
Please enter two numbers: number1 number2
Please enter your favorite color: color
Please enter a negative number: negNumber
You entered number1, number2, color, and negNumber.
The sum of number1 and number2 is result.
The difference between number1 and number2 is result.
The unsigned product of number1 and negNumberis result.
The signed product of number1 and negNumberis result.
The quotient of number1 and number2 is result with a remainder of remainder_result.
The first number, number1, holds the value unsigned_number1 if it is considered unsigned, and also represents the character number1_asCharacter.
The last number, negNumber, holds the value unsigned_negNumif it is considered unsigned, and also represents the character negNum_asCharacter.
Your made up Username is color_number2number1.
***Successful Program Termination***
Note: red text above implies user input to the terminal