Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

GITHUB CODE! C++ Laboratory Activity 3 - Structures - Student Grade Mini-Database Develop a program that will define and store a student record. The data

GITHUB CODE! C++

image text in transcribedimage text in transcribedimage text in transcribed

Laboratory Activity 3 - Structures - Student Grade Mini-Database Develop a program that will define and store a student record. The data will be entered by the user. Afterwards, calculate and display the GPA of each student. You will need to use structure with array. In case you don't know how to caiculate GPA, here's the formula: \[ \begin{array}{l} \text { Tolal_Credit_Honors }=\Sigma_{j=1}^{\text {rordi_coEnsir }} \text { Grade } e_{\mathrm{t}}+\text { Vial } t_{\mathrm{r}} \\ \end{array} \] Enter number of students to recarti:-1 Enter number af students to recont: 2 student name: John 10 number 10912345 degree: ECE course 1 name: Physics course 1 grade 100 course 1 total units 3 : course 2 rame: Mathernatics course 2 grsde 70 course 2 total units: 2 . course 3 name:Gealogy. course 3 grade 50 course 3 total units 1 student name: Icose 10 number 10054321 degree: CFE course 1 name: Physics course 1 grade a0 course 1 total units 3 : course 2 rame: Mathernatics course 2 grade 60 course 2 total units 2 . course 3 name: Gealogy. course 3 grsde- 90 course 3 total units: 1 Johin with ID number 10912345 has a GPA of 81.667 Jose with ID number 10054321 hos a GPA af 75.000 Enter number of students to recare: 0 Enter number of students to recors: 2 student name: lohn 10 number 10912345 degrea; ECE course 1 name: Physirs course 1 grade 100 course 1 total anits 3 . ccarse 2 name: Mathernatics course 2 grsde: 70 course 2 totak units: 2 course 3 name: Geology ccurse 3 grade 50 course 3 total anits: 1 student name: lose 10 number 10054321 degree: CFE course 1 name: Physirs course 1 grade 00 course 1 total anits: 3 . cDarse 2 name: Mathernatics course 2 grsde: 60 course 2 total units: 2 course 3 name: Geology ccurse 3 grade: 90 course 3 total units: 1 John with ID number 10912345 has a GPA of B1.667 Jose with 1D mumber 10054321 has a GPA af 75.000 Structure Guideline Structure \#1: Course Structure \#2: Student Testing Guideline: - Make sure to use the TOTAL_COURSE MACRO from your code. Please use it to define the number of courses per student - Make sure that the user can enter any value of value of N. (from 0 to 20,000 ) Hint: In order for you to get dynamically allocate number of arrays of type Student, you can use the malloc function you've seen from your homework as shown below: student *record; record =( student +)ma1loc(N+ sizeof ( Student )); where N is the number of students entered by the user

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions