1. Create a function named void testStruct02C() 2. Declare a FootballTeam struct pointer 3. Using cin...
Fantastic news! We've Found the answer you've been seeking!
Question:
![1. Create a function named void testStruct02C() 2. Declare a FootballTeam struct pointer 3. Using cin and](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6513ab7ae3abf_1695787890459.jpg)
![22 RS #include... 25 using namespace std; 26 /************ struct definition 27 28 29 38 32 33 34 35 51 50 56](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6513abad75ef6_1695787942600.jpg)
![void teststruct82c() { e} // create a Football Team struct // print out the Football Team struct // call](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6513abcbc7e92_1695787973185.jpg)
Transcribed Image Text:
1. Create a function named void testStruct02C() 2. Declare a FootballTeam struct pointer 3. Using cin and getline(), initialize the FootballTeam fields using the pointer Can use a statement like Football Team* fb01 = {"Buffalo Bills", "New York Jets", 33, 21); 4 Print out the Football Team struct using the pointer fb01 5 Fb01= returnStructPointer() 6 Print out the Football Team struct again using the pointer fb01 7. the first time you printed out fb01 (line 4) will be different than The output from printing fb01 (line 6) 8. the output printed in the function returnStructPointer() should be the same as the output from line 6 a function was added that you will need to modify named Football Team* returnStruct Pointer() { Declare a FootballTeam struct pointer named fb02 Using cin and getline(), initialize the Football Team fields using the pointer with different values than were used in initializing fb01 in function void testStruct02C() Can use a statement like Football Team fb02= ("Buffalo Bills", "New York Jets", 33, 21); Print out the Football Team struct using the pointer fb02 return the pointer to the calling function void testStruct02C() 22 RS #include... 25 using namespace std; 26 /************ struct definition 27 28 29 38 32 33 34 35 36 37 29 51 50 56 27 struct Football Tean { }; void teststruct82c(); 38Football Team returnStruct(); . Libraries here int main() { . . . . string tean; // tean name string opponent; // opponent name int teamscore; // teams score int oppoScore; // opponents score it should be the save as the struct printed in the called function teststruct82c(); return 0; creates gand initializes Football Team object creates a Football Team pointer makes the pointer point to the struct prints the object out (using the pointer) calls Football Teas returnStructPointer () which returns another Football Team pointer prints the object out using the new pointer void teststruct82c() II create a Football Teas struct void teststruct82c() { e} // create a Football Team struct // print out the Football Team struct // call returnstruct and receives struct pointer // print out the Football Team struct finction creates, initializes prints a Football Team struct then returns the struct ************ Football Tean returnStruct() // create a Football Tean object // initialize the fields // print out the FootballTean struct //return the pointer 1. Create a function named void testStruct02C() 2. Declare a FootballTeam struct pointer 3. Using cin and getline(), initialize the FootballTeam fields using the pointer Can use a statement like Football Team* fb01 = {"Buffalo Bills", "New York Jets", 33, 21); 4 Print out the Football Team struct using the pointer fb01 5 Fb01= returnStructPointer() 6 Print out the Football Team struct again using the pointer fb01 7. the first time you printed out fb01 (line 4) will be different than The output from printing fb01 (line 6) 8. the output printed in the function returnStructPointer() should be the same as the output from line 6 a function was added that you will need to modify named Football Team* returnStruct Pointer() { Declare a FootballTeam struct pointer named fb02 Using cin and getline(), initialize the Football Team fields using the pointer with different values than were used in initializing fb01 in function void testStruct02C() Can use a statement like Football Team fb02= ("Buffalo Bills", "New York Jets", 33, 21); Print out the Football Team struct using the pointer fb02 return the pointer to the calling function void testStruct02C() 22 RS #include... 25 using namespace std; 26 /************ struct definition 27 28 29 38 32 33 34 35 36 37 29 51 50 56 27 struct Football Tean { }; void teststruct82c(); 38Football Team returnStruct(); . Libraries here int main() { . . . . string tean; // tean name string opponent; // opponent name int teamscore; // teams score int oppoScore; // opponents score it should be the save as the struct printed in the called function teststruct82c(); return 0; creates gand initializes Football Team object creates a Football Team pointer makes the pointer point to the struct prints the object out (using the pointer) calls Football Teas returnStructPointer () which returns another Football Team pointer prints the object out using the new pointer void teststruct82c() II create a Football Teas struct void teststruct82c() { e} // create a Football Team struct // print out the Football Team struct // call returnstruct and receives struct pointer // print out the Football Team struct finction creates, initializes prints a Football Team struct then returns the struct ************ Football Tean returnStruct() // create a Football Tean object // initialize the fields // print out the FootballTean struct //return the pointer
Expert Answer:
Answer rating: 100% (QA)
include Structure definition struct FootballTeam stdstring team stdstring opponent int teamScore int ... View the full answer
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
1. discuss the broad problem you intend to research; share what the client thinks about the issue and detail whether and how you may be able to accurately clarify and state the problem you intend to...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
How would your answers in Problem 48 change if partnership revenues were $100,000 instead of $150,000? Data From Problem 48: The KL Partnership is owned equally by Kayla and Lisa. Kaylas basis is...
-
What was the fundamental philosophical focus of the International Banking Act (IBA) of 1978?
-
3 Refrigerant-134a enters a adiabatic compressor at 100 kPa and -24C with a flow rate of 1.300 m/min and leaves at 800 kPa and 60C. Determine the mass flow rate of R-134a and the power input to the...
-
Describe another way you can perform a hypothesis test for the difference between the means of two populations using large independent samples.
-
A black female employee is told that she cannot come to work with her hair in decorative braids traditionally worn in Africa, and if she continues to do so, she will be terminated. Does the employee...
-
"Blast it!" said David Wilson, president of Teledex Company. "We've just lost the bid on the Koopers job by $4,000. It seems we're either too high to get the job or too low to make any money on half...
-
Two cars start from rest and race distance 1,350 m to the finish line. Car #1 has a mass of 1,400 kg and can accelerate with a net force of 2,300 N. Car #2 has a mass of 1,500 kg and can accelerate...
-
Luxury Living Inc. (LLI) is a public company based in Toronto and reports under IFRS. LLI owns and operates a large portfolio of apartment buildings. Most of its buildings are located in the downtown...
-
The financial statements for the Columbia Sportswear Company can be found in Appendix A, and Under Armour, Inc.'s financial statements can be found in Appendix B at the end of this book. Required a....
-
Use the data from SE3-8 to prepare the closing entries for The Decade Company. Close the temporary accounts to income summary. The balance of \(\$ 8,500\) in the retained earnings account is from the...
-
Adjusting Entries The following selected accounts appear in the Birch Company's unadjusted trial balance as of December 31, the end of the fiscal year (all accounts have normal balances): Required...
-
Closing Entries Use the information provided in E3-5A to prepare journal entries to close the accounts using the Income Summary account. After these entries are posted, what is the balance in the...
-
Ceva, Inc. manufactures and services jet engines for air carriers. The engines cost \($10\) to \($40\) million each, depending on the specifications and plane. A 10-year service contract for a single...
-
15. You are given the following prices for 1-year European call options: Strike price Call premium 55 15.00 60 11.25 65 8.66 70 6.05 Consider the following two strategies: 1. 55-65 bull spread with...
-
Why should you not model a decision variable as a random variable with a probability distribution?
-
If the word variable contains the string Bells, which of the following statements will change the contents of the variable to Bell? a. word.erase(word.length() 1, 1); b. word.replace(word.length() ...
-
In this exercise, you will modify the code from Exercise 10. If necessary, create a new project named ModifyThis11 Project, and save it in the Cpp8\Chap08 folder. Enter (or copy) the TryThis10.cpp...
-
In this exercise, you will create a program that converts U.S. dollars to a different currency. The number of American dollars should always be an integer that is greater than or equal to zero. The...
-
C19.7. How doesproforma analysis of financial statements helpincreditanalysis?
-
CI9.8. Why might a deferred taxliability beconsidered nota liability forcredit scoring?
-
C19.1 O. Explain thedanger posed byspecial-purpose entities.
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App