java 1

Java homework part 5.

kuppi

Been a while since my last post. Some of my homework has been really simple so I didn't find them post worthy but the previous week we dove into exceptions and maps/hashmaps.

I found exception handling to be extremely interesting and probably really valuable information when it comes to my future with coding. the program I will be going through below is the the last exercise of 4 utilizing both hashmaps and exception handling.

Java homework part 4.

Java

Won't be splitting these into two parts. I'll just write some shorter descriptions on what each program does. This week the first five exercises are about arrays and the next five are about methods. Had no difficulty doing the first five I found arrays quite simple. I ended up struggling with the method exercises. I was stuck on the second to last one for a while and had to ask a friend for some help. The solution ended up being really simple. I'll go in to more detail before the exercise.

Java Homework part 1

Java

 

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

1/10

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