Object-Oriented Programming with Java, part II – Exercise 3

Let’s create an interactive program to control two liquid containers. The containers are named “first” and “second”. Each are capable of containing 100 liters of liquid at a time. My Code LiquidContainers Model Code LiquidContainers Comments OK, their way was slightly simpler but I wasn’t that far off. I seem to follow the instructions rather …

Read moreObject-Oriented Programming with Java, part II – Exercise 3

Object-Oriented Programming with Java, part II – Exercise 1

Write a program that reads strings from the user until the user inputs the string “end”. As long as the input is not “end” the program should handle the input as an integer and print the cube of the integer (meaning number * number * number). My Code Main Model Code Main Comments I kind …

Read moreObject-Oriented Programming with Java, part II – Exercise 1