Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ASSIGNMENT 5 Assignment 5 tests your knowledge of Repetition ( Chapter 5 ) in C + + . Part 1 . Design a program called
ASSIGNMENT
Assignment tests your knowledge of Repetition Chapter in C
Part Design a program called YourNameAssignmentreplace YourName with your actual name that reads from a
formatted file students records one student per line The format of the lines from the file is the following:
Name Tests Assignments
where Name is the last name of a student string without spaces and Tests and Assignments are floatingpoint test grades
between and and the columns are separated by tabs
For each student, the program should compute and store in the following variables with these exact names:
TotalPoints storing the total points computed as the sum of Tests and Assignments
NumericGrade storing the numeric grade computed as the TotalPoints divided by
LetterGrade storing the letter grade of the student and computed as following: A if the numeric grade is between
and B if the numeric grade is between and C if the numeric grade is between and D if the
numeric grade is between and and F if the numeric grade is between and
The program should also compute the number of students lines in the file and store it in the variable NumberStudents
and the average of the all the students numeric grades and store it in variable AverageNumericGrade.
The program should output to the console the data read and computed from the file in this format data should be in
the exact table columns format, with the exact header and the values from the variables; the table for STUDENT STATISTICS
should have a row for every studentline from the file; all headers and textcharacter columns should be aligned to the
left; all floatingpoint values should be aligned to the right and formatted with decimals; tables do not need to have
linesborders :
STUDENT STATISTICS:
NAME TESTS ASSIGNMENTS TOTAL POINTS NUMERIC GRADE LETTER GRADE
Name Tests Assignments TotalPoints NumericGrade LetterGrade
CLASS STATISTICS:
STATISTIC VALUE
NUMBER NumberStudents
AVERAGE AverageNumericGrade
For example, if the file has the data from the table below with blue background, the output should be:
STUDENT STATISTICS:
NAME TESTS ASSIGNMENTS TOTAL POINTS NUMERIC GRADE LETTER GRADE
Name A
Name B
Name F
Name A
Name A
CLASS STATISTICS:
STATISTIC VALUE
NUMBER
AVERAGE
You can test your program on the attached AssignmentDataFile.txt do edit the file or rename it but your program
should work on any other files that have the correct format, thus, do not hardcode the output or the number of students.
Part Implement the program in Visual Studio : Create a C project called YourNameAssignment and add your
code to YourNameAssignmen main function. Your program should be userfriendly be welldocumentedcommented
have comments for every line of code and use only concepts learned in class so far Chapters to
Part Create the screenshot document for your code and output: Create a Microsoft Word document from the
YourNameAssignment.docx template and call it YourNameAssignmentdocx replace YourName with your actual
name Add to the document your complete screenshots of the Visual Studio editor window showing the complete C
source code for YourNameAssignmentB program and complete screenshots of the complete output. If the entire class
C source code or the output does not fit in one screenshot or the screenshots cannot be easily read, create multiple
screenshots, and add multiple screenshots to the document. Please keep the screenshots in order.
Part Submit your work: Submit YourNameAssignmentdocx document on eCampus under the Assignment Do not
submit other typesformats of files eg no CLASS, PDF CPP etc. Please review the file and resubmit if not correct.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started