Rob Hallam
4466f6271a
(feat) implement optional section on polymorphism
pirms 1 gada
Rob Hallam
a05a149c05
(feat) Implement exercise section 4 - SavingsAccount
pirms 1 gada
Rob Hallam
22e9c99217
(feat) Implement Exercise 3 - Student and Lecturer child classes
pirms 1 gada
Rob Hallam
9dd0c86f0e
(feat) Implement up to the end of Exercise 2
ie use Person in BankAccount, implement transferFunds(), demo those
pirms 1 gada
Rob Hallam
6dbd10165a
(feat) Implement and demo Person and BankAccount classes (2.6)
pirms 1 gada
Rob Hallam
b3bef68db2
(feat) Exercise 6.9 - let user play rock-paper-scissors
We'll let the AI keep playing too
Takes user input as number or word or q to quit
pirms 1 gada
Rob Hallam
89ece3f1b9
(feat) Take user input for 6.5 number guessing game
It's quite fun actually!
pirms 1 gada
Rob Hallam
263a2b39a3
(feat) Implement Lab 5 exercise 7 - show user age
pirms 1 gada
Rob Hallam
1ffe5ad5b6
(fix) Bugfix "How many years old are you" exercise
It blithely ignored unimportant things like what day of the year it is today and
in the DOB.
Note that Java Calendar instances are zero-indexed, so Calendar.set(1990, 12, 1)
sets the object to 1st January 1991, not 1st Dec 1990 (!!)
pirms 1 gada
Rob Hallam
a8f1e05092
(feat) Implement Lab 6 exercise 5 - number guessing game (AI)
user guessing when we get stdin working
pirms 1 gada
Rob Hallam
f419b03675
(feat) Lab 6 exercise 9 - Rock Paper Scissors (no input version)
pirms 1 gada
Rob Hallam
992c14be3b
(feat) Lab 7 - string formatting implemented
Plus placeholder for lab 6 exercise 9 (rock-paper-scissors)
pirms 1 gada
Rob Hallam
3d7f4d6817
(feat) Lab 6 Exercise 8 - left padding a string
pirms 1 gada
Rob Hallam
1052e8e5b6
(refactor) Change Section to Exercise
pirms 1 gada
Rob Hallam
20ab80f8fb
(feat) More number triangle examples
pirms 1 gada
Rob Hallam
ae5b69fdc5
(feat) Lab 6 Exercise 7 - double division
Implements an object type - DoubleDivisionResult class to return quotient and remainder
pirms 1 gada
Rob Hallam
f3fc7c3984
(feat) wrap number triangles in newlines
Also add some docstrings and questions
pirms 1 gada
Rob Hallam
4b01248b29
(refactor) Move constructor to top of class
pirms 1 gada
Rob Hallam
fd1fd718f2
Implement Lab 6 Exercise 6 (number triangle)
I spotted a neat way of doing this before I had to head off so couldn't resist
pirms 1 gada
Rob Hallam
4f8ba4d428
Implement Lab6 up to and including Exercise 4
Exercise 5 requries stdin so we will come abck to that once I figure out how
best to do that.
Primes generation could be more efficient.
pirms 1 gada
Rob Hallam
1c57e4d8a7
Finish up to end of Lab 4
Skips labs 1-3, did them in eclipse which failed to save to OneDrive (!)
Implements Lab and Section classes for more easily and consistently running
particular labs.
pirms 1 gada