Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi I wanted to see if anyone could figure this out for me. It has to be written in C++ and done in Visual Studio.

image text in transcribed

Hi I wanted to see if anyone could figure this out for me. It has to be written in C++ and done in Visual Studio. I have had other people on here do this problem but none will run for me on Visual Studio. They end up having many errors that I cant seem to fix. If posible but not required the text file to be stored to be called for in the sorces section of the program in Visual studio. Also, I will need the code and screenshots of it working in Visual Studio. Any help is greatly appreciated, thank you!

ASSIGNMENT 4 Write a program that reads from a file (with variable number of records) student names and the grades for 2 tests (the points are floating-point numbers between 0 and 100) (format: Name Testl Test2) and determines and outputs for each student the overall total points for all tests (column Total Points) 1, the numeric grade (column Numeric Grade)2(between 0 and 100) and the letter grade (column Letter Grade The program should also compute and output the number of students (row Number) and average numeric grade (row Average) among a students and displays them with 2 decimals. Display the output in the exact format shown below (use 2 decimals for floating-point numbers and the columns and alignment suggested bellow Sample input data file: Sample console output: STUDENT STATISTICS: Total Name Numeric Letter Points Grade Grade 171.25 85.63 Anderson 90.5 80.75 Anderson Blake 165.00 82.50 75 90 Blake Castillo 135.00 67.50 Castillo 55 80 180.00 90.00 Dang 95 85 Dang 180.00 90.00 Engberg 80 100 Engberg 145.50 72.75 Fu 55 90.5 Garcia 94.50 189.00 Garcia 99 90 95.00 47.50 Hung 35 60 Hung 120.75 60.38 Iona. 60.75 60 Iona 105.00 52.50 Johnson 65 40 Johnson CLASS STATISTICS 10 Number 47.50 Minimum 94.50 Maximum Average: 74.33 Your program should work on the Grades.txt (from the assignment) and any other files that have the correct format, thus, do not hardcode the output or the number of students C

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

Students also viewed these Databases questions

Question

How well do I know the readers?

Answered: 1 week ago