What's new

Closed Patulong nman .

Status
Not open for further replies.

Arman50

Honorary Poster
Joined
Jul 18, 2015
Posts
138
Reaction
240
Points
161
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.
 
Marunong ka ba gumawa ng java.swing? Pwede kita bigyan ng idea about sa problem. Pero syempre ikaw gagawa. College po? What year?
 
1st year plang po marunong nman konte ...pahingi nman ng ediya abput dun sa formula ng grade panu mkuha.
 
Okay so ito ang idea.

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.
 
Okay so ito ang idea.

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.
Cge slamat po....

Na pano lagyan yung input nya pag sumobra sa 25 mag error ang message then mag start cya uli...

Slamat po!
 
Cge slamat po....

Na pano lagyan yung input nya pag sumobra sa 25 mag error ang message then mag start cya uli...

Slamat po!
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
Cge slamat po...
 
Ok na po.. actualy tapus kuna pero gusto kulang maka kuha ng OPINION. Pra hndi ako magkamali.

Cge slamata tlga ng marami. Nakatulog ka.
 
Boss yung grade naga sobra sa 100
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
ang average pano gawin na hndi mag sobra
 
tanonk ko lang bakit pointers na kagad kayo ako basic pa rin ang iniintindi ko ito kasi ang fundamentals ng learning.... froms roots you must start.
 
tanonk ko lang bakit pointers na kagad kayo ako basic pa rin ang iniintindi ko ito kasi ang fundamentals ng learning.... froms roots you must start.
Wala pong kinalaman dyan ang pointers. Its a simple grade calculation and simple gui problem.
 
Status
Not open for further replies.

Similar threads

Back
Top