CS12

Lab 3

In this lab you will be working with classes. This is the last week you will be allowed to use Microsoft Visual C++ to do your assignments. You should start to become familiarized with Linux because next week's labs should be completed in Linux.

The lab consists of writing a class to maintain information about a school. You should be able to keep the following pieces of data: number of students, number of teachers, and number of other staff.

Write a constructor that sets each data member to some appropriate default value. Write a second constructor that sets each data member through parameters. Write a member function to set the information. Write a member function to print the data members nicely.

Use a main that performs the following (translate each line into appropriate code):