else if java

Java homework part 2.




Our homework is starting to get a bit trickier when it comes to the java course. I did enjoy the exercises though.

I'll separate our 10 homework assignments in to 2 posts of 5 exercises just for the sake of clarity and post length. I felt my last Java related post was a bit long. This first post will be 5 exercises in "while" and "for" statements. I'll again include some short descriptions on what each individual program does. I'll also start including some screenshots where I can from here on.

Java Homework part 1



These posts will be a little simpler I'll just post short descriptions on what what was supposed to be done and the source code for my solutions below. Certain things in my solutions will be in Finnish due to course requirements.

Our first homework assignment was 10 little tasks to complete with Java. I used the required Eclipse Oxygen editor with Java Development kit version 1.8 to write these.

Basic Stuff


Create a calculator that calculates the amount of "daily fine" based on user income