Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Menu-Driven C++ program

Menu-Driven C++ program

Assignment
Write a menu-driven C++ program to manage a class roster of student names that can grow and shrink dynamically. It should work something like this (user input highlighted in blue):
Array size: 0, capacity: 2MENUA Add a studentD Delete a studentL List all studentsQ Quit…your choice: a[ENTER]Enter the student name to add: Jonas-Gunnar Iversen[ENTER]Array size: 1, capacity: 2MENUA Add a studentD Delete a studentL List all studentsQ Quit…your choice: a[ENTER]Enter the student name to add: Marcela Nogueira[ENTER]Array size: 2, capacity: 2MENUA Add a studentD Delete a studentL List all studentsQ Quit…your choice: l[ENTER]Student Roster————–Jonas-Gunnar IversenMarcela NogueiraArray size: 2, capacity: 2MENUA Add a studentD Delete a studentL List all studentsQ Quit…your choice: d[ENTER]Enter the student name to delete: Jonas-Gunnar Iversen[ENTER]Array size: 1, capacity: 2MENUA Add a studentD Delete a studentL List all studentsQ Quit…your choice: q[ENTER]
Requirements

Allow the menu options to be entered in either lower or upper case.
Implement all the actions in the above menu – add, delete and list.
Use a dynamic array of strings to store the roster, with an initial capacity of 2.
Double the array capacity when (a) you have a new student to add, and (b) size equals capacity. You do not need to shrink the array after deletes.
The output table should have a column heading as shown above.
Output the array size and capacity along with the output table.

Hints
You don’t have to write functions for everything. You may just write code blocks in main, and if it makes sense for you to move any of them out of main and into functions (like a void function to cout a table of names), do so.
Would the operations be best handled with a series of if/else statements, or a case/switch statement?
There are some built-in string functions that convert to upper and lower case.
What to Submit
Submit your .cpp file and a screenshot of one run of the program that includes at least an “add” of a name and one “list” operation.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Blackboard Experts only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Blackboard Experts are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Blackboard Experts is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Blackboard Experts, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.