A sample run of your program should look like below. Note that the user’s inputs are highlighted in bold. Enter an input file: proj1_test_case.txt -------------------------------------------------- Course Report Options -------------------------
A sample run of your program should look like below. Note that the user’s inputs are highlighted in bold. Enter an input file: proj1_test_case.txt -------------------------------------------------- Course Report Options -------------------------
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 1GZ
Related questions
Question
A sample run of your program should look like below. Note that the user’s inputs are highlighted in
bold.
Enter an input file: proj1_test_case.txt
--------------------------------------------------
Course Report Options
--------------------------------------------------
1. Print in numerical average order
2. Print in first name order
3. Print course statistics
4. Record Finder
Choose any other option to quit.
--------------------------------------------------
Selection: 2
--------------------------------------------------
--------------------------------------------------
Course Report: First Name Order
--------------------------------------------------
Ana 1500 - 80.00 (B) (rank: 3)
Ana 2000 - 100.00 (A) (rank: 1)
Diego 2500 - 50.00 (F) (rank: 5)
Lee 3000 - 80.00 (B) (rank: 3)
Sarah 1000 - 88.05 (B) (rank: 2)
--------------------------------------------------
--------------------------------------------------
Course Report Options
--------------------------------------------------
1. Print in numerical average order
2. Print in first name order
3. Print course statistics
4. Record Finder
Choose any other option to quit.
--------------------------------------------------
Selection: 1
CSS 2A Page 3 of 6
Project 1
bold.
Enter an input file: proj1_test_case.txt
--------------------------------------------------
Course Report Options
--------------------------------------------------
1. Print in numerical average order
2. Print in first name order
3. Print course statistics
4. Record Finder
Choose any other option to quit.
--------------------------------------------------
Selection: 2
--------------------------------------------------
--------------------------------------------------
Course Report: First Name Order
--------------------------------------------------
Ana 1500 - 80.00 (B) (rank: 3)
Ana 2000 - 100.00 (A) (rank: 1)
Diego 2500 - 50.00 (F) (rank: 5)
Lee 3000 - 80.00 (B) (rank: 3)
Sarah 1000 - 88.05 (B) (rank: 2)
--------------------------------------------------
--------------------------------------------------
Course Report Options
--------------------------------------------------
1. Print in numerical average order
2. Print in first name order
3. Print course statistics
4. Record Finder
Choose any other option to quit.
--------------------------------------------------
Selection: 1
CSS 2A Page 3 of 6
Project 1
CSS 2A
--------------------------------------------------
--------------------------------------------------
Course Report: Numerical Average Order
--------------------------------------------------
Ana 2000 - 100.00 (A) (rank: 1)
Sarah 1000 - 88.05 (B) (rank: 2)
Ana 1500 - 80.00 (B) (rank: 3)
Lee 3000 - 80.00 (B) (rank: 3)
Diego 2500 - 50.00 (F) (rank: 5)
--------------------------------------------------
--------------------------------------------------
Course Report Options
--------------------------------------------------
1. Print in numerical average order
2. Print in first name order
3. Print course statistics
4. Record Finder
Choose any other option to quit.
--------------------------------------------------
Selection: 3
--------------------------------------------------
Statistics
--------------------------------------------------
Number of students: 5
Class Average: 79.61
Grade Distribution (histogram)
A *
B * * *
C
D
F *
--------------------------------------------------
CSS 2A Page 4 of 6
Project 1
--------------------------------------------------
--------------------------------------------------
Course Report: Numerical Average Order
--------------------------------------------------
Ana 2000 - 100.00 (A) (rank: 1)
Sarah 1000 - 88.05 (B) (rank: 2)
Ana 1500 - 80.00 (B) (rank: 3)
Lee 3000 - 80.00 (B) (rank: 3)
Diego 2500 - 50.00 (F) (rank: 5)
--------------------------------------------------
--------------------------------------------------
Course Report Options
--------------------------------------------------
1. Print in numerical average order
2. Print in first name order
3. Print course statistics
4. Record Finder
Choose any other option to quit.
--------------------------------------------------
Selection: 3
--------------------------------------------------
Statistics
--------------------------------------------------
Number of students: 5
Class Average: 79.61
Grade Distribution (histogram)
A *
B * * *
C
D
F *
--------------------------------------------------
CSS 2A Page 4 of 6
Project 1
CSS 2A
--------------------------------------------------
Course Report Options
--------------------------------------------------
1. Print in numerical average order
2. Print in first name order
3. Print course statistics
4. Record Finder
Choose any other option to quit.
--------------------------------------------------
Selection: 4
---------------------------------------------------
Record Finder: Enter the name of a student: Ana
---------------------------------------------------
Name: Ana
ID: 2000
Average: 100.00 (A)
Name: Ana
ID: 1500
Average: 80.00 (B)
--------------------------------------------------
--------------------------------------------------
--------------------------------------------------
Course Report Options
--------------------------------------------------
1. Print in numerical average order
2. Print in first name order
3. Print course statistics
4. Record Finder
Choose any other option to quit.
--------------------------------------------------
Selection: 4
---------------------------------------------------
Record Finder: Enter the name of a student: Ana
---------------------------------------------------
Name: Ana
ID: 2000
Average: 100.00 (A)
Name: Ana
ID: 1500
Average: 80.00 (B)
--------------------------------------------------
--------------------------------------------------
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 5 images
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
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L