Preform basic math computations on the numbers

Assignment Help Assembly Language
Reference no: EM131243068

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

Reference no: EM131243068

Questions Cloud

Explain market structure you would prefer for buying product : Describe which market structure you would prefer for buying products. Explain why and support your answer with the characteristics of that market.
Prepare an annotated bibliography with some of the articles : You will be required to prepare an annotated bibliography with some of the articles/books you plan to cite in your final project. A sample has been placed in the Resources section.
What alternative strategy might have prevented its decline : What alternative strategy might have prevented its decline? Provide your specific rationale for this alternative strategy (or these alternative strategies).
What are the possible reasons for ipo underpricing : How does a rights offering differ from a shelf offering? - What are the possible reasons for IPO underpricing? -What is the empirical evidence on the long-run performance of IPOs?
Preform basic math computations on the numbers : 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.
Construct a coercive rights offering : Construct a coercive rights offering to raise $100 million in new equity. - How does your example change if you have no debt outstanding?
Different prices in different areas of the world : Publishers have traditionally sold textbooks at different prices in different areas of the world. As an example, a textbook that sells for $70 in the U.S. might sell for $5 in India.
Can the operations be performed in place : Develop a radix-3 decimation-in-time FFT algorithm for N = 3' and draw the corresponding flow graph for N = 9. What is the number of required complex multiplications? Can the operations be performed in place?
Discuss the financial results from your pro forma projection : Discuss the financial results from your Pro Forma projections. Include the net income results, breakeven analysis, and required expenses to commercialize your product or service.

Reviews

len1243068

10/15/2016 2:42:51 AM

I uploaded code so far and instructions their are mistakes in my code so far like the 2 number input part. had to convert my asm fiule to txt it wouldn't let me submit it

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

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