Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Game structure Have it contain fields to hold the following values Name Type (e.g. it may hold something like: card game, board game,

 
  • Create a Game structure
    • Have it contain fields to hold the following values
      • Name
      • Type (e.g. it may hold something like: card game, board game, TTRPG, chance, etc.)
      • Minimum player count
    • Make sure the datatypes are correct
  • In the main
    • Create 2 different variables that are of the type as defined above
    • Fill the 2 variables with the required information (data in each field)
    • Use the variables by displaying all of the information stored. Make it easy to understand what is being displayed (user experience)

Part 1a

  • Create a book class
  • Create a movie class
  • Create an instrument class
  • Create a school class

Part 1b

In the main have the following occur

  • Create 3 objects to record the schools you went to (myElementary, myHighschool, etc.)
  • Create 2 objects to store different books that you have read
  • Create 4 objects to store movies you have watched


Make sure the variable names are descriptive. book1, book2, etc. mean nothing.

Part 2

For the following fields: use the public keyword.

  • In the school class add fields to hold the school name, the city it is found in and level of the school (elementary, high school, graduate school, etc.)
  • In the movie class add fields to hold the movie name and release date
  • In the book class add fields to hold the book title, author and page count
  • In the instrument class add fields to hold the name (type) of the instrument and state (e.g. old, new, used, rusty, broken)
  • In the instrument class add a method
    • called Play
    • returns nothing
    • has no parameters
    • displays "A melodious sound is created!" in the console

Part 3

  • In the main
    • Populate one of the schools, one of the books, and one of the movies with data to show you filling the fields with data
    • Create an object to hold an instrument
    • Play the instrument
    • Now display all the book's, school's and movie's fields to the console.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres a C code structure to fulfill the requirements include iostream include string Game structure ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Calculate the missing value.

Answered: 1 week ago