بســم الله الـرحمــن الرحيــم
:wub:
عندي سؤال محيرني مووووت يريت تساعدوني فيه
حاولت كذا طريقه بس ماضبط معاي البرنامج
بليز ساعدوني ولا برسب في الماده
المطلوب لازم نستخدم void لحله
Write a C++ program that prompts the user to insert the number of students in the class (stno).
It then calls a function named maxGPA that takes this number as an argument, then uses a for loop to read the students' GPAs in order to return the maximum GPA.
The function prototype;
float maxGPA (int);
Sample output:
Please enter the number of students: 5
Enter Student #1 GPA: 2.5
Enter Student #2 GPA: 3.7
Enter Student #3 GPA: 2.1
Enter Student #4 GPA: 3.5
Enter Student #5 GPA: 1.5
Max GPA = 3.7
