🔒 Closed Help po sa mga programmers dito

Status
Not open for further replies.

Bayagkugan

Honorary Poster
Pede po bang bigyan niyo ako ng clue kung paano ma solve tong Exercise number 4...Kahit wag na po yung buo kc gusto ko din matuto...Any tips or clue will help po..Thanks in advance po Untitled.png
 
  1. Multiply the credit units for each subject by the corresponding grade point.
  2. Add all the generated points in #1 to get the total points.
  3. Divide the total points by the total number of credit units.
 
Exercise number four, accept mo lahat ng input then kunin ko ang sum
Then, sum divided by number ng subjects for average
 
total grade / total unit
Bali ang outcome niya po is "1.891434782608696"..Pag total grade/unit lang po is 0. something na po kc eh..Bale unit multiply by grade tas add mo lahat ng minultily mo then devide mo kung ilang subject in my case po is 8..
 
Bali ang outcome niya po is "1.891434782608696"..Pag total grade/unit lang po is 0. something na po kc eh..Bale unit multiply by grade tas add mo lahat ng minultily mo then devide mo kung ilang subject in my case po is 8..

if gusto mo output is x.xx lang you can use BigDecimalFormat("x.xx") or the traditional way System.out.printf("%.2f", (totalGrade/totalUnit));
 
Bago ka mag compute kunin mo muna yong equivalent ng grade.

Example:

1.0 = 100
1.1 = 99
2.0 = 90
2.3 = 87

So on and so forth. Tapos pwede mo na e add lahat tapos divide mo. Mas ok kun ikaw ang mag code para matotoo ka. Para rin sayo yan eh pag dating ng panhaon. Wag mo kalimutan mag pa burger hahaha
 
Bago ka mag compute kunin mo muna yong equivalent ng grade.

Example:

1.0 = 100
1.1 = 99
2.0 = 90
2.3 = 87

So on and so forth. Tapos pwede mo na e add lahat tapos divide mo. Mas ok kun ikaw ang mag code para matotoo ka. Para rin sayo yan eh pag dating ng panhaon. Wag mo kalimutan mag pa burger hahaha
Thanks po hahaa
 
Status
Not open for further replies.

About this Thread

  • 15
    Replies
  • 985
    Views
  • 7
    Participants
Last reply from:
Bayagkugan

Online now

Members online
734
Guests online
654
Total visitors
1,388

Forum statistics

Threads
2,275,554
Posts
28,964,019
Members
1,231,861
Latest member
james_1923
Back
Top