Question: Create two files, main.php and studentClass.php Connect classes.php to main.php in the way recommended by the book Part 2 - Create a class ( in
Create two files, main.php and studentClass.php
Connect classes.php to main.php in the way recommended by the book
Part Create a class in studentClass.php
Create a class called Student
Create a public parameter to hold a student name
Create four individual private parameters or one array to hold number grades
Create a private parameter to hold the GPA
Create a method called submitGrades that will accept five parameters student name, and each number grade or two parameters if you chose to hold grades in an array Calculate the GPA for those grades, assign it to the GPA parameter. Output a string indicating that the grades were successfully submitted.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
