Write a program that generates a sequence of 20 random die


Problem

1. Write a program that generates a sequence of 20 random die tosses in an array and that prints the die values, marking only the longest run.

If there is more than one run of maximum length, mark the first one.

2. Write a program that generates a sequence of 20 random values between 0 and 99 in an array, prints the sequence, sorts it, and prints the sorted sequence. Use the sort method from the standard Java library.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that generates a sequence of 20 random die
Reference No:- TGS02628224

Expected delivery within 24 Hours