Assignment.pdf - C Programming Aim The objectives of this assignment includes • • Must use encapsulation inheritance polymorphism and function

Assignment.pdf - C Programming Aim The objectives of this...

This preview shows page 1 - 3 out of 10 pages.

C++ Programming Aim The objectives of this assignment includes: Must use encapsulation, inheritance, polymorphism and function overloading. Apply the concepts learnt by developing a survey and path planning program Backqround In a theoretical flat-land universe, everything is in 2 dimensions . People, animals, plants to planets, moons, galaxies and even space itself, is in 2D . In our flat-land space (i.e. 'flat-space'), there is a powerful organization called 2D-StarFIeet (2DSF), whose goals include seeking out new life and civilization via exploration. While on a routine mission of exploration, the flagship of 2DSF, the Enterprise-2D is trapped in an expanse of space encircled by a massive ring of violent, electrical plasma storm. Data coming in from the sensor array reveals that the only opening in this storm is located at the far end of the enclosed area, from Enterprise-2D's current location. In addition, the sensor data also revealed that this area is populated by strange, 2D geometrical shapes, with sizes ranging from a small moon, asteroid, to large planets, or even a star! This implies that to travel to the 'exit' at the far end of the storm, you need to understand more about the properties of these shapes and attempt to chart a course to navigate to the exit! As a Science Officer aboard Enterprise-2D, you need to develop a program that has the following capabilities: a) read in sensor data on the strange 2D shapes (via manual input) b) compute the area ('mass') of these shapes c) print shapes report (e.g. list of points: on its perimeter, or totally within shape's area) d) sort shapes data (sorted by special type and area) The next section provides information about the requirements for developing this program.
Image of page 1
C++ Programming Task Requirements A) In terms of relative positioning, you may assume a coordinate system with Enterprise-2D at the origin, trying to navigate in a general 'upper-right' direction, to get to the exit in the storm. Please refer to Appendix A, which elaborates on this coordinate system and the unit representation of 2D shapes. IMPORTANT For this assignment, you should NOT assume that the 2D shapes in Appendix A are positioned exactly as shown in Appendix A, nor that there are not more shapes. There WII, however, only be shapes of the types listed in Appendix B B) The sensor data coming in from Enterprise-2D's sensor array provides crucial information
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 10 pages?

  • Fall '19
  • James

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes