Please help me to write the program. Thank you very much foryour help. Write a p
ID: 3618398 • Letter: P
Question
Please help me to write the program. Thank you very much foryour help.Write a program SuperLotto that asks the user for how manyLotto tickets he wants. For each Lotto ticket, generate 5 randomnumbers 1-47 using the Random class. Then generate a random meganumber 1-27 and place it last. Create a static mathodgetLottoTicket that creates and returns one Lotto ticket as aString. Use an array to hold the first 5 Lotto numbers. Sort thearray using the Arrays.sort method. Print each Lotto ticket. Usethe command prompt for input and output. Please help me to write the program. Thank you very much foryour help.
Write a program SuperLotto that asks the user for how manyLotto tickets he wants. For each Lotto ticket, generate 5 randomnumbers 1-47 using the Random class. Then generate a random meganumber 1-27 and place it last. Create a static mathodgetLottoTicket that creates and returns one Lotto ticket as aString. Use an array to hold the first 5 Lotto numbers. Sort thearray using the Arrays.sort method. Print each Lotto ticket. Usethe command prompt for input and output.