Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that does the following: 1. DefinesaclassnamedDatathathasthefollowingmembers a. Avectorofintegersentitlednumbers(Private) b. Methods(Functions)(Public): i. Display_Menu Prompts the user to choose one of the following

Write a C++ program that does the following: 1. DefinesaclassnamedDatathathasthefollowingmembers a. Avectorofintegersentitlednumbers(Private) b. Methods(Functions)(Public): i. Display_Menu Prompts the user to choose one of the following 0. Quit 1. InputNumbers 2. DisplayNumbers 3. SearchNumbers 4. DeleteNumbers ii. Input_Numbers (Allows user to push integers onto the vector entitled numbers) iii. Display_Numbers (Outputs the content of the vector numbers) iv. Search_Numbers (Searches the numbers vector and outputs the index of where it is found; it outputs a message that it was not found otherwise) v. Delete_Numbers(deletes all integers in the vector numbers) 2. Define each method. You do not need to define a constructor for this class. 3. Define a main function that makes use of all members of a Data object. Allow the user to continue until they indicate that they want to quit. [Sample Run on next page]:

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

Students also viewed these Databases questions

Question

3 How the market system answers four fundamental questions.

Answered: 1 week ago

Question

5 The mechanics of the circular flow model.

Answered: 1 week ago

Question

1 The difference between a command system and a market system.

Answered: 1 week ago