Question: Write a C++ program that save a list of 10 students (number (integer). name(string) and grade (float of range from 0 to 100)) in

Write a C++ program that save a list of 10 students ("number" 

Write a C++ program that save a list of 10 students ("number" (integer). "name"(string) and "grade" (float of range from 0 to 100)) in a file. The first line in the file contains the information of student's "number" 1. While the student's "number" in the second line is 2, and so on until the tenth "student". (10 marks) Then write a function getStudent(int num) that returns the "student" whose "number" is the input parameter "num". This function must retrieve the information of any "student" by his number using the seekg() function. The "student" objects are either structure or a class. (20 marks) [Total: 30 marks]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This a C program that fulfills your requirements include include include using namespace std struct ... View full answer

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!