Q1_20251108110101.webp
Akari86

Q1_20251108110101.webp

  • Media owner Akari86
  • Ngày thêm
The GPA is calculated as: GPA=(scorel+score2+score3)/3 and should be printed with two
digits after the decimal point. If the GPA >= 5, print "Passed"; otherwise, print "Failed".
Hint: Use an array of structures to organize the data in the program.
Below is a sample input/output of the program:
Enter n = 2;
id
HE001
HE002
name
scorel
score2
Nguyen Hai
8
7.5
score3
9.0
Binh
Hoang Minh Tu
2
3.5
4
Question 8:
Zoom
+ 100%
2
HE001
Nguyen Hai Binh
8 7.5 9.0
HE002
Hoang Minh Tu
2 3.5 4
OUTPUT:
HE001; Nguyen Hai Binh; 8.17
=> Passed
HE002; Hoang Minh Tu; 3.17
=> Failed
Press any key to continue
Close

Thông tin

Category
PRF192
Thêm bởi
Akari86
Ngày thêm
Lượt xem
2,309
Lượt bình luận
2
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom