"IM THE BEST DAMN THING THAT YOUR EYES HAVE EVER SEEN"

Showing posts with label java jdk jcreator programming free download urs ict computer science bsmath 3e2 activity homework project. Show all posts
Showing posts with label java jdk jcreator programming free download urs ict computer science bsmath 3e2 activity homework project. Show all posts

Tuesday, December 27, 2011

Answer on Java Activity

import java.awt.*;
import javax.swing.*;
//to use JOption you can change the * into JOption

public class JaysonAbion{
// Change the class which is JaysonAbion
public static void main(String[] args)
{
String name = JOptionPane.showInputDialog("Input Name");
String section = JOptionPane.showInputDialog("Input Section");
String prelimgrade = JOptionPane.showInputDialog("Input Prelim Grade");
double prelimg = Double.parseDouble(prelimgrade);
String midtermgrade = JOptionPane.showInputDialog("Input Midterm Grade");
double midtermg = Double.parseDouble(midtermgrade);
String finalgrade = JOptionPane.showInputDialog("Input Final Grade");
double finalg = Double.parseDouble(finalgrade);
double sum = prelimg+midtermg+finalg;
double quo = sum/3;

// difference between int and double
// int is use for fix number
// double is for decimal places

if (quo >= 1.0 && quo <= 1.2){
JOptionPane.showMessageDialog(null, "" + name + " " + section + " " + "\nYour grade is: " +quo + "\nExcellent");
} else if (quo >= 1.21 && quo <= 1.7){
JOptionPane.showMessageDialog(null, "" + name + " " + section + " " + "\nYour grade is: " +quo + "\nVery Good");
} else if (quo >= 1.71 && quo <= 2.1){
JOptionPane.showMessageDialog(null, "" + name + " " + section + " " + "\nYour grade is: " +quo + "\nGood");
} else if (quo >= 2.11 && quo <= 2.99){
JOptionPane.showMessageDialog(null, "" + name + " " + section + " " + "\nYour grade is: " +quo + "\nFair");
} else if (quo >= 3.0 && quo < 3.01){
JOptionPane.showMessageDialog(null, "" + name + " " + section + " " + "\nYour grade is: " +quo + "\nPassing");
} else if (quo > 3.01 && quo <= 4.0){
JOptionPane.showMessageDialog(null, "" + name + " " + section + " " + "\nYour grade is: " +quo + "\nConditional");
} else if (quo >= 4.01 && quo <= 5.0){
JOptionPane.showMessageDialog(null, "" + name + " " + section + " " + "\nYour grade is: " +quo + "\nFailed");
}
System.exit(0);
}
}

// using if else statement
// message dialog as an output

-------------
note: read before copying.

Tuesday, December 13, 2011

Activity in JAVA

Question:
Create a Program in Java that will accept name, section, prelim grade, midterm grade,and final grade as input. compute the Final Grade and display the Remarks with following conditions, if final grade is 1.0 to 1.2 display "Excellent", if final grade is 1.21 to 1.7 display "Very good", if final grade is 1.71 to 2.1 display "Good", if final grade is 2.11 to 2.99 display "Fair", if final grade is 3.0 display "Conditional", if final grade is 4.01 to 5.0 display "Failed".

Answer
I WILL POST THE ANSWER(JAVA CODES) ON DECEMBER 27,2011 at exactly 11:30pm :)

DOWNLOAD JDK and JCREATOR




DOWNLOAD FOR FREE:



Steps on Downloading JDK:

  1. To Access the URL click the image at the TOP.
  2. On the ORACLE page you'll see the sub menu which is
    (Overview|Downloads|Documentation|Community|Technologies
    |Training). Click Java Platform (JDK) 7u2.
  3. Accept the license aggreement.
  4. Before selecting the JDK to be download. check first your
    System Type: for windows xp. click[START>>
    All Programs>>Accessories>>System Tools>>System Information].
    and check your System Type.
    for windows vista/7 click [START>>
    "on the search engine type System Information then press ENTER].
    and check your System Type.
  5. Choose the JDK that is compatible to your
    OS Product/File Description.
    example: Your System Type is(X86-based PC)
    then your Product/File Description (Windows X86)
    then click the JDK on its right.
  6. Then a Message box will appear on your screen.
    Click Save File.
  7. After being download Install it on your PC:



Steps on Downloading JCREATOR:

  1. To Access the URl click the image at the TOP.
  2. Under the JCreator software choose the version
    that you want to download w/c is compatible to your OS.
    JCreator Pro version (Trail version),
    JCreator LE version(Free),
    JCreator Classics (Free).
  3. Click the Download button.
  4. Then type your Name and Email
    don't bother the check box. and Click Submit.
  5. Then sign in on your yahoo mail and
    check your inbox. open the JCREATOR message and
    click the link to download your own JCREATOR.