Question: Create a procedure that generates a four-by-four matrix of randomly chosen capital letters. When choosing the letters, there must be a 50% probability that the

Create a procedure that generates a four-by-four matrix of randomly chosen capital letters.

When choosing the letters, there must be a 50% probability that the chosen letter is a vowel.

Write a test program with a loop that calls your procedure five times and displays each matrix in the console window. Following is sample output for the first three matrices:

D W A L S I V W U I O L L A I I K X S V N U U O O R Q O A U U T P O A Z A E A U G K A E I A G D

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 Implementing Programming Languages Questions!