Question: Write a Java program using the ArrayBag class to randomly assign money prizes to a group of lucky ( or unlucky ) people. The program
Write a Java program using the ArrayBag class to randomly assign money prizes to a group of lucky or unlucky people. The program should have names added to a bag. It should then create a second bag of integers representing the following prizes: $ $ $ $ $ Now using the grab method of the bags randomly pick out a name and a prize and print them together. Continue to print them out times. Example: Dan won $ Peter won $ John won $sorry
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
