![Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781305657458/9781305657458_smallCoverImage.gif)
C++/cpp Exercise:
1- Define a class student with the following fields:
a. First name
b. Last name
c. ID
d. Number of courses enrolled in
e. Dynamic array of courses (taken and currently enrolled in): String *courses
f. Dynamic array of grades: int* grades
g. Address
h. Registration fees
i. Total number of credits
j. Expected Graduation term.
2- Declare an array of four students. Perform the following operations using your declared array:
a. Open the provided file input.txt. Fill the array by reading values from the specified input
file. Make sure that the array of courses and array of grades are initialized properly and
destroyed properly as well.
b. Call a function that prints student information in a well-organized table like fashion.
c. Call a function that compares average between two students.
d. Call a function that prints student names based on their GPA from highest to lowest.
(hint you need to sort the array of students).
e. Call a function that prints student names from lowest GPA to highest.
f. Call a function that gives a flat raise of 10 points to all students in one of the subject
matters.
g. Call a function that gives a raise based on the highest student grade. This means that the highest student grade should be adjusted to 100 and the rest of the students will get new_student_grade= (100*original_student_grade)/highest_student_grade.
h. The below code and table are provided to help you create a similar table of students.
void printReport(ofstream& outfile, salesPersonRec list[],
int listSize, double saleByQuarter[])
{
int index;
int quarter;
outfile << "––––––––––– Annual Sales Report –––––––––"
<< "––––" << endl;
outfile << endl;
outfile << " ID QT1 QT2 QT3 "
<< "QT4 Total" << endl;
outfile << "_____________________________________________"
<< "_________________" << endl;
for (index = 0; index < listSize; index++)
{
outfile << list[index].ID << " ";
for (quarter = 0; quarter < 4; quarter++)
outfile << setw(10)
<< list[index].saleByQuarter[quarter];
outfile << setw(10) << list[index].totalSale << endl;
}
outfile << "Total ";
for (quarter = 0; quarter < 4; quarter++)
outfile << setw(10)<< saleByQuarter[quarter];
outfile << endl << endl;
} //end printReport
![Annual Sales Report
ID
QT1
QT2
отз
QT 4
Total
322.00
12345
32214
23422
57373
35864
1892.00
0.00
892.00
1901.00
892.00
1221.00
0.00
4906.00
494.00
2708.00
0.00
0.00
0.00
1223.00
3420.00
4965.00
343.00
1395.00
893.00
9023.00
0.00
8834.00
0.00
392.00
10258.00
3296.00
10619.00
2882.00
5326.00
54654
893.00
4705.00
Total
8298.00
18743.00](https://content.bartleby.com/qna-images/question/2e5287d8-3fd1-4d79-b4e7-03c42749b7ad/a31336bd-642b-49c5-95ad-bab595b1dac6/1b522pv_thumbnail.png)
![Check Mark](/static/check-mark.png)
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps
![Blurred answer](/static/blurred-answer.jpg)
- Create the ERD. (Hint: Look at the table contents. You will discover that an AIRCRAFT can fly many CHARTER trips but that each CHARTER trip is flown by one AIRCRAFT, that a MODEL references many AIRCRAFT but that each AIRCRAFT references a single MODEL, and so on.)arrow_forwardUpdate the DETAILRENTAL table to set the values in DETAIL_RETURNDATE to include a time component. Make each entry match the values shown in the following table. TABLE P8.53 UPDATES FOR THE DETAILRENTAL TABLE RENT_NUM VID_NUM DETAIL_RETURNDATE 1001 34342 02-MAR-18 10:00am 1001 61353 03-MAR-18 11:30am 1002 59237 04-MAR-18 03:30pm 1003 54325 09-MAR-18 04:00pm 1003 61369 09-MAR-18 04:00pm 1003 61388 09-MAR-18 04:00pm 1004 44392 07-MAR-18 09:00am 1004 34367 07-MAR-18 09:00am 1004 34341 07-MAR-18 09:00am 1005 34342 05-MAR-18 12:30pm 1005 44397 05-MAR-18 12:30pm 1006 34366 04-MAR-18 10:15pm 1006 61367 1007 34368 1008 34369 05-MAR-18 09:30pm 1009 54324 1001 34366 02-MAR-18 10:00amarrow_forward
- Enhanced Discovering Computers 2017 (Shelly Cashm...Computer ScienceISBN:9781305657458Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. CampbellPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningOperations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks ColeManagement Of Information SecurityComputer ScienceISBN:9781337405713Author:WHITMAN, Michael.Publisher:Cengage Learning,
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305657458/9781305657458_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337405713/9781337405713_smallCoverImage.gif)