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

  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