Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ project For this project, you will create a class for an elementary school that will allow a teacher to enter each student's seating assignment.

C++ project

For this project, you will create a class for an elementary school that will allow a teacher to enter each student's seating assignment. Occasionally, the teacher may need to switch the seating assignment of a student. If there is a seat available, the student is moved. If all of the seats are already assigned, the teacher will have two students trade seats.

Minimum Requirements:

Create a class that has a string array of size 20 as a private data member. You cannot use a vector for this assignment (5 points).

Include a function to add students to the seating chart array (5 points). Position 0 of the array represents the seat closest to the teacher's desk. The array index will represent each seat number for the seating assignments.

Include a function that will accept a student name and a target seat. This function should find the students name in the array and move the student's name from his or her original seat to the target seat. If the target seat is empty, move the student's name to the target seat. If the target seat is not empty, swap the names of the students so they trade seating assignments. (5 points).

There are several examples using arrays on the fredosaurus tutorial site that can be extremely helpful (see section on Arrays on this tutorial site):

http://www.fredosaurus.com/notes-cpp/ (Links to an external site.)Links to an external site.

You will need to decide on a way to track which seats are available.

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

=+ Do you think it is a wise investment of the firm?

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Explain the procedure for valuation of shares.

Answered: 1 week ago

Question

Which months of this year 5 Mondays ?

Answered: 1 week ago

Question

Define Leap year?

Answered: 1 week ago

Question

=+1 What would you do if you were the IHR manager?

Answered: 1 week ago