Question: can you define this using display function the cout.width ? After checking the validity it will set the team's name, fine and no of fouls

can you define this using display function the cout.width ?
can you define this using display function the cout.width ? After checking

After checking the validity it will set the team's name, fine and no of fouls to the appropriate data members or else it will set the team to the empty state. (reuse your setter fucntions) std::ostream\& display ()const; 1. If a soccerTeam object is valid b) prints mfines with width 6 and after the decimal point 2 digits. c) prints m_noFoul with width 6 d) prints mfines with width 6 e) prints m golas with width 10 . If number of goals are greater than zero then it will print " w " besides the number. 2. otherwise prints, "Invalid Team". 3. At the end return the reference of the ostream object. The Tournament module After checking the validity it will set the team's name, fine and no of fouls to the appropriate data members or else it will set the team to the empty state. (reuse your setter fucntions) std::ostream\& display ()const; 1. If a soccerTeam object is valid b) prints mfines with width 6 and after the decimal point 2 digits. c) prints m_noFoul with width 6 d) prints mfines with width 6 e) prints m golas with width 10 . If number of goals are greater than zero then it will print " w " besides the number. 2. otherwise prints, "Invalid Team". 3. At the end return the reference of the ostream object. The Tournament module

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 Databases Questions!