Question: Program 3 Description Now that you have done it with user input, let's mix things up a bit. Write and test a nasm program to
Program Description
Now that you have done it with user input, let's mix things up a bit.
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 for an integer value in the range
Validate the user input to be within range.
If the input is q jump to step
Using the integer from Step generate an array of random floatingpoint values
Use the genrandres function from mth Download mthyou will need to make this a c file that you compile to an object file for linking to your assembly code to generate the requested number of floating point values
Get the average of these values using floatingpoint math
Print out the numbers in your array, per line.
For extra credit, plot a histogram of the values using a tool of your choice.
All of the above should be done in doubleprecision floatingpoint. I would recommend R python, or matlab for plotting if you want to do the extra credit.
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
