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 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 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 [1000,10000]
Validate the user input to be within range.
If the input is 'q', jump to step
Using the integer from Step 4, generate an array of random floating-point values
Use the genrand_res53() function from mt19937.h Download mt19937.h(you 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 floating-point math
Print out the numbers in your array, 5 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 double-precision floating-point. 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 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!