What's new

Java help

Phc-AJDS

Eternal Poster
Joined
Feb 26, 2017
Posts
718
Reaction
905
Points
356
Create a program that will let the user enter his name then lets the user enter his score for the following subjects:
-English

-Filipino

-Math

-Science

-P.E

then after entering the scores, the program will now compute and display the average score of the 5 subject.

using if else statement determine if the score is passing or not.



Example output:



Enter first name: Juan

Enter Last name: Dela cruz

Enter for Subjects:

English: 85.7

Filipino: 90.5

Math: 90

Science: 85

P.E: 75.9

Good Day Juan! your Average score is:

Congratulations! Your Score is Passing

or

I'm Sorry Your score is not reached passing score
 
Madali nalang yan if else statement.
Alamin mo muna computation ng average score. Then kung anong grade yung pasado or bagsak
After computation ng average,
if (grade >= 90) {
pasado ja juan =D
}else if (grade <= 60) {
aral kapa ng mabuti juan
}else if (grade .......
 
Last edited:
Madali lang yan, i di display mo lang yung name variable tapos ipag compute mo ung grades(kung pano mag compute ng average) tapos lagay mo sa if(grade <= 75) the student pass else, the student failed
 

Similar threads

Back
Top