Question: 2) Create a header file called Actor.h with name and net worth variables, and function prototypes for a constructor and get/set functions for the


2) Create a header file called "Actor.h" with name and net worth variables, and function prototypes for a constructor and get/set functions for the name and net worth variables [Note: the functions must be public and the variables must be private or protected] 3) Create an implementation file called "Actor.cpp" with the functions definitions for the Athlete constructor and get/set functions for the name and net worth variables 4) Create a client file called "main.cpp" Write psuedocode to complete the following steps: 1) Create an Actor object for each actor in file.txt 2) Create a new actor object 3) Give the Actor a name and make the Actors' net worth 1 dollar less than the lowest actor from file.txt 4) Print the following message to the user Joe Average is an top actor with a net worth of Soon they will be as successful as 1) create file.txt with the following contents: Will Smith Net worth: 350000000 Denzel Washington Net worth: 250000000 Phylicia Rashad Net worth: 55000000 Lawrence Fishburne Net worth: 30000000 Taraji P Henson Net worth: 25000000 Anthony Anderson Net worth: 25000000 Octavia Spencer Net worth: 14000000 Chadwick Boseman Net worth: 12000000 Lupita Nyongo Net worth: 10000000 Mahershala Ali Net worth: 8000000
Step by Step Solution
3.39 Rating (165 Votes )
There are 3 Steps involved in it
Here is the code for the header file Actorh ifndef ACTORH define ACTORH include class Actor public A... View full answer
Get step-by-step solutions from verified subject matter experts
