Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me answer this question, i need help this should be wrriten in RISC-V assembly language 3. Your task is to develop a number

please help me answer this question, i need help
image text in transcribed
this should be wrriten in RISC-V assembly language
3. Your task is to develop a number guessing game in using Assembly coding language. Your program must adhere to the following: (4 marks) 1. Prompt the user to enter an integer number N that will serve maximum (e.g., the number that will be guessed will range from [0...M 2. Prompt the user to enter a seed S for the randomizer and initialize the randomizer 3. Using the randomizer initialized above, generate a random number TARGET whose range is between [0 ... M. You can write a random number generator function of your own 4. Prompt the user to guess a number X 5. Determine whether X is equal to TARGET, "near" (within 10% of TARGET), or "far" (greater than 10% of TARGET) 6. Inform the user on whether their = X was correct (e.g., X = TARGET) or near, or far 7. If correct end program, If "near" or "ar", go back to step 4 (prompt the user to enter a number) 3. Your task is to develop a number guessing game in using Assembly coding language. Your program must adhere to the following: (4 marks) 1. Prompt the user to enter an integer number N that will serve maximum (e.g., the number that will be guessed will range from [0...M 2. Prompt the user to enter a seed S for the randomizer and initialize the randomizer 3. Using the randomizer initialized above, generate a random number TARGET whose range is between [0 ... M. You can write a random number generator function of your own 4. Prompt the user to guess a number X 5. Determine whether X is equal to TARGET, "near" (within 10% of TARGET), or "far" (greater than 10% of TARGET) 6. Inform the user on whether their = X was correct (e.g., X = TARGET) or near, or far 7. If correct end program, If "near" or "ar", go back to step 4 (prompt the user to enter a number)

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxiv Special Issue On Database And Expert Systems Applications Lncs 9510

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Hendrik Decker ,Lenka Lhotska ,Sebastian Link

1st Edition

366249213X, 978-3662492130

More Books

Students also viewed these Databases questions

Question

4. Identify the challenges facing todays organizations

Answered: 1 week ago