Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program for storing information on a series of balls collected by a person. The balls should have these characteristics: 1. Diameter in

Write a C++ program for storing information on a series of balls collected by a person. The balls should have these characteristics:

1. Diameter in mm

2. Color

3. if the texture of the surface is smooth or rough

4. an identification id/number

The program should allow the person to enter the values for the balls' attributes as they are entered in a database. The program should then offer the choice to save all new data into a file.

Next, the program should offer these operations:

1. List all balls with diameters above 10mm (Show all attribute values)

2. List all balls with less or equal to 10mm (Show all attribute values)

3. Show all balls that are smooth (Show all attribute values as a list)

4. Show all balls that are rough (Show all attribute values as a list)

5. Find a specific ball based on its id (Show all attributes)

6. How many balls of a specific color are in the database? (Show a total)

Program requirements:

1. The program must be OOP

2. Use of an array as temporary buffer to store ball objects

3. Move content of array to file

4. Retrieve all objects in file to an array at run time

5. Use of menus to direct user on the various available options for the program.

6. Use of header files for the classes need for this program (Use a project setup rather than a single app).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions