Skip to content

labermt/CST136SRS02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CST136SRS02

Polynesian Polymorphism

Name:


Purpose:

  • Learn C++ Polymorphism
  • Practice creating classes
  • Understand abstraction and abstract classes

Solution Name: CST136SRS02 Project Name: Waka

In this assignment you will create different boats to take you on your voyage around the Pacific Ocean. You already have all the safety gear and the knowledge to use it should you run across rough seas. Many wonders await you, but before you do that, you must make sure you can handle your boat, so we will be sticking close to the coast of New Zealand.

You will create at least 3 different types of boats. A raft, a canoe, and a sailboat. Only a sailboat may have a sail.

You must name each of your boats for them to have mana.

You will find the UML blueprints to assemble your boats in a file called Waka.png. See: Waka

After you have assembled your boats to specification, take them on a test voyage.

Create a Wind and Water object as well as a Chart to keep track of your navigation.

Your boats should turn more easily if MonoHull but be more stable if MultiHull.

A sail is greatly impacted by the wind and can never move you within +-45 degrees of direction of the wind. Doing so will capsize your boat. However, your speed will be greatly increased by a sail. A MultiHull boat isn't as easy to capsize and your code should reflect this.

A raft has no control and is only able to drift with the current.

Simulate the conditions of a voyage and chart your course around the entire coast of New Zealand. (See included map)

After you have tested your boats, be able to explain which one would be your choice for a trip across the Pacific Ocean.

Feel free to add provisions and gear (compass, ropes, food, drinking water, ...) as you see fit. Also feel free to add any additional boat items such as an anchor, rudder, ...

There are no points given for being fast or even successful navigation, your only goal is to create your boats to the UML specification, describe how you assembled them, and demo testing them.

Be sure you account for rough seas in your simulation and have your safety gear ... urrr... code (assertions, exceptions, ...) ready and be able to demonstrate it functioning.

If you have a destructor in any class, follow the guideline C.35: A base class destructor should be either public and virtual, or protected and nonvirtual

If you want to refer to a concrete class in your code beyond construction, you must obtain permission from the master boat builder (aka your instructor).

Be creative and have fun on your test voyage.

About

Polynesian Polymorphism

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published