Question: create C++ program that keeps track of various objects and variables in a Football Scoreboard. Create a C++ Object Oriented Class called Team. A team
create C++ program that keeps track of various objects and variables in a Football Scoreboard.
Create a C++ Object Oriented Class called Team. A team has member variables:
* Name
* Coach_Name
* Home_City
* Home_Status (bool true or false; if true, Home Team, if false, visitor)
* Score (holding the current score)
* Timeout_Count
6. Write the appropriate setter and getter member functions for the Team Class.
7.
Create a class called Scoreboard.
8. Write the appropriate member variables, setter functions, and getter functions to make the scoreboard work.
Team T1 and Team T2 are members of the Scoreboard Class.
Can we unify the Scoreboard class to have Team classes as members? I want to be able to declare statements in int main() like so... Scoreboard s1; //assuming T1 and T2 as public members s1.T1.setName("Dallas Cowboys"); s1.T2.setName("Houston Texans");
Scoreboard s1; //assuming T1 and T2 as private members passed as parameters accessed with setters and getters s1.Team1().setName("Dallas Cowboys"); s1.Team2().setName("Houston Texans"); ----
Otherwise: In int main()
* Create 2 instances of the Team Class (Objects) (any two teams you like, any home team set you like)
* Show the scoreboard with the various values initialized to zero
* Make the scoreboard functional and able to be updated with your input from the keyboard.
* Show the Team Name and City on your Scoreboard.
Define the Classes in a .h file, and refer to them in int main(). This is more clean design.
Any thoughts on how to get the clock to work, set, reset, start, stop...?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
