Program to Manage a Class Roster of Student Names

Program to Manage a Class Roster of Student Names C++ programming

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):

Program to Manage a Class Roster of Student Names
Program to Manage a Class Roster of Student Names

Array size: 0, capacity: 2

MENU

A Add a student

D Delete a student

L List all students

Q Quit

…your choice: <strong>a[ENTER]</strong>

Enter the student name to add: <strong>Jonas-Gunnar Iversen[ENTER]

</strong><strong>

</strong>Array size: 1, capacity: 2

MENU

A Add a student

D Delete a student

L List all students

Q Quit

…your choice: <strong>a[ENTER]</strong>

Enter the student name to add: <strong>Marcela Nogueira[ENTER]

</strong>

Array size: 2, capacity: 2

MENU

A Add a student

D Delete a student

L List all students

Q Quit

…your choice: <strong>l[ENTER]</strong>

Student Roster

————–

Jonas-Gunnar Iversen

Marcela Nogueira

Array size: 2, capacity: 2

MENU

A Add a student

D Delete a student

L List all students

Q Quit

…your choice: <strong>d[ENTER]

</strong>Enter the student name to delete: <strong>Jonas-Gunnar Iversen[ENTER]</strong>

Array size: 1, capacity: 2

MENU

A Add a student

D Delete a student

L List all students

Q Quit

…your choice: <strong>q[ENTER]</strong>

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.

Program to Manage a Class Roster of Student Names 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 count 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.

We can write this or a similar paper for you! Simply fill the order form!

Unlike most other websites we deliver what we promise;

  • Our Support Staff are online 24/7
  • Our Writers are available 24/7
  • Most Urgent order is delivered with 6 Hrs
  • 100% Original Assignment Plagiarism report can be sent to you upon request.

GET 15 % DISCOUNT TODAY use the discount code PAPER15 at the order form.

Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page:
 Total: