Question: Write and test a nasm program to perform the following tasks in the order specified: Display the program title and programmer s name. Get the
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 prompt the user to enter a number.
Validate the user input to be in or inclusive
Notify the user of any invalid negative numbers negative but not in the ranges specified
Count and accumulate the valid user numbers until a nonnegative number is entered. Detect this using the SIGN flag.
The nonnegative number and any numbers not in the specified ranges are discarded.
Calculate the rounded integer average of the valid numbers and store in a variable.
Display:
the count of validated numbers entered
NOTE: if no valid numbers were entered, display a special message and skip to f
the sum of valid numbers
the maximum closest to valid user value entered
the minimum farthest from valid user value entered
the average, rounded to the nearest integer
a parting message with the users name
The above should all be done with integer math only No arrays, no floating point.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
