Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Task 2



Write a program which takes 3 students’ data from file (“input.txt”) and displays the grade



obtained by student in new file (“output.txt”).



Hint: The program will read name from the file and then the marks obtained in three subjects.



Add those marks and convert them out of 100 and display the grade obtained by student.



Repeat these steps for three students



Score (out of



100)



Grade



0 – 49.5



F



49.5 – 57.5



D



57.5 – 71.5



C



71.5 – 84.5



B



>= 84.5



A

Task 2



Write a program which takes 3 students’ data from file (“input.txt”) and displays the grade



obtained by student in new file (“output.txt”).



Hint: The program will read name from the file and then the marks obtained in three subjects.



Add those marks and convert them out of 100 and display the grade obtained by student.



Repeat these steps for three students



Score (out of



100)



Grade



0 – 49.5



F



49.5 – 57.5



D



57.5 – 71.5



C



71.5 – 84.5



B



>= 84.5



A

Make a file by yourself named ”Integer.txt” and add 5 integer values in it. Now, write a C++






program that reads data (5 integers) from the file and store them in integer array. Also make another






integer array (int result []) of same size to store the results. The program should check for each number






in array if it is prime number or not. If the number is prime, update value in result[] array from 0 to 1.






Lastly, write output in another file named “Result.txt”







Write a programme to demonstrate Hybrid Inheritance with some real examples. Also mention the possible ways of removing ambiguity in this Inheritance.



There is a Ground class that keeps the ground name and city. There is another class Game, that holds information on game names and the date of the game on which the game will be played. The Player class keeps the information about a Player, name, and code. There is a Team class that holds the team name and the total number of players counted.


In a cricket game, a team can have 11 players including 1 captain. The Game will be played between 2 teams on the ground. No player can play the game without a team on the ground. And no game can be played without a grounds information.


Design it using any possible type of Inheritance. Input information for a game of 2 teams, and display the following:


Ground name City Game Team1 Team2 Captain1 Captain2.

Write a program to write 5 book records in a file. Program should also perform random access in the file, after taking input for a particular record number to read and it should also perform random record overwriting after taking input of new record and the record number to overwrite. [Attributes of book: Book_id, Book_price, Book_name, Book_author_name]


Explain situation when default constructors is mandatory to be written by user


How to convert basic data to user defined data type

How function overloading is different from operator overloading. Also Write a program to overload binary &&(logical AND) operator using friend function


Search for a C++ code on Doubly Linked list operations:



a) Insertion



b) Deletion



2. Make a video discussion for each operation. Focus on the ff: a) Algorithm



b) Statement for each algorithm



c) Complete code discussion (line per line)

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS