Answer:400 ways
Explanation:
Given
for the first two questions there are 4 choices
therefore for 1 st question there are
for 2 nd question there are
For 3 rd question there are
For 4 th question there are
Thus a total of
Answer:
import java.io.File; // Import the File class
import java.io.FileNotFoundException; // Import this class to handle errors
import java.util.Scanner; // Import the Scanner class to read text files
public class ReadFile {
public static void main(String[] args) {
try {
File myObj = new File("filename.txt");
Scanner myReader = new Scanner(myObj);
while (myReader.hasNextLine()) {
String data = myReader.nextLine();
System.out.println(data);
}
myReader.close();
} catch (FileNotFoundException e) {
System.out.println("An error occurred.");
e.printStackTrace();
}
}
}
Explanation:
this will read the file and print it out, to do the rest have it take the data and use some "java math" and then print the answers to either console or a file of your choice.
Answer:
List, Cycle, Relationship, Pyramid.
Explanation:
100%