1.4-Software-Development-Principles

A plane with passengers

As described in OOP

Create a program that lets you board people in an airplane. We’ve already prepared some things for you here so you don’t have to build everything from scratch. You are supposed to build the class Airplane.

The following rules apply for this program:

Now write the full implementation of the program, focusing on adding the following functionality:

Writing the code

You may use the code that you wrote before, but we have an example solution available.

Note: When you choose to use the example solution, you may only write unittests. The solution is perfect.

Testing

The code may still contains the original tests written in Java. The example certainly does. Feel free to use this as inspiration for your unittests.

A small sample of tests is written for the Bag class. It is your task to write a test class for Passenger and Airplane.

You are done when you have achieved 100% coverage. Coverage overview with 100% branch coverage