import java.*;
import java.util;
public class project
}
static Scanner console=new Scanner(System.in);
public static void main(String [] args)
{
int q1;
System.out.println("Grading System");
System.out.println("A: Information Technology");
System.out.println("B: Commerce");
System.out.println("C: HRM");
System.out.println("D: Comp E");
System.out.println("E: Exit");
System.out.println("Choose! the course you want to process")
switch (grade)
case 'A':
'a':
System.out.println("Excellent");
}
if (grade<=100);
grading systemswitch
Page 1 of 1
4 Replies - 9176 Views - Last Post: 16 January 2009 - 06:27 AM
Replies To: grading system
#2
Re: grading system
Posted 15 January 2009 - 06:03 AM
first of all, welcome to the forum...can you add a little description of what you need help with and also place your code between code tags to make it easier to read
#3
Re: grading system
Posted 15 January 2009 - 06:11 AM
Can you please tell us what you exactly want? thanks
#4
Re: grading system
Posted 15 January 2009 - 08:50 AM
aw..i think the one who ask this is my classmate.. and this is our project..actually the program is a grading system that enable user to choose the desired course and it will compute the quiz,major exam,project,lab exercise scores.. and here is my code...
(my problem is when i input the scores i need to get the equivalent of the inputed score so that il add them up like 96==1.0 so i need the result value 1.0 or in other words i want to trap the equivalent to add them for the final grade)
tnx..
(my problem is when i input the scores i need to get the equivalent of the inputed score so that il add them up like 96==1.0 so i need the result value 1.0 or in other words i want to trap the equivalent to add them for the final grade)
tnx..
import java.io.*;
import java.util.*;
public class midterm {
public static void main (String arg[])
{
Scanner console=new Scanner(System.in);
char course;
double a,b,c,d,e,f,g,h,i,j,k,l,me,project,total1,total2,fg;
System.out.println("GRADING SYSTEM:");
System.out.println("a:INFORMATION TECHNOLOGY.");
System.out.println("b:COMMERCE.");
System.out.println("c:H.R.M.");
System.out.println("d:COMP.E");
System.out.println("e:EXIT");
System.out.println("The Course you want to Proceed:");
course=console.next().charAt(0);
switch (course)
{
case 'a':
System.out.println("Enter M.E:");
me=console.nextDouble();
if (me>=1.0&&me<=5.0)
me=me;
else
{
System.out.println("Invalid");
System.exit(0);
}
{
System.out.println("Enter 1st Quiz Score:");
a=console.nextInt();
a=a;
}
{
}
if (a>=91&&a<=95)
{
System.out.println("2.0");
}
else if (a>=86&&a<=90)
{
System.out.println("2.5");
}
else if (a>=80&&a<=85)
{
System.out.println("3.0");
}
else if (a<=80)
{
System.out.println("5.0");
}
else
{
System.out.println("1.0");
}
System.out.println("Enter 2nd Quiz Score:");
b=console.nextInt();
b=b;
if (b>=91&&b<=95)
{
System.out.println("2.0");
}
else if (b>=86&&b<=90)
{
System.out.println("2.5");
}
else if (b>=80&&b<=85)
{
System.out.println("3.0");
}
else if (b<=80)
{
System.out.println("5.0");
}
else
{
System.out.println("1.0");
}
System.out.println("Enter 3rd Quiz Score:");
c=console.nextInt();
c=c;
if (c>=91&&c<=95)
{
System.out.println("2.0");
}
else if (c>=86&&c<=90)
{
System.out.println("2.5");
}
else if (c>=80&&c<=85)
{
System.out.println("3.0");
}
else if (c<=80)
{
System.out.println("5.0");
}
else
{
System.out.println("1.0");
}
d=a+b+c;
e=d/3;
{
System.out.println("Total quiz Scores"+e);
}
System.out.println("Enter Project Score:");
project=console.nextDouble();
if(project>=1&&project<=5)
project=project;
else
{
System.out.println("INVALID");
System.exit(0);
}
{
System.out.println("LAB EXERCISE:");
}
System.out.println("Enter 1st Lab Exercise");
f=console.nextInt();
f=f;
if (f>=91&&f<=95)
{
System.out.println("2.0");
}
else if (f>=86&&f<=90)
{
System.out.println("2.5");
}
else if (f>=80&&f<=85)
{
System.out.println("3.0");
}
else if (f<=80)
{
System.out.println("5.0");
}
else
{
System.out.println("1.0");
}
System.out.println("Enter 2nd Lab Exercise");
g=console.nextInt();
g=g;
if (g>=91&&g<=95)
{
System.out.println("2.0");
}
else if (g>=86&&g<=90)
{
System.out.println("2.5");
}
else if (g>=80&&g<=85)
{
System.out.println("3.0");
}
else if (g<=80)
{
System.out.println("5.0");
}
else
{
System.out.println("1.0");
}
System.out.println("Enter 3rd Lab Exercise");
h=console.nextInt();
h=h;
if (h>=91&&c<=95)
{
System.out.println("2.0");
}
else if (h>=86&&h<=90)
{
System.out.println("2.5");
}
else if (h>=80&&h<=85)
{
System.out.println("3.0");
}
else if (h<=80)
{
System.out.println("5.0");
}
else
{
System.out.println("1.0");
}
total1=f+g+h;
total2=total1/3;
{
System.out.println("Total Lab Score:"+total2);
}
i=me*.3;
j=e*.3;
k=project*.2;
l=total2*.2;
fg=i+j+k+l;
System.out.println("FINAL GRADE:"+fg);
}
}
}
This post has been edited by loney: 15 January 2009 - 09:54 AM
#5
Re: grading system
Posted 16 January 2009 - 06:27 AM
anyway tnx for nothing lol, seriously thank you... i already did it on my own..
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|