Question: I want the above code to be coded in EMU8086 and the code language will be Assembly Language. At first, ask the user to input

 I want the above code to be coded in EMU8086 and

I want the above code to be coded in EMU8086 and the code language will be Assembly Language.

At first, ask the user to input 5 alphabetic characters and store them in an array of size five. Now your task is to generate a random number from 0 to 9. Here, if the generated randorn number is add. then print the number first then the s characters in reverse order. Otherwise, print the number first and then the characters in their given ander. To generale a tardor urbe vu listried 1 Cota and You ons 4 dig 16-it desiral numter in a variatie. The Summe on alle individual dir ts the urbe will be your spor You have in this in procedure cales generate Seed. To generate the random number simpy do "seed modulus 10" or "seed 10" which will record valux: bate' ou 9. You have 10 do this in a procedure called generate Rand. Remember that after printing the random number, the characters will be printed in the next line altogether without any spacing: Input Example 01: Please enter alphaberi characters: a c Suspese 1581 is a number that you s.red a wale Output Example 01 Terancain rumter in u alist Explanation: The summalian of the indvidual gile of 1504 is 10 (1+5+8+4 = 10). So, your send is 18. Therefore, the randor numer 8 sed % 10 - 18 % 10 - 8. As 8 is aneren number, to rint the exigether in the gran order And you have to a this in 2 corres generate_Seed end generate_Rand. Input Example 02: Please eriler 5 alphabe.ic changers 21 Suspese 15!4 is the number that you seed a veracle Output Example 02: The random rumberla: a crile Explanation: T1 surmation of the indviduals. gits of 1594 le 19 1+5+9+419). 50. your seed is 19. Therefore, the randon number is seed % 10 = 19 % 10 =9&is and numace. 30 print the characters together in but in reverse Dr. Sa "alice" wil em "ncila" And you are lo su this ir 2 veces generate_Sned and generate_Rand

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!