Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. [50 pts] Write a C++ program that reads the following student input data (student.dat) into an array of Student c-struct objects. Provide a function

. [50 pts] Write a C++ program that reads the following student input data (student.dat) into an array of Student c-struct objects. Provide a function in the program that can calculate the students final grade based on the following criteria: Mid = 25%, Final Exam = 25% and Labs = 50% The format of the file is as follows: //STUDENT_NAME // MID_EXAM FINAL_EXAM //LAB1 LAB2 LAB3 LAB4 student.dat Joe Doe 90.8 89.5 67 89.2 99.0 100.0 Susan F. Smith 95.5 94.0 78.5 90 87.5 57 Sam Grover 78 100.0 79.5 69.4 90.0 88.5 Diane C. Phelps 100 78.0 56.0 69 94.0 78 John Franklin 65 87.0 67.0 96 49.0 87 Derrick Myers 89.8 98.5 76 89.2 93.0 100.0 CSC234 Advanced C++ Lab 2: Chapters 9-10 3 The program should display a summary of all the final grades in main( ). For example, Joe Does final grade is 89.475% (grade: A) and Derrick Myers final grade is 91.85 (grade: A). HINT: All data members should be public. No non-constant data should be declared globally.

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

Students also viewed these Databases questions

Question

Question Who can establish a Keogh retirement plan?

Answered: 1 week ago