Question: Scenario # 1 : Design a class named Baseball Game that has fields for two team names and a final score for each team. Include

Scenario #1: Design a class named Baseball Game that has fields for two team names and a final score for each team. Include methods to set and get the values for each data field. Create the class diagram and write the pseudocode that defines the class. What components and attributes will need to be included in your baseball class? Why?
Scenario #2: Design a class named Cake. Data fields include two string fields for cake flavor and icing flavor and numeric fields for diameter in inches and price. Include methods to get and set values for each of these fields. Create the class diagram and write the pseudo-code that defines the class. What components and attributes will need to be included in your cake class? Why?
In response to your peers, provide additional attributes you would like to see in their class. Feel free to include a pseudocode or flowchart example in your responses.

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