davidfalsis
2009-08-30 02:27:55 UTC
package davidfalsisss92;
import javax.swing.JOptionPane;
import java.util.Scanner;
public class Finals {
public static void main(String[] args) {
int option;
int monitorProblems;
int pictureSolution;
String hardware[] = {"1.) Monitor","2.) Mouse","3.) Hard drive","4.) Keyboard","5.) Unresponsive PC"};
String monitorTrouble[] = {"1.) I can't see anything on my monitor", "2.) The picture does not appear", "3.) The screen is not synchronized", "4.) The screen is not alligned", "5.) The screen settings is imbalanced"} ;
String monitorSolutions[] = {"Is the computer turned on? There is a light on the CPU. If the computer is on, it will be lit.", "Check to make sure that the computer signal; cable is finmly connected in the socket"} ;
JOptionPane.showMessageDialog(null,"Welcome To PC Calibrator");
JOptionPane.showInputDialog(null,"Please choose a troubleshooting option:\n1.) Monitor\n2.) Mouse\n3.) Hard drive\n4.) Keyboard\n5.) Unresponsive PC");
for(int i=0;i
Scanner scan = new Scanner(System.in);
option = scan.nextInt();
switch (option) {
case 1:
JOptionPane.showMessageDialog(null,"What is the problem of your monitor?");
for(int i=0;i
Scanner monitor = new Scanner(System.in);
monitorProblems = monitor.nextInt();
switch (monitorProblems) {
case 1:
JOptionPane.showMessageDialog(null,"-Is the computer turned on? There is a light on the CPU. If the computer is on, it will be lit." +
"\n*Power cord from the computer to the power strip." +
"\n*Power strip to the wall socket." +
"\n\n-Is the Power Strip turned on? There is a light on the strip. If the strip is on, the indictor light will be on." +
"\n\n-Is the Monitor on? There is a light on the monitor. If the monitor is on, it will be lit. If it is turned on, check the contrast and brightness buttons to see if they have been tampered with." +
"\n\n-Is the computer in Power Save or Sleep mode? Move the mouse or press any key on the keyboard to see if the computer will wake-up." +
"\n\n-Are all peripherals plugged in? Verify that all cables and cords leading in to and out of your computer to insure they are all in tight and not disconnected.");
break;
case 2:
JOptionPane.showMessageDialog(null,"Choose a solution");
for(int i=0;i
Scanner mSolutions = new Scanner(System.in);
pictureSolution = mSolutions.nextInt();
switch (pictureSolution) {
case 1:
JOptionPane.showMessageDialog(null,"It is!");
break;
case 2:
JOptionPane.showMessageDialog(null,"Ah, I see now, thank you sir^^");
break;
default:
}
break;
default:
}
}
}
}