Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(C++) Create a program that will read an input file and create an output file for a Student Report Card. The input file will contain

(C++) Create a program that will read an input file and create an output file for a Student Report Card. The input file will contain basic student name information, grade information, and attendance. The program should print out the information in a specific spaced format, included. The program should calculate the attendance percentage. There will be 10 individual homework grades to the average for a Homework average. The homework average accounts for 55% of the final grade. The midterm accounts for 20% of the final grade. The final exam accounts for 25% of the final grade?

Specifications Included will be 4 input files.

They will be labeled inData.txt, inData2.txt, inData3.txt, and inData4.txt.

You will have individual variables to for each field in the input file, 17 in all.

Fields will include: first name, last name, grade level, homework1, homework2, homework3, homework4, homework5, homework6, homework7, homework8, homework9, homework10, midterm exam, final exam, present, and absence.

The calculations for the final grade is: Finalgrade = (homework * 55%) + (midterm * 20%) + (final * 25%)

These are functions you will use: set, left, right, fixed, show point, set precision, static_cast The attendance fields should be fields without decimal places.

The grades, averages, and percentages should have 2 decimal places. The width of the card should be 60 characters width. There are 3 lines with specific spacing:

First line: |<---10---->|<--------21-------->|<----13----->|<---10---->| Second Line: |<---10---->|<------18------->|<---10---->|<------17------>| Remaining Lines: |<----------25----------->|<-------19-------->|<----12---->|

Input File 1_____________________________________________________________

Mickey Mouse Senior 100 100.0 100 100.0 100 100.0 100 100.0 100 100

100.0

100

14

0

Input File 2_____________________________________________________________

Minnie Mouse Freshmen 100 99.0 95 90.0 85 95 85 89 75.5 100

89.5

100

10

4

Input File 3_____________________________________________________________

Donald Duck Sophmore 100 99.0 50 0.0 56 65 75 89 34.5 100

89.5

100

10

4

Input File 4_____________________________________________________________

Daisy Duck Junior 100.0 100.0 90.0 90 85 80 100 100 95.0 95

99

100

13

1

OutPut Files:

Output File 1______________________________________________________

============================================================

| Student | Mouse, Mickey | Grade Level | Senior |

============================================================

| Present | 14 - 100.00% | Absent | 0 - 0.00% |

============================================================

| Homework Grades | Average | 100.00|

============================================================

| Assignment 1 | 100.00| |

| Assignment 2 | 100.00| |

| Assignment 3 | 100.00| |

| Assignment 4 | 100.00| |

| Assignment 5 | 100.00| |

| Assignment 6 | 100.00| |

| Assignment 7 | 100.00| |

| Assignment 8 | 100.00| |

| Assignment 9 | 100.00| |

| Assignment 10 | 100.00| |

============================================================

| Midterm Grade: | | 100.00|

============================================================

| Final Exam Grade: | | 100.00|

============================================================

| Course Grade: | | 100.00|

============================================================

Output File 2______________________________________________________

============================================================

| Student | Mouse, Minnie | Grade Level | Freshmen |

============================================================

| Present | 10 - 71.43% | Absent | 4 - 28.57% |

============================================================

| Homework Grades | Average | 91.35|

============================================================

| Assignment 1 | 100.00| |

| Assignment 2 | 99.00| |

| Assignment 3 | 95.00| |

| Assignment 4 | 90.00| |

| Assignment 5 | 85.00| |

| Assignment 6 | 95.00| |

| Assignment 7 | 85.00| |

| Assignment 8 | 89.00| |

| Assignment 9 | 75.50| |

| Assignment 10 | 100.00| |

============================================================

| Midterm Grade: | | 89.50|

============================================================

| Final Exam Grade: | | 100.00|

============================================================

| Course Grade: | | 93.14|

============================================================

Output File 3______________________________________________________============================================================

| Student | Duck, Donald | Grade Level | Sophmore |

============================================================

| Present | 10 - 71.43% | Absent | 4 - 28.57% |

============================================================

| Homework Grades | Average | 66.85|

============================================================

| Assignment 1 | 100.00| |

| Assignment 2 | 99.00| |

| Assignment 3 | 50.00| |

| Assignment 4 | 0.00| |

| Assignment 5 | 56.00| |

| Assignment 6 | 65.00| |

| Assignment 7 | 75.00| |

| Assignment 8 | 89.00| |

| Assignment 9 | 34.50| |

| Assignment 10 | 100.00| |

============================================================

| Midterm Grade: | | 89.50|

============================================================

| Final Exam Grade: | | 100.00|

============================================================

| Course Grade: | | 79.67|

============================================================

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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

understand the key issues concerning international assignments

Answered: 1 week ago