• Write a program, using a class, for a 2 dimensional point in space i.e. has x and y coordinate. Include getter, setters, constructors. Create a class for a 3 dimensional point by deriving from the 2 dimensional class. Again include getter, setters, constructors. Write a small main class to test your classes.
  • Write a C++ programme that will have a base class that includes a pure virtual function. The base class will have 2 variables for an initial value and a converted value and at least 2 accessor functions. The derived classes will allow us to convert miles to km, km to miles, euros to sterling and sterling to euros. Write a main programme to test the classes and functions.
  • Write a C++ programme to implement the following class hierarchy and write code to check the classes and functions. Also use the this pointer in your programme. See image.
  • The VEHICLE class should have a member variable for colour. The CAR class will have the number of airbags. The TRUCK class will have a tonnage. The COMPANY class will have a driver
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.