Question: 1. We have to write a multi-threaded application with 3 threads. The first thread will print 20 random numbers between 0 to 50. 2nd thread

1. We have to write a multi-threaded application with 3 threads. The first thread will print 20 random numbers between 0 to 50. 2nd thread will print 20 odd numbers and 3rd thread will print 20 even numbers. During the print concatenate the thread name before the number.

2. We have to Write a multi-threaded application with 4 threads. The first 2 threads will populate a commonArrayList and the last 2 threads will remove the items from the same ArrayList until it is empty.Also, the last 2 threads need to wait until the first 2 threads are done with

3. Let's Assume the CT1 scores of CSE 203 are stored in a text file named data.txt file, the data is stored in name-score format. Write a java program which will read the file and find the highest and lowest mark. A sample data.txt file is attached with the assignment.

Sample data:

Al Hasan-20

Rabeya Bosri-18

Mahmud Khan-16

Rahat Kabir-19

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 Programming Questions!