question archive Assignment 2 Gift Hierarchy Before attempting this project, be sure you have completed all of the reading assignments, nongraded exercises, discussions, and assignments to date
Subject:Computer SciencePrice:10.01 Bought6
Assignment 2
Gift Hierarchy
Before attempting this project, be sure you have completed all of the reading assignments, nongraded exercises, discussions, and assignments to date.
Make sure your Java program is using the recommended style such as:
You should capture and label screen captures associated with compiling your code, and running the a passing and failing scenario for each functionality
MENU
1: Order a Gift Basket
2: Change Gift Basket
3: Display Gift
9: Exit program
Enter your selection : 3
No gift has been ordered yet
MENU
1: Order a Gift Basket
2: Change Gift Basket
3: Display Gift
9: Exit program
Enter your selection : 9
Thank you for using the program. Goodbye!
MENU
1: Order a Gift Basket
2: Change Gift Basket
3: Display Gift
9: Exit program
Enter your selection : 2
No gift has been ordered yet
MENU
1: Order a Gift Basket
2: Change Gift Basket
3: Display Gift
9: Exit program
Enter your selection : 1
Do you want Fruit Basket (1) or Sweets Basket (2): 1 What size do you want: S, M, or L: S
Do you want citrus fruits included? true/false: true
MENU
1: Order a Gift Basket
2: Change Gift Basket
3: Display Gift
9: Exit program
Enter your selection : 3
FruitBasket [numFruits=6 haveCitrus=true size=S id=FB3150 price=25.98]
MENU
1: Order a Gift Basket
2: Change Gift Basket
3: Display Gift
9: Exit program
Enter your selection : 2
Current gift size is: S What size do you want? S, M, or L:
M
Current basket citrus=true Do you want citrus fruits included? true/false: false
MENU
1: Order a Gift Basket
2: Change Gift Basket
3: Display Gift
9: Exit program
Enter your selection : 3
FruitBasket [numFruits=9 haveCitrus=false size=M id=FB3150 price=29.99]
MENU
1: Order a Gift Basket
2: Change Gift Basket
3: Display Gift
9: Exit program
Enter your selection : 9
Thank you for using the program. Goodbye!
Deliverables include Java program (.java) and a single Word (or PDF) document. The Java and Word/PDF files should be named appropriately for the assignment (as indicated in the SubmissionRequirements document.
The word (or PDF) document should include screen captures showing the successful compiling and running of each of the test scenario. Test scenarios should include all required functionality of the program. Each screen capture should be properly labeled clearly indicated what the screen capture represents.
Submit your files to Assignment 2 submission area no later than the due date listed in your online classroom.
The following grading rubric will be used to determine your grade:
Attribute |
Level (15-20 points) |
Level (5-15 points) |
Level 0 (0 - 5 points) |
The Gift hierarchy classes |
Correct or almost correct attributes and inheritance structure |
Mistakes in implementation |
Missing or significantly incorrect implementation |
Calculate price |
Correct or almost correct code to calculate price using overriding |
Mistakes in implementation |
Missing or significantly incorrect implementation |
Encapsulation |
Correct or almost correct code for encapsulation |
Mistakes in implementation |
Missing or significantly incorrect implementation |
Test class |
Correct or almost correct code to meet required functionality |
Mistakes in implementation |
Missing or significantly incorrect implementation |
Program documentation and style, screen captures |
Correct or almost correct menu, program comments, identifiers, and screen captures |
Mistakes or incomplete menu, documentation and/or style, and screen captures |
Missing or significantly incorrect menu, documentation and/or style, or screen captures |
Purchased 6 times