Changes
Page history
Update End of Term Assignment
authored
Jul 15, 2021
by
Zorenböhmer Christina
Hide whitespace changes
Inline
Side-by-side
End-of-Term-Assignment.md
View page @
eb03cdde
...
@@ -89,7 +89,9 @@ Scanner askUser = new Scanner(System.in); // warning coming from non-closed sc
...
@@ -89,7 +89,9 @@ Scanner askUser = new Scanner(System.in); // warning coming from non-closed sc
**2.**
Ask the user if they would like to
**see additional information**
on the WMS while the programme is running.
**2.**
Ask the user if they would like to
**see additional information**
on the WMS while the programme is running.
<details><summary>
See the Code
</summary>
<details><summary>
See the Code
</summary>
```
java
```
java
// user interaction: offer additional information
// user interaction: offer additional information
Scanner
askServiceInfo
=
new
Scanner
(
System
.
in
);
// warning coming from non-closed scanner. Note: if scanner is closed subsequent scanners fail to work
Scanner
askServiceInfo
=
new
Scanner
(
System
.
in
);
// warning coming from non-closed scanner. Note: if scanner is closed subsequent scanners fail to work
String
answer1
;
String
answer1
;
...
@@ -117,14 +119,18 @@ Scanner askUser = new Scanner(System.in); // warning coming from non-closed sc
...
@@ -117,14 +119,18 @@ Scanner askUser = new Scanner(System.in); // warning coming from non-closed sc
}
else
{
}
else
{
System
.
out
.
println
(
"Alright."
);
// lowkey annoyed answer hehe ;)
System
.
out
.
println
(
"Alright."
);
// lowkey annoyed answer hehe ;)
}
}
```
```
</details>
</details>
**3.**
Ask the user if they would like to
**proceed to launch**
Google Earth.
**3.**
Ask the user if they would like to
**proceed to launch**
Google Earth.
<details><summary>
See the Code
</summary>
<details><summary>
See the Code
</summary>
```
java
```
java
static
void
askUser2
()
{
static
void
askUser2
()
{
// ask user to proceed with google earth launch
// ask user to proceed with google earth launch
...
@@ -146,7 +152,9 @@ static void askUser2() {
...
@@ -146,7 +152,9 @@ static void askUser2() {
}
}
}
// askUer2()
}
// askUer2()
```
```
</details>
</details>
...
...
...
...