A course project repo for CSCI5448.
Group member: Sijia Ge, Xiaosong Wang, and Zhiyong Wang.
Java Version:16.0.2
Code Version:1.0
view the latest release of project 3
The output result of our code is in output.txt.
The link to Part1 (former) version of UML:
UML 0.0
The link to Part2 (current) version of UML:
UML 1.0
The link to the document that describes the changes of our UML:
UML Documentation
- The conditions of items are integers from 1 to 5 inclusively. The correspond relation between number and words is {Poor:1, Fair:2, Good:3, Very Good:4, Excellent:5}.
- The price of items is an integer. When the price is changed 1.1 times, 0.9 times, the 0.8 times, the (int) method is applied to truncate the float into int .
- If the order is delivered on Sunday, when the store is closed, the staff of Monday will put items of the order in the inventory on that day.
- if today is sunday, both clerk's consecutive work days will clean to zero
- the correspondent situation wth different prices:
- listprice:when the buyer first time to consult with the price;
- saleprice:when the buyer second time to consult with the price;
- purchaseprice: the price for ordered new items;
- Examples of Inheritance can be found in Items.java, where each subclass inherits from the Parent class.
- Examples of Polymorphism can be found in Items.java, where subclass's Constructor and getter method overrides the Parent Class. Examples of Polymorphism can also be found in the Staff.java
- Examples of Cohesion can be found in Helper,java, where each method only has one basic thing/function to do.
- One example of Identity can be found in Staff.java, where the checkWithBuyer method check the content of two objects instead of the identity of two objects.
- Examples of Encapsulation can be found in Items.java, where classes' attributes are private and protected.
- One Example of Abstraction can be found in Staff.java, where the cehckRegister delegates with other methods, without concerning the details.