Your program will need to do the following: Each objective is worth 25 points - The output needs to be displayed correctly in the output file as listed below (1) Sum up the total amount of credits of people in the database (a) In this case the total will be: 120+90+75+100+95 = 480 (2) List the person with the most credits: (a) In this case the output will be: Jeffrey Slominsky (3) List the person with the highest GPA (a) In this case the output will be: Janet Smith (4) List the person with the lowest GPA (a) In this case it will be: Mike Jones
Your program will need to do the following: Each objective is worth 25 points - The output needs to be displayed correctly in the output file as listed below (1) Sum up the total amount of credits of people in the database (a) In this case the total will be: 120+90+75+100+95 = 480 (2) List the person with the most credits: (a) In this case the output will be: Jeffrey Slominsky (3) List the person with the highest GPA (a) In this case the output will be: Janet Smith (4) List the person with the lowest GPA (a) In this case it will be: Mike Jones
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Hi expert
I need help with this assignment and coding in the C++
Thank you!

Transcribed Image Text:### Instructions for Creating and Analyzing a Data File
#### Task Overview:
You need to create and analyze a file called `data.txt` with the following entries:
```
Slominsky,Jeffrey,3.75,120
Smith,Janet,3.82,90
Jones,Mike,2.34,75
Ahmed,Saleah,3.21,100
Taylor,Christine,3.23,22
```
#### Program Objectives:
Your program must perform these tasks. Each objective is worth 25 points:
1. **Sum of Total Credits:**
- Calculate the sum of all credits from the database.
- Example Calculation: 120 + 90 + 75 + 100 + 95 = 480
- Write the result: `Sum of credits: 480`
2. **Identify Person with Most Credits:**
- Find and write the name of the person with the highest credit.
- Result: `Jeffrey Slominsky`
3. **Identify Person with Highest GPA:**
- Find and write the name of the person with the highest GPA.
- Result: `Janet Smith`
4. **Identify Person with Lowest GPA:**
- Find and write the name of the person with the lowest GPA.
- Result: `Mike Jones`
All results should be included in a file called `output.txt`.
#### Output Format:
Here is the resulting format for `output.txt`:
```
Sum of credits: 480
Student name Highest GPA Most Credits Total credits Lowest GPA
Slominsky, Jeffrey - X - -
Smith, Janet X - - -
Jones, Mike - - - X
Ahmed, Saleah - - - -
Taylor, Christine - - - -
```
#### Bonus Task:
Create an algorithm to list the names alphabetically:
Example result:
- Saleah Ahmed
- Mike Jones
- Jeffrey Slominsky
- Janet Smith
- Christine Taylor
To complete this task, you will need to store the names in an array and sort them.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education