Question: Question 1 Consider the text file below (filmana is clients . txt): The above text file represents the first name, last name and weight of
Question 1 Consider the text file below (filmana is clients . txt): The above text file represents the first name, last name and weight of five persons. You are required to write a C++ programs that will display the average weight of the persons in the file and the first and last name of the person that weighs the most. [10 Marks] Question 2 a) Given the following UML diagram, develop the class declaration and definitions that is represented by the diagram. Also create two objects from this class in the main0 function, the names of the objects are aPerson and bPerson. The object aPerson should be created using the default constructor and bPerson should be created using the parameterized constructor. Call the displayPerson() method of both objects
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
