- Create A Structure Named Student Which Will Store Details About A Student All Students Have An Age A Name And A Gpa 1 (97.72 KiB) Viewed 41 times
Create a structure named Student, which will store details about a student. All students have an age, a name and a GPA.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Create a structure named Student, which will store details about a student. All students have an age, a name and a GPA.
Create a structure named Student, which will store details about a student. All students have an age, a name and a GPA. Choose appropriate types for these members. Declare a Student structure variable in the main function, and based upon the following paragraph, assign appropriate values to the members of the structure variable: "Jane Doe is a student. She is 21 years old. Her GPA is 3.99." Next, create a function named print_student that prints a student's details. Call your print_student function to print the student details of the Jane Doe structure variable. The output from the print_student function must be in the following form: Name: Jane Doe Age: 21 GPA: 3.99 Ensure your source code compiles and follows good programming standards. Ensure your program is well tested.