| 
 This assignment is due by Tuesday, November 27, 2018, 11:59 PM. · Instructions · Rubric · Submission · The purpose of this assignment is to
	give you more practice on writing your own classes. 
 
 
Part I - Create Your Own Magic Item
 
 
Part I is due by Thursday, November 15, 2018, 11:59 PM. 
	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.
    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 for Part I
 
 
	- You must declare your class in its own header file and then define your class
		in a corresponding source file.
 
	- 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 must 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 must include
		your name.
 
 
 
Part I is due by Thursday, November 15, 2018, 11:59 PM. 
 
 
Part II - Share Your Magic Item
 
 
    There are two pieces to this part. First, you should refactor your
    class to only have private data members and a public interface using
    getters/setters as necessary. If your class uses helper functions, then
    make sure they are appropriately declared as private so a user cannot
    inadvertantly call one of them.     Second, you must acquire
    three other magic items from your classmates to use (see the next
    section). Include their .h and .cpp files into your project. Then in
    your main.cpp create objects of these new classes. You can then present
    the user with a menu as to which magic item they want to use or use all
    four in sequence.
 
 
 
Code Sharing
 
 
Before sharing your "magic item" class
    with another, you should include your name
    in both files associated with your "magic item" class. In other
    words, your "magic item" class is your work; make sure you take credit
    for it! 
 
    In your
    main.cpp
    file, also include all names of people you shared your "magic
    item" class with.
 
 
    If you are interested in having others use your awesome "magic item"
    class, feel free to post an advertisement on Piazza (with your email
    address so students can contact you for a copy of your code). However,
    you must follow these rules: 
            - Do NOT post your "magic item" class source code on Piazza.
 
            - Do NOT post your "magic item" advertisement before Friday, November 16, 2018, 8:00 AM.
                Any posts made prior to this date will be deleted.
 
            - Do NOT share your 
main.cpp file.  ONLY share your MagicItem.h
                and MagicItem.cpp files. 
            - Post your advertisement as a NOTE (not a question).  Any advertisements posted as a question will be deleted.
 
         
 
 
 
Functional Requirements for Part II
 
 
To receive full credit, the following
    requirements must be met: 
    - 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.
 
    - Your 
main.cpp must use at least three "magic items"
        written by others (in addition to your own), as well as let the user know whether he/she won the
        prize.
     
 
 
Grading RubricYour submission will be graded according to the following rubric.
 
   	
		| 2 | 
		All code submitted properly. | 
	 
	
		| 8 | 
		All labs completed and submitted. Due Tuesday, November 27, 2018, 11:59 PM | 
	 
	
		| 5 | 
		Part I - Original class created with at least two data members and at least three member functions that are not a constructor or getter/setter. Due Thursday, November 15, 2018, 11:59 PM | 
	 
	
		| 3 | 
		Part I - Functional requirements met above. Due Thursday, November 15, 2018, 11:59 PM | 
	 
	
		| 3 | 
		Part II - Original class created with at least two data members and at least three member functions that are not a constructor or getter/setter. public/private used appropriately. Due Tuesday, November 27, 2018, 11:59 PM | 
	 
	
		| 3 | 
		Part II - Three other original classes used appropriately in your main.cpp. Due Tuesday, November 27, 2018, 11:59 PM | 
	 
	
		| 3 | 
		Part II - Functional requirements met above. Due Tuesday, November 27, 2018, 11:59 PM | 
	 
	
		| 2 | 
		(1) Comments used (2) Coding style followed (3) Appropriate variable names, constants, and data types used (4) Instructions followed | 
	 
	
		
		
	 
 
 This assignment is due by Tuesday, November 27, 2018, 11:59 PM. SubmissionAlways, 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.  The following instructions are copied from How to Submit Homework.  
 It is critical that you follow these steps when submitting homework.
 
 
 If you do not follow these instructions, your assignment
    will receive a major deduction. Why all the fuss? Because we have
    several hundred of these assignments to grade, and we use
    computer tools to automate as much of the process as possible.
    If you deviate from these instructions, our grading tools will
    not work. And that makes us very unhappy. And when we're
    unhappy, we give penalties. Thus, make us  happy.   
 
 
Submission Instructions
 
 
 Here are step-by-step instructions for submitting your homework properly:
 
    
        - File and folder names are extremely important in this process.
            Please double-check carefully, to ensure things are named correctly.
            
                - The top-level folder of your project must be named 
                        Set8 
                -  Inside 
Set8, create 5 sub-folders that are required for this Set. The name of each sub-folder is defined in that Set (e.g. L8A, L8B, L8C, L8D, and A8).                 -  Copy your 
main.cpp , additional header & source files, plus the CMakeLists.txt file  into the subdirectories of 
                        Set8 (steps 1-2),
                    zip this Set8 folder (steps 3-4), and then submit the zipped file (steps 5-11) to Canvas.  
                -  For example, when you zip/submit 
Set8, there will be 5 sub-folders called L8A, L8B, L8C, L8D, and A8 inside the Set8 folder, and each of these sub-folders will have a file called main.cpp, additional header & source files, plus the CMakeLists.txt file .              
             
         
        - Using Windows Explorer (not to be confused with Internet Explorer), find the file
            named 
"main.cpp" located inside the folder for the particular lab or homework
                    assignment you will submit.
             
             
            STOP: Are you really sure you are viewing the correct assignment's folder?
             
             
         
        - Now, for A8, right click on the 
main.cpp to copy the file. Then, return to the Set8/A8
            folder and right click to paste the file. In other words, put a copy of your homework's main.cpp source code into the Set8/A8 folder.
              Repeat this for each additional header & source file you have with this assignment, plus CMakeLists.txt.             
             
             Follow the same steps for L8A, to put a copy of your lab's main.cpp into the Set8/L8A folder.  Repeat this process for Set8/L8B, Set8/L8C, Set8/L8D.              STOP: Are you sure your Set8 folder now has all your code to submit?
             
             
         
        - Now, right-click on the 
"Set8" folder.
            
                - In the pop-up menu that opens, move the mouse 
"Send to..." and expand the sub-menu. 
                - In the sub-menu that opens, select 
"Compressed (zipped) folder". 
             
             
            STOP: Are you really sure you are zipping a Set8 folder with sub-folders that each contain  a main.cpp file in it?
             
             
         
        - After the previous step, you should now see a 
"Set8.zip" file.
             
             
         
        - Now visit the Canvas page for this course
            and click the 
"Assignments" button in the sidebar.
             
             
         
        - Find Set8, click on it, find the 
"Submist Assignment" area, and then click the "Choose File" button.
             
             
         
        - Find the 
"Set8.zip" file created earlier and click the "Open" button.
             
             
            STOP: Are you really sure you are selecting the right homework assignment? Are you double-sure?
             
             
         
        - WAIT! There's one more super-important step. Click on the blue 
"Submit Assignment" button to submit your homework.
             
             
         
        - No, really, make sure you click the 
"Submit Assignment" button to actually submit your homework. Clicking
            the "Choose File" button in the previous step kind of makes it feel like you're done, but you must click
            the Submit button as well! And you must allow the file time to upload before you turn off your computer!
             
             
         
        -  Canvas should say "Submitted!". Click "Submission Details" and you can download the zip file you just
            submitted. In other words, verify you submitted what you think you submitted!
 
     
 
 In summary, you must zip the "Set8" folder
    and only the "Set8" folder, this zip folder must have several sub-folders, you must name all these folders correctly, you must submit the correct zip file for this
    homework, and you must click the "Submit Assignment" button. Not doing these steps is like bringing your
    homework to class but forgetting to hand it in.   No concessions will be made for
        incorrectly submitted work. If you incorrectly submit your homework, we will not be able to
    give you full credit. And that makes us unhappy.  
 
 This assignment is due by Tuesday, November 27, 2018, 11:59 PM.  |