Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
1.12 Ascii-code
Sign in to test your solution.
public class Oef12 {
public static void main(String[] args) {
char letter = ...; // vul hier de letter a in
// ... hier mogen eventueel berekeningen komen
System.out.println("De ASCII-code van de letter " + letter + " is " + ... );
char hoofdletter = ...; // vul hier de letter A in
// ... hier mogen eventueel berekeningen komen
System.out.println("De ASCII-code van de hoofdletter " + hoofdletter + " is " + ... );
// ... hier mogen eventueel berekeningen komen
System.out.println("Het verschil tussen de ASCII-codes is " + ... );
char letter2 = ...; // vul hier de letter c in
// ... hier mogen eventueel berekeningen komen
System.out.println("De ASCII-code van de letter " + letter2 + " is " + ... );
// ... hier mogen eventueel berekeningen komen
System.out.println("De positie van de letter " + letter2 + " in het alfabet is " + ... );
char cijfer = ...; // vul hier het cijfer 1 in
// ... hier mogen eventueel berekeningen komen
System.out.println("De ASCII-code van het cijfer " + cijfer + " is " + ... );
System.out.println("Alle ASCII-tekens :");
for (int i = 0; i < 128; i++) {
System.out.println( ... );
}
}
}
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.