Abdalla Elawad

Abdalla Elawad

  • 1k
  • 959
  • 70.5k

GPA calculate program in c++

Jul 4 2019 4:03 AM
Hello guys 
 
Please help me i need create program USING C++  calculate the GPA
and insert grades and hours to each subjects when we finish
insertion we can insert -1 to display final GPA
>60=1.0
>65=2.0
>70= 2.5
>75= 3.0
>80=3.5
>85 =4.5
>90=4.5
>95=4.75
>100=5.0
example :
English grade 78 ,no. hrs 2 = 3.5 * 2=7 points
Chemistry grade 85,no. hrs 3 = 4.5 * 3=13.5 points
Math grade 93,no. hrs 2 = 4.75 * 2= 9.5 points
Physics grade 60 ,no. hrs 3 = 3 * 2=6 points
GPA = Points(7+13.5+9.5+6) / hours(2+3+3+2)
 
THANKS 

Answers (2)