Page 1 of 1

IN ASSEMBLY LANGUAGE PLEASE Write a program that will ask the user for a number between 1 and 100. Generate the sum and

Posted: Mon Jul 11, 2022 9:54 am
by answerhappygod
IN ASSEMBLY LANGUAGE PLEASE
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