Академический Документы
Профессиональный Документы
Культура Документы
Basit Qureshi
Term Project 3
Weight 5%
0
CCNode
CCNode
CCNode
CCNode
CCNode()
get()
Set(,)
//appropriate constructors
//appropriate get methods
//appropriate set methods
CCLogger()
getHash(Key)
Add(#)
Credit(Key, Amt)
Debit(Key, Amt)
getLog(Key)
4507112832632843
This indicates that the above CreditCard must be added to HashTable[1]s chain.
The getLog method
Everytime the Add, Credit, Debit methods are called the following information needs to be added to the Log in the
CCNode object.
Current_Time
CCNumber
CLimit
Balance <nextLine>
The getLog method returns String obtained from the Log variable in the CCNode object. You can obtain the
Current_Time by calling System.currentTimeMillis()/1000;
All the inputs are organized on separate lines. The output of option 4 must be organized as follows
Current_Time CCNumber CLimit Balance
Current_Time CCNumber CLimit Balance
Current_Time CCNumber CLimit Balance
.
.
Evaluation:
You are allowed to work in a group of up to 2 students. The score earned would be given to both team members
equally. Your works evaluation would be based on Code inspection and successful execution of N number of test
cases. The instructor reserves the right to determine the scores of each test case.
Code Inspection:
The code would be inspected by the instructor. Advanced tools would be used to check for plagiarism cases.
Submission:
Your group needs to submit two files, a Jar file and all code in a zip file. Beware (attach only .java files, .class files
cannot be read). The file names must be your id. For group submission, the filename must be FirstID_SecondID
All submissions through LMS (http://lms.psu.edu.sa)
Plagiarism:
Be warned, all code submitted would be compared using hackerrank. Any similar code would result in ZERO
earned for both group members as well as all other groups with similar code. NO EXCEPTIONS!