Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions

Question

How would you handle this situation?

Answered: 1 week ago