Question: Use two methods to create a structure with fields: Name, Year, ERA, and IP. Fill the fields using the first row of the below table.
Use two methods to create a structure with fields: Name, Year, ERA, and IP. Fill the fields using the first row of the below table.
Name: Year: ERA: IP:
Harang 2002,2003,2004 3.54, 4.67, 2.1 278, 192, 56
Coffey 2002,2003,2004 9.78, 12.1, 7.8 145, 267, 228
Valentine 2002,2003,2004 4.56, 1.18, 8.21 133, 184, 237
Claussen 2002,2003,2004 9.21, 7.38, 1.76 121, 280, 275
a. Create 3 more similar structures and append them to the original to create a structure array.
b. Add the field ER to each structure in the array, and assign a value to each using ERA = 9*ER/IP.
c. Practice accessing each element of the structure array and structures.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
