Professional Documents
Culture Documents
11-Prog Activity#3 Input Compiler Java
11-Prog Activity#3 Input Compiler Java
Scanner;
class HelloWorld {
public static void main(String[] args) {
Scanner user_input = new Scanner (System.in);
String firstname, lastname;
System.out.print("Input your firstname:");
firstname = user_input.next();
System.out.print("Input your lastname:");
lastname = user_input.next();
double attendancelec;
System.out.print("Input your lecture attendance:");
attendancelec = user_input.nextDouble();
double assignment;
System.out.print("Input your assignment:");
assignment = user_input.nextDouble();
double recitation;
System.out.print("Input your recitation:");
recitation = user_input.nextDouble();
double q1;
System.out.print("Input your Quiz 1:");
q1 = user_input.nextDouble();
double q2;
System.out.print("Input your Quiz 2:");
q2 = user_input.nextDouble();
double q3;
System.out.print("Input your Quiz 3:");
q3 = user_input.nextDouble();
double lecture_exam;
System.out.print("Input your lecture exam:");
lecture_exam = user_input.nextDouble();
double attendancelab;
System.out.print("Input your laboratory attendance:");
attendancelab = user_input.nextDouble();
double mp1;
System.out.print("Input your Machine Problem 1:");
mp1 = user_input.nextDouble();
double mp2;
System.out.print("Input your Machine Problem 2:");
mp2 = user_input.nextDouble();
double mp3;
System.out.print("Input your Machine Problem 3:");
mp3 = user_input.nextDouble();
double mp4;
System.out.print("Input your Machine Problem 4:");
mp4 = user_input.nextDouble();
double lab_exam;
System.out.print("Input your laboratory exam:");
lab_exam = user_input.nextDouble();
double term_grade;