Question: Write a Java program to do the following: Compose a random sequence of 10 case-sensitive letters. Allowable letters are: A B C D E
Write a Java program to do the following: Compose a random sequence of 10 case-sensitive letters. Allowable letters are: A B C D E F a b c d e f Assign random values to each letter. Allowable values are: 0.5 1 1.5 2 2.5 3 Display a comma separated list of each generated letter followed by its assigned value. Do not include a space between the letter and its assigned value. The program should determine which letters were not used, and print these on the next line. Use an ArrayList as part of the solution to this question. Sample output: a1,c3, e2.5, f3, c2, B0.5, D3, b1.5, C2, f3 Letters not used: An End Activat Go to Set
Step by Step Solution
3.47 Rating (154 Votes )
There are 3 Steps involved in it
Heres a Java program that generates a random sequence of 10 casesensitive letters from the given set ... View full answer
Get step-by-step solutions from verified subject matter experts
