(I've had to ask this question multiple times, because everytime it's answered, it's the wrong code format. Can I please

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

(I've had to ask this question multiple times, because everytime it's answered, it's the wrong code format. Can I please

Post by answerhappygod »

(I've had to ask this question multiple times, because everytimeit's answered, it's the wrong code format. Can I please have thecode in .asm language. Not HTML, not C++, not Python, not Java, notRuby, etc. Just .asm code please. I am in desperate need ofassistance..)
Write a program that will ask the user for a number between 1and 100. Generate the sum and compute the average of randomnumbers in the range of 1 to 100 until a generated random numbermatches the number input by the user. Do not include this number aspart of your sum.
Make sure you prime your loop properly.
Example Run:
Enter a number10
8 numbers were randomly generated before 10 was generated. Thesum of the numbers is 145, the average is 18.
NOTE:
You are not allowed to use any high level decisions or loopinglike .IF, .ELSE. WHILE, .REPEAT
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply