Question: Write and test a nasm program to perform the following tasks in the order specified: Display the program title and programmers name. Get the user's
Write and test a nasm program to perform the following tasks in the order specified:
- Display the program title and programmers name.
- Get the user's name, and greet the user.
- Display instructions for the user.
- Repeatedly (up to a prefixed MAX_NUMBERS times) prompt the user to enter a floating point number.
- Validate the user input to be in [e,][e,] or [17,41][17,41] (inclusive).
- Notify the user of any invalid floating point numbers (not in the ranges specified)
- Use an array to store the valid user numbers until a non-numeric value is entered.
- Calculate the average of the valid numbers and store it in a variable.
- Display (each on its own line):
- the count of validated numbers entered NOTE: if no valid numbers were entered, display a special message and skip to (f)
- the values entered, 10 per line, with a tab in between each
- the sum of valid numbers
- the maximum valid user value entered
- the minimum valid user value entered
- the average
- a parting message (with the users name)
Note, please read carefully -- this version *requires* floating point math and arrays. Use double-precision values.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
