Question: In the class definition, initialize the data members, string name, integer numEmployees, and string state, with the default values Unspecified' - 1 , and 'Incomplete',

In the class definition, initialize the data members, string name, integer numEmployees, and string state, with the default values Unspecified'-1, and 'Incomplete', respectively.
Ex lf the input is Gus 20 wn, then the output is
Name: Unepecified's Bietie's Builet, Aumber of employees: -1, State: Incomplete
Name: Gue's Bistro's Buffet, Number of employees: 20, State: ND
Note The class's print function is called first after the default constructor, then again after the inputs are passed to the setters.
2.
The Student class has a defautt constructot, a constructor with two parameters, and a constructor with three parameters. Declare the following objects:
studentl with no arguments
student2 with studentName and studentAge as arguments
student3 with studentName, studentAge, and studentheight as arguments
Ex if the input is fay 31-4,80, then the output is:
Student: Nokame, 0,0.00
student: Fay, 31,0,00
Student: Fay, 32,4.50
3.
Define the Monday class's SetWeather() mutator that sets data member weather to mondayWeather and the SetHumidity0 mutator that sets data member humidity to mondayHumidity
Ex: If the input is overcast 92*0, then the output is:
Monday: overcast
Humidity: 92.08
In the class definition, initialize the data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!