Lab 10 Ex1

You cannot submit for this problem because the homework's deadline is due.

Ex1. Class exercise - Bus (40 marks)

In this exercise, you need to implement a class that models the basic behavior of a bus. The details of the class's definition including its methods and attributes are given in Bus.h on Canvas. You should submit only one file called Bus.cpp that implements the following:

  • The constructor Bus(int passengerNumMax);

  • Three methods: void print(); void passengerGetOn(int num); and void passengerGetOff(int num);

    A sample main function ex1.cpp is provided on canvas.

Lab 10 Exercises

Not Claimed
Status
Finished
Problems
3
Open Since
2022-07-21 18:15
DDL
2022-07-22 23:59
Extension
0.0 hour(s)