Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

(Netbeans)source cOdes for Grades Computation..in college.

formula lng yan TS. tapos gagamit ka ng if else sa fail, 3.0,2.75, 2.5 etc.
 
Last edited:
parang test lng nmin ..
if else
if else lng ang statement

if (grade>=55){
cout<<"f";}
else if (grade bla bla bla)
 
if(grades >= 75){
System.out.print("Pass!");
}
else{
System.out.print("Enroll next sem!");
}
 
if(grades >= 75){
System.out.print("Pass!");
}
else{
System.out.print("Enroll next sem!");
}
 
:help:
I triEd n po lahat ng post niyo..proh ayw nmn po magrun. E2 po kc uNg codes n ginawa ko.

import java.io.*;
public class ComputationGrade
{
private static BufferedReader num = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws IOException
{
System.out.println("Enter QUIZ1");
double Q1 = Integer.parseInt(num.readLine());
System.out.println("Enter QUIZ2");
double Q2 = Integer.parseInt(num.readLine());
System.out.println("Enter TOTAL QUIZ");
double TQ = Integer.parseInt(num.readLine());
double W = Q1+Q2;
double TOQ = (W/2)*35/100;

System.out.println("Enter HOMEWORK");
double HW = Integer.parseInt(num.readLine());


System.out.println("Enter SEATWORK");
double SW= Integer.parseInt(num.readLine());
System.out.println("Enter ATTENDANCE");
double ATT = Integer.parseInt(num.readLine());
System.out.println("Enter RECITATION");
double REC = Integer.parseInt(num.readLine());
double A= HW+SW+ATT+REC;
double TCS = (A/4)*.15;
{

System.out.println("Enter TOTAL EXAM");
double TE = Integer.parseInt(num.readLine());


double TotQ = ((Q1+Q2)*.35);
double CS = ((HW+SW+ATT+REC)*.15);
double ME = (TE*.50);
double PLE = (TQ+TCS+TE);

System.out.println("The result is :"+PLE);



System.out.println("Enter MACHINE PROBLEM 1");
int MP1 = Integer.parseInt(num.readLine());
System.out.println("Enter MACHINE PROBLEM 2");
int MP2 = Integer.parseInt(num.readLine());
System.out.println("Enter LAB COMPILATION");
int C = Integer.parseInt(num.readLine());
System.out.println("Enter LAB TOTAL QUIZ");
int LTQ = Integer.parseInt(num.readLine());
System.out.println("Enter LAB TOTAL EXAM");
int LTE = Integer.parseInt(num.readLine());
System.out.println("Enter LAB SEATWORK");
int LSW= Integer.parseInt(num.readLine());
System.out.println("Enter LAB ATTENDANCE");
int LATT = Integer.parseInt(num.readLine());
System.out.println("Enter LAB TOTAL CLASS STANDING");
int LTCS = Integer.parseInt(num.readLine());
System.out.println("Enter LAB TOTAL MACHINE PROBLEM");
int TMP = Integer.parseInt(num.readLine());




double MP = (MP1+MP2)*.40;
double CLS = (C+SW+ATT)*20;
double MEX = (LTE*.40);
double PLEX = (TMP+TCS+TE);


System.out.println("The result is :"+ PLEX);



if(PLEX >= 75){
System.out.print("Pass!");
}
else{
System.out.print("Enroll next sem!");
}
}


}

}
 
:help:
I triEd n po lahat ng post niyo..proh ayw nmn po magrun. E2 po kc uNg codes n ginawa ko.

import java.io.*;
public class ComputationGrade
{
private static BufferedReader num = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws IOException
{
System.out.println("Enter QUIZ1");
double Q1 = Integer.parseInt(num.readLine());
System.out.println("Enter QUIZ2");
double Q2 = Integer.parseInt(num.readLine());
System.out.println("Enter TOTAL QUIZ");
double TQ = Integer.parseInt(num.readLine());
double W = Q1+Q2;
double TOQ = (W/2)*35/100;

System.out.println("Enter HOMEWORK");
double HW = Integer.parseInt(num.readLine());


System.out.println("Enter SEATWORK");
double SW= Integer.parseInt(num.readLine());
System.out.println("Enter ATTENDANCE");
double ATT = Integer.parseInt(num.readLine());
System.out.println("Enter RECITATION");
double REC = Integer.parseInt(num.readLine());
double A= HW+SW+ATT+REC;
double TCS = (A/4)*.15;
{

System.out.println("Enter TOTAL EXAM");
double TE = Integer.parseInt(num.readLine());


double TotQ = ((Q1+Q2)*.35);
double CS = ((HW+SW+ATT+REC)*.15);
double ME = (TE*.50);
double PLE = (TQ+TCS+TE);

System.out.println("The result is :"+PLE);



System.out.println("Enter MACHINE PROBLEM 1");
int MP1 = Integer.parseInt(num.readLine());
System.out.println("Enter MACHINE PROBLEM 2");
int MP2 = Integer.parseInt(num.readLine());
System.out.println("Enter LAB COMPILATION");
int C = Integer.parseInt(num.readLine());
System.out.println("Enter LAB TOTAL QUIZ");
int LTQ = Integer.parseInt(num.readLine());
System.out.println("Enter LAB TOTAL EXAM");
int LTE = Integer.parseInt(num.readLine());
System.out.println("Enter LAB SEATWORK");
int LSW= Integer.parseInt(num.readLine());
System.out.println("Enter LAB ATTENDANCE");
int LATT = Integer.parseInt(num.readLine());
System.out.println("Enter LAB TOTAL CLASS STANDING");
int LTCS = Integer.parseInt(num.readLine());
System.out.println("Enter LAB TOTAL MACHINE PROBLEM");
int TMP = Integer.parseInt(num.readLine());




double MP = (MP1+MP2)*.40;
double CLS = (C+SW+ATT)*20;
double MEX = (LTE*.40);
double PLEX = (TMP+TCS+TE);


System.out.println("The result is :"+ PLEX);



if(PLEX >= 75){
System.out.print("Pass!");
}
else{
System.out.print("Enroll next sem!");
}
}


}

}



hindi ko nagets
 
what you mean ayaw mag run? panu ka namin matutulungan nyan kung "Ayaw mag run" lng alam namin? :noidea:
kasi sa compiler ko gumana nmn xa...
bakit ano ba prob mo? :noidea:
 
Bakit DOUBLE pero sa integer mo pinarse??? Tsaka ano yung total exam and total quiz dapat wala na ata yun.
 
Pag tnatry ko po kc xaNg i-rUn.. nag-eerror po xa.
Dpt po kc pag nairun xa.. mga graDes nlng po ilalagay.. taz enter nlng ng enter. Tsaka lalabas ung pinkaTotal grade., failed or passed.
 
Bakit DOUBLE pero sa integer mo pinarse??? Tsaka ano yung total exam and total quiz dapat wala na ata yun.



Eto po kc ung problem .. inatach ko po.
 

Attachments

  • 30072013235.jpg
    30072013235.jpg
    159.1 KB · Views: 16
  • 30072013236.jpg
    30072013236.jpg
    153.1 KB · Views: 9
  • 30072013237.jpg
    30072013237.jpg
    147.3 KB · Views: 6
  • 30072013238.jpg
    30072013238.jpg
    170.9 KB · Views: 7
pano ka matututo nyan kong di mo alam kong pano mag hanap ng error ts..concern lang..
 
ay.. anjan na pala formula eh.. ehehe :) code nalang kulang nyan..
 
Last edited:
Back
Top Bottom