Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ?
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started