Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

More Books

Students also viewed these Databases questions

Question

=+1. What news media tactics will you use?

Answered: 1 week ago

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago

Question

Why do mergers and acquisitions have such an impact on employees?

Answered: 1 week ago

Question

2. Describe the functions of communication

Answered: 1 week ago