Question: Question 1 Write a Java program to do the following: Compose a random sequence of 10 case-sensitive letters. Allowable letters are: A B C D

 Question 1 Write a Java program to do the following: Compose

Question 1 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: Aanbod

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!