1. (3 points) Define a struct, named FullName, that contains the following field
ID: 638717 • Letter: 1
Question
1. (3 points) Define a struct, named FullName, that contains the following fields: lastname - a string firstname - a string midInitial - a char
2. (4 points) Define a struct, named Student, that contains the following fields: name - a FullName (the structure from section a) tests - an array for storing 3 floats average - a float lettergrade - a char
3. (2 points) In a main() function, declare a variable, named roster, that is an array (size 24) of your new Student structure type.
4. (2 points) Write a function with the following prototype: float DetermineAverage(const float[3]); The function should accept an array of 3 floats as a parameter and then should return the average of the three numbers.
5. (2 points) Write a function with the following prototype: char DetermineLetterGrade(float); The function should accept a float(test grade) as a parameter and should return the corresponding letter grade based on the following grading scale: 90% - 100%: A 80% - 89%: B 70% - 79%: C 60% - 69%: D Below 60%: F
6. (6 points) Write a function with the following prototype:
Student GetData(); The function will prompt the user to enter her/his name and three test scores.
In the function, call DetermineAverage() to find the Student
Explanation / Answer
1.struct FullName{
String lastname;
String firstname;
Char middlename;
}FullName;
2.struct Student{
string name;
strig fullname;
}
3. int main(){
char array[24];
}
in the main function you are not calling any of the methods that you have implemented above
so this is the only thing you made mistake .to get the output correct you need to call/invoke the methods wherever these are needed
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.