Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 1.6 KB

README.md

File metadata and controls

68 lines (51 loc) · 1.6 KB

Hjemmeopgaver 09/10/2017

Hjemmeopgaver som skulle laves til den 09/10/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.

Opgave beskrivelse til 3.4

Opgave 3.4

Opgave beskrivelse til 3.6

Opgave 3.6

Opgave beskrivelse til 3.17

Opgave 3.17

Opgave beskrivelse til 5.1

Opgave 5.1

Opgave beskrivelse til 5.4

Opgave 5.4

Programmets output: Opgave 3.4

October

Programmets output: Opgave 3.6

Enter weight in pounds: 100
Enter feet: 5
Enter inches: 7
BMI is 15.66050345288483
Underweight

Programmets output: Opgave 3.17

scissor (0), rock (1), paper (2): 1
The computer is rock. You are rock. It's a draw.

Programmets output: Opgave 5.1

Enter your score: 60
You pass the exam.

Enter your score: -3
You don't pass the exam.

Programmets output: Opgave 5.4

Inches      Centimetres
1           2.54
2           5.08
3           7.62
4           10.16
5           12.7
6           15.24
7           17.78
8           20.32
9           22.86
10           25.4