C++ Programming Overload the stream extraction operator >> for the class Module in Question 1 to input values for an object of class Module either from the keyboard or from a file. Also overload the...

C++ Programming Overload the stream extraction operator >> for the class Module in Question 1 to input values for an object of class Module either from the keyboard or from a file. Also overload the stream insertion operator Use separate compilation and write a program that inputs the name of a lecturer. The program should then find all the modules taught by that lecturer in a file named Modules.dat, and put those objects into an array. Assume that the file will never contain data for more than 20 modules. Use the array to determine the total number of students taught by the lecturer, as well as the average number of students per module taught by the lecturer. Display the names of the modules, the total number of students taught by the lecturer, and the average number of students per module taught by the lecturer on the screen. Use the overloaded stream extraction operator >> to extract objects from file Modules.dat. Use the following data for Modules.dat: Introduction to Programming I COS1511 Dr Schoeman 2354 Introduction to Programming I COS1511 Mrs du Plessis 2534 Introduction to Programming II COS1512 Dr Schoeman 458 Introduction to Programming II COS1512 Mrs du Plessis 2698

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here