CSCI 261 - Programming Concepts (C++)

Fall 2016 - Assignment 10 - Magic Item

Quick Links: Blackboard | EECS | Mines | Piazza | zyBooks

|   Home |  Contact |  Syllabus |  Assignments |  Schedule |  Resources   |
This assignment is due by November 09, 2016 08:00am.


The Purpose



The purpose of this homework is to give you more practice on writing your own classes.


The Goal



The goal of this homework is to create a unique class of a "magic item", which allows the user of the "magic item" to do something and then, perhaps, win something. Your "magic item" can (and should) have different behaviors than the "magic items" created by your fellow students. For example, a "magic item" may ask a riddle and, if answered correctly, awards a potOfGold. In addition to answering a riddle, other example behaviors are solving a math problem, answering a trivia question, playing a slot machine, etc.

You have complete freedom as to what this magic item does. You can use SFML if you'd like. Be creative and have fun with this assignment. Next week, you will see and use your magic item along with several of your classmates so try to create the best magic item and show off your skillz. Just as your items have prizes, there will prizes in class as well.


Examples



To illustrate this "magic item" idea, example 1 and example 2 are provided. You are not allowed to use these "magic items" in your main.cpp (nor copy the example code to create your own "magic item" class either!)


Functional Requirements



  • Your "magic item" class should have at least two data members and, in addition to constructors and getter/setter functions, at least three other member functions. One of these other functions should be an Introduction() function that tells the user how to use the "magic item" to win a prize.
  • Both files associated with your "magic item" class should include your name and CSCI 261 section number.


Grading Rubric


Your final submission will be graded according to the following rubric.

PercentageRequirement Description
15%Labs completed
65%Original class created with at least two data members and at least three member functions that are not a constructor or getter/setter
20%(1) Comments used (2) Coding style followed (3) Appropriate variable names, constants, and data types used (4) Instructions followed (5) Assignment compiles


Submission


Always, always, ALWAYS update the header comments at the top of your main.cpp file. And if you ever get stuck, remember that there is LOTS of help available.

In summary, for homework due on Wednesday, November 09 follow these specific steps:
  • create a directory called week10.
  • within week10, create three subdirectories: Lab10A, Lab10B and A10.
  • within your new week10/Lab10A directory, copy in your main.cpp, Money.h, Money.cpp files from your Lab10A solution.
  • within your new week10/Lab10B directory, copy in your main.cpp file and any other files you created (*.h, *.cpp) from your Lab10B solution.
  • within your new week10/A10 directory, copy in your main.cpp file and any other files you created (*.h, *.cpp) from your A10 solution.
  • compress the week10 directory (see Step 3 here for details).
  • submit the week10.zip file to Blackboard (see Steps 5-10 here for details).
  • after you submit, download the file and double check it contains all that you think it contains!

This assignment is due by November 09, 2016 08:00am.
Last Updated: 01/01/70 00:00


Valid HTML 4.01 Strict Valid CSS! Level Triple-A conformance, W3C WAI Web Content Accessibility Guidelines 2.0