Patulong naman dito panu i create using java.swing.
Write a program to give a students final grade in a Course with ff. Grading system there are three quizzes worth it 25items/points each. And a final worth 150 points.
The grade is based on the ff. Weight 50% the final exam. 25% on the midterm and 25% on the quiz average weighted average in the traditional way :90 or over is outstanding below 90 dow to 80 is satisfaction.below 80 to 70 good and 70 below is failed using if-else statement.
Almost lahat ng variable ay double type. Ikaw na bahala mag-set ng variables.
Merong
Quiz Point, Midterm Point, Final Point.
Quiz Point = (Quiz Score1/25+ Quiz Score2/25 + Quiz Score 3/25) * 0.25
Midterm Point = Midterm Score/100 * 0.25
Finals Point = Finals Score/150 * 0.5
Accumulated Points (AP) = Quiz Point + Midterm Point + Finals Point
if AP => 90
result = "Outstanding"
else if AP >= 80
result = "Satisfactory"
else if AP >= 70
result= "Good"
else
result = "Failed";
Output mo na yung result.
So ikaw na bahala pagkuha ng values sa swing.
Tips ko. Magbigay ka ng restriction like
bawal ang 101 na score sa midterm
or -1 sa Finals Score.
Yun lang.
Almost lahat ng variable ay double type. Ikaw na bahala mag-set ng variables.
Merong
Quiz Point, Midterm Point, Final Point.
Quiz Point = (Quiz Score1+ Quiz Score2 + Quiz Score 3) * 0.25
Midterm Point = Midterm Score * 0.25
Finals Point = Finals Score * 0.5
Accumalated Points (AP) = Quiz Point + Midterm Point + Finals Point
if AP => 90
result = "Outstanding"
else if AP >= 80
result = "Satisfactory"
else if AP >= 70
result= "Good"
else
result = "Failed";
Output mo na yung result.
So ikaw na bahala pagkuha ng values sa swing.
Tips ko. Magbigay ka ng restriction like
bawal ang 101 na score sa midterm
or -1 sa Finals Score.
Yun lang.
May inedit ako sa taas. PAkicheck nalang.
Idea is kung meron kang textbox kung saan mo ilalagay yung result.
Icheck mo muna yung inputs before computing all.
if else na naman yan.
if error
result = "Can't compute the following because of bad input." Or something like that.
output the result
else
output the result
May inedit ako sa taas. PAkicheck nalang.
Idea is kung meron kang textbox kung saan mo ilalagay yung result.
Icheck mo muna yung inputs before computing all.
if else na naman yan.
if error
result = "Can't compute the following because of bad input." Or something like that.
output the result
else
output the result
May inedit ako sa taas. PAkicheck nalang.
Idea is kung meron kang textbox kung saan mo ilalagay yung result.
Icheck mo muna yung inputs before computing all.
if else na naman yan.
if error
result = "Can't compute the following because of bad input." Or something like that.
output the result
else
output the result