Machine Problem
Machine Problem
Machine Problem
DelaCruz
File: MagpantayDelaCruz_Quiz.java
package magpantaydelacruz_quiz;
import javax.swing.JOptionPane;
}else{
JOptionPane.showMessageDialog(null,"The Correct
Answer is a\nFunctional", "Error", JOptionPane.ERROR_MESSAGE);
}
String q4 = JOptionPane.showInputDialog("Which language can be
directly understood by the CPU?\n"
+ " A. Java \n B. C++\n C. Assembly language\n");
if ("c".equals(q4)||"C".equals(q4)){
JOptionPane.showMessageDialog(null,"Correct");
score++;
}else{
JOptionPane.showMessageDialog(null,"The Correct
Answer is c\nAssembly language", "Error", JOptionPane.ERROR_MESSAGE);
}
String q5 = JOptionPane.showInputDialog("Problem oriented
language is?\n"
+ " A. BASIC \n B. PL/1\n C. All of the above\n");
if ("c".equals(q5)||"C".equals(q5)){
JOptionPane.showMessageDialog(null,"Correct");
score++;
}else{
JOptionPane.showMessageDialog(null,"The Correct
Answer is c\nAll of the above", "Error", JOptionPane.ERROR_MESSAGE);
}
int total = 0;
int Stotal = total+score;
JOptionPane.showMessageDialog(null, "Total Score : " + Stotal
+ "/" + "5");
}
}
PARTIAL = 50% free tuition + 50% free srf + 50% free sfdf +
miscellaneous
FULL = 100% free tuition + 100% free srf + 100% free sfdf +
miscellaneous
File: MagpantayDelaCruz_Scholarship.java
package magpantaydelacruz_scholarship;
import java.util.*;
}else{
System.out.println("INVALID GRADE!");
}
}catch(Exception e){
System.out.println(e);
}
}
File : CVSUScholarship.java
package magpantaydelacruz_scholarship;
public class CVSUScholarship {
float GPA,tuition,SRF,SFDF,misc;
}
public float getScholarship(){
return this.tuition ;
}
}
File : MagpantayDelaCruz_UseChildren.java
package magpantaydelacruz_usechildren;
import java.util.*;
}else{
System.out.println("INVALID GENDER");
}
}
catch(Exception e){
System.out.println(e);
}
File : Child.java
package magpantaydelacruz_usechildren;
}
public void display(){
Male c = new Male();
c.Male(name);
Child f = new Child() {};
System.out.println("Age : "+age);
File : Male.java
package magpantaydelacruz_usechildren;
public class Male extends Female{
private String name;
File : Female.java
package magpantaydelacruz_usechildren;
public class Female extends Child {
private String name;
public void Male(String name){
this.name = name;
System.out.println("Name : "+name+ "\nGender : Female");
}
}