WRITTEN QUESTIONS
11.List TWO code conventions associated with comments.
12.List ONE code convention related to indentation.
13.Identify FOUR violations of Code Conventions in the above application.
14.Identify FOUR errors in the above application.
11.List TWO code conventions associated with comments.
12.List ONE code convention related to indentation.
13.Identify FOUR violations of Code Conventions in the above application.
Code:
/**
* PrintInternetRules.java
* Name: WongPuter
* Description: Displays student rules for accessing the Internet.
/*
public class PrintInternetRules
public static void main(String[] args) {
System.out.println("Internet Rules\n");
System.out.println("1. Use school issued login and password.");
System.out.println("2. Do not download any files.")
system.out.println("3. Do not reveal personal information.");
}
}
Code:
/**
* PrintInternetRules.java
* Description: Displays student rules for accessing the Internet.
/*
public class PrintInternetRules
public static void main(String[] args) {
System.out.println("Internet Rules\n");
System.out.println("1. Use school issued login and password.");
System.out.println("2. Do not download any files.")
system.out.println("3. Do not reveal personal information.");
}
}



thawa tikak tiyenwa puluwan welawaka Upload karanam 