Question: QUESTION 1 ( 1 5 marks ) A . Describe the two member functions used to get the data from a file and put the
QUESTION marks
A Describe the two member functions used to get the data from a file and put the data into a file at a particular position while reading and writing. Give a short example of each only the snippet of the code is required Marks
B Consider the text file below filename is students.txt:
tableShaneSmith,ShawnFoster,PaulaMorris,SandraBroome,JaneParris,
The above text file represents the first name, last name, and grades of five students. You are required to write a program that will determine and display to the screen the average grade of the students listed in the file, and the first and last name of the student with the highest grade. Marks
QUESTION marks
A List three unique features of a constructor function for a C class. Marks
B Data members and member functions of a class can be private, public or protected. Describe what is meant by the terms private, public and protected in this context. Marks
C Write function declarations for an overloaded function called getSum that could accept as parameters, two, three or four integers. The overloaded function should simply return the sum of the values passed to it Marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
