Answered step by step
Verified Expert Solution
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started