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
icon
Related questions
Question

Hi expert 

I need help with this assignment and coding in the C++ programming language. Pls, don't copy from any website.

Thank you!

### 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.
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Hiring Problem
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.
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education