CS 160 - Programming Concepts and ApplicationsSummer II 2018 - Lab 7A - Godzilla vs MechagodzillaQuick Links: Canvas | John Cabot | Piazza | zyBooks |
|
| Home | Contact | Syllabus | Assignments | Schedule | Resources | | |
This lab is due by Friday, August 3, 2018, 11:59 PM. ConceptsFocus on defining a Godzilla class from
scratch.
Suggestion: Use NotePad or WordPad
Consider using NotePad or WordPad on your computer to write your code
for this lab. Once you feel good about what you've written, then copy
the code into your project. Doing this will help you see where
you might make mistakes on the exam!
You should write a
main.cpp
that tests each feature of your class works as expected. You
will need to submit your class declaration file, your class
definition file, and your
main.cpp
file for this lab.
Godzilla Class
We are going to declare a class called
Godzilla that will allow us to simulate a battle
between Godzilla & Mechagodzilla.
Create a new class called Godzilla that
contains data members for storing the name (as a string), the health and power (as doubles) of a Godzilla creature.
Also, use a private helper function wherever one makes sense.
Functions you should include in your class:
Lab SubmissionYou will submit your solution to this lab with the rest of Set7. Detailed instructions for doing this are posted in Assignment 7. This lab is due by Friday, August 3, 2018, 11:59 PM. | |
Last Updated: 06/13/18 21:51
|