Create a procedure that generates a random string of length L, containing all capital letters. When calling the procedure, pass the value of L in EAX, and pass a pointer to an array of bytes that will hold the random string. Write a test program that calls your procedure 20 times and displays the strings in the console window. Sample Output:

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter1: Creating Java Programs
Section: Chapter Questions
Problem 1CP
icon
Related questions
Question

Create a procedure that generates a random string of length L, containing all capital letters. When calling the procedure, pass the value of L in EAX, and pass pointer to an array of bytes that will hold the random string. Write a test program that calls your procedure 20 times and displays the strings in the console window.

Sample Output:

C: Microsoft Visual Studio Debug Console
USZNJESOFQ
UPWYLFDGEF
XVQUGKFEWD
LNJDTQKKEK
MEUPDGZZOH
CFOEOZFZPM
HIDBDXDOBH
UJFHAPTDFR
DEKJXMAVUH
REMMBSQOTB
UMMZIIOEEK
SAQKEQKHQV
BYRPVTIOTT
TJCMEEEICU
PAEEFLWSZY
SKMCZRSSIK
WBRXHHKQRR
YKERSVARIA
WQKSDXFKTS
GNTSLGCNCE
C:\Users\ya.
ed with code
Press any key to close this window . .
2
Transcribed Image Text:C: Microsoft Visual Studio Debug Console USZNJESOFQ UPWYLFDGEF XVQUGKFEWD LNJDTQKKEK MEUPDGZZOH CFOEOZFZPM HIDBDXDOBH UJFHAPTDFR DEKJXMAVUH REMMBSQOTB UMMZIIOEEK SAQKEQKHQV BYRPVTIOTT TJCMEEEICU PAEEFLWSZY SKMCZRSSIK WBRXHHKQRR YKERSVARIA WQKSDXFKTS GNTSLGCNCE C:\Users\ya. ed with code Press any key to close this window . . 2
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT