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:

  1. Display the program title and programmers name.
  2. Get the user's name, and greet the user.
  3. Display instructions for the user.
  4. Repeatedly (up to a prefixed MAX_NUMBERS times) prompt the user to enter a floating point number.
    1. Validate the user input to be in [e,][e,] or [17,41][17,41] (inclusive).
    2. Notify the user of any invalid floating point numbers (not in the ranges specified)
    3. Use an array to store the valid user numbers until a non-numeric value is entered.
  5. Calculate the average of the valid numbers and store it in a variable.
  6. Display (each on its own line):
    1. the count of validated numbers entered NOTE: if no valid numbers were entered, display a special message and skip to (f)
    2. the values entered, 10 per line, with a tab in between each
    3. the sum of valid numbers
    4. the maximum valid user value entered
    5. the minimum valid user value entered
    6. the average
    7. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!