🔒 Closed Java help

Status
Not open for further replies.

Phc-AJDS

Eternal Poster
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 .......
 
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
 
Status
Not open for further replies.

About this Thread

  • 5
    Replies
  • 615
    Views
  • 5
    Participants
Last reply from:
Chunchunmaru

Trending Topics

Online now

Members online
1,191
Guests online
2,226
Total visitors
3,417

Forum statistics

Threads
2,332,431
Posts
29,265,106
Members
1,144,302
Latest member
Dan Jarapa
Back
Top