Hjemmeopgaver som skulle laves til den 25/09/2017. Opgaverne kommer fra bogen Intro to Java Programming, Comprehensive Version, Global Edition.
Programmerne er skrevet af Erik Ruhmanis på Datamatikker uddannelsen i faget programmering.
Enter miles: 100
100.0 miles is 160.0 kilometres
Enter length of the sides and height of the Equilateral triangle: 5
The area is 10.825317547305481
The volume of the Triangular prism is 54.126587736527405
Enter a value for meter: 5
5.0 meters is 16.393 feet
Enter the time zone offset to GMT: 2
The current time is 24:39:7
Enter the number of years: 5
The population in 5 years is 325932970
Enter x1 and y1:
1
2
Enter x2 and y2:
5
6
The distance between the two points is 5.656854249492381
Enter the driving distance: 500
Enter miles per gallon: 6
Enter price per gallon: 10
The cost of driving is $833.3333333333333