Determine the maximum value and the minimum value

Assignment Help Assembly Language
Reference no: EM131246867

Program Description

Create a program called YourLastName_assignment4.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 a word (at least 8 characters) and retrieve this information

c. Prompt the user to then enter a number greater than zero and retrieve this information

(You should check to see if the user enters a number greater than zero (positive) here, print an error otherwise and repromptuntil a valid number is entered!)

d. Print the word to the screen that many times, one per line.

(If the user entered a 5, the word would print out 5 times)

e. Print a blank line (This is to separate your output)

f. Prompt the user to then enter three (signed) numbers and retrieve this information

g. Echo what the user enters

h. Take these three numbers determine the maximum value and the minimum value.

i. Print a blank line (This is to, again, separate your output)

j. Ask the user for a year (no earlier than 1582).

(You should check to validate that this year is 1582 or greater; display error if less than that and repromptuntil it is correct - this is the year the Gregorian calendar was first introduced which included leap years.)

k. Determine and display if the year entered is a leap year.

(A leap year is a multiple of 4, and if it is a multiple of 100, it must also be a multiple of 400.)

l. Finally print out that the program reached a successful termination

For example the output may look something like:

Your name here

Please enter a word: TestWord

Please enter a positive number: number

TestWord

TestWord

TestWord

...

Please enter three more numbers: number numbernumber

You entered: number, number, number

The maximum value is number.

The minimum value is number.

Please enter a year no earlier than 1582: year

Is year a leap year? yes/no

***Successful Program Termination***

Good Luck!

Attachment:- Program Description.rar

Reference no: EM131246867

Questions Cloud

Explain why voluntary transactions improve social welfare : Explain why voluntary transactions improve social welfare. Can consumers get more or less happiness (holding their income/wealth constant) if they are forced into transactions they don’t want versus being able to choose what transactions they partici..
Describe the environment : 1. Describe the environment in which you feel the safest and why? 2. What concerns do you have? 3. What malicious software do you worry about the most?
Household saving and investment behavior : Consider the following model of a very simple economy. Household saving and investment behavior depend in part on wealth (accumulated savings and inheritance). In the late 1990's many were concerned with very large increase in stock value (a form of ..
Problem regarding the digital divide : What is meant by the term "Digital Divide" in relation to the Internet? Which groups of people are most negatively affected by the Digital Divide, and why? What are some of the consequences of the Digital Divide to both individuals and society?
Determine the maximum value and the minimum value : Take these three numbers determine the maximum value and the minimum value - Determine and display if the year entered is a leap year.
Write down the relevant frequency distribution : If all the class intervals are of equal width of 10 units, write down the relevant frequency distribution. Also calculate its mean and median.
Explain how automation might create a more efficient process : Review all HR problems identified. I recommend making a list of HR functions that you believe could be more efficient based on the information provided in the scenario. From that list, choose one HR function for analysis, which will be the main fo..
Profoundly frustrating and unproductive : While computers can help us to work more efficiently, they can also be profoundly frustrating and unproductive. Have computers and IT really improved productivity?
What do you think about this feature of market system : “Who will get the output” is that the people who are willing and able to pay the existing market price get the output. If you cannot pay for the product or service, you do not get to have the product or service. This is true for all products and serv..

Reviews

len1246867

10/18/2016 5:17:08 AM

This is an assembly program we are using Linux os for this, I uploaded the boiler plate which must be used in the program and I uploaded some example programs which contains code that may be identical to code needed in this program and a pdf of information that has some commands near the end that can be used. I also uploaded the assignment insturctions. Also the boiler plate must be used and unaltered its the standard for the class code goes in the center of the push and pulls and you write code in other sections as well see the example programs they contain what is expected as well as code that may be identical to what is needed.

Write a Review

Assembly Language Questions & Answers

  Write the pseudocode for an application

Write the pseudocode for an application that accepts enter eight friends' first names and displays them in alphabetical order

  Write an lc-3 assembly language program

Write an Lc-3 assembly language program to read in a sequence of single-digit positive integers from the keyboard(one integer per line) until the sentinel value of 0 is reached and then display the largest integer on the screen

  Relative addressing mode is a special way

Relative addressing mode is a special way to specify operands. Which instructions are associated with the relative addressing mode? Why do you think it was called "relative" addressing mode? Hint: Use a search engine to find out about "portable code"

  Write a program in assembly code for the simulator

Write a program in assembly code for the simulator that will count from 107 to 14 backwards by 3 and display the counter in the output on each iteration of the loop. (Must be in R1, R2, load and add form)

  Compute the boolean expression a and b or c

Compute the Boolean expression ( A AND B) OR C for. Devise a way to interchange two variables A and B without using a third variable or register. Hint: Think about the EXCLUSIVE OR instruction.

  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 a complete well documented assembly language

write a complete well documented assembly language program (starts at $C000) that counts the number of 1s in each byte in a list. The LIST_IN starts at $C100 and it has 12 bytes ( create your own random bytes for the list). The results (count of 1s) ..

  Microcontroller assembly language programs

Write the following 8051 Microcontroller assembly language programs and simulate your programs in EDSIM 51 simulation

  Draw a flow chart for this

Draw a Flow Chart for this 8051 assembly language program below. This program calculate y=x^2+ 2x+9. Register R0 has the x, and at the end of the program R2 should have y. (Test program for x=9).

  Write a single arm assembly language instruction equivalent

Write a single ARM assembly language instruction equivalent to a function that takes in three strings and checks if any are a substring to one another, if so return 1, if not return 0.

  How to express restrictions in register interference graph

The DEC Alpha architecture places the following restrictions on floating-point instructions. Show how to express these restrictions in the register interference graph.

  Write an assembly language program for the addition

Write an Assembly Language Program for the Addition of a series of numbers(8-bit). The series contains 50 numbers.

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