Question: 3 A ) Create a class Student with data members name, mark, and Id . Use a suitable constructor to initialize the student object. Write

3A) Create a class Student with data members name, mark, and Id. Use a suitable constructor to
initialize the student object. Write a program to write five student objects into a student.txt file. Also,
read the contents of the student.txt file and display only the student with more than 80 marks.
3B) Write a multi-threaded program to do the following:
a) Write thread writes 5 strings to a file - "Stringfile2.txt"
b) Read thread reads "Stringfile2.txt" and displays the String with maximum number of characters
and minimum number of characters among 5 strings.
c) The main thread accepts 5 strings and display the 3 character words present in strings.
3C) Write the output of the following code snippets and Justify your answer.
 3A) Create a class Student with data members name, mark, and

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!