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
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..
|