Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE FOLLOW THE INSTRUCTION CAREFULLY ! DO NOT WIRTE THE CODE ON A PAPER OR! I NEED THE CODE THAT CAN RUN EXACTLY AS THE

image text in transcribed

PLEASE FOLLOW THE INSTRUCTION CAREFULLY ! DO NOT WIRTE THE CODE ON A PAPER OR! I NEED THE CODE THAT CAN RUN EXACTLY AS THE INSTRUCTION, ALSO NEED THE SCREENSHOT OF THE PROGRAM TOO! REMEMBER, WRITE THE CODE ON "MICROSOFT VISUAL STUDIO" C++, MY COMPUTER IS A PC NOT MACBOOK

ASSIGNMENT 2B Write a program YourNamel-Assignment2B (replace [YourName] with your actual name, no spaces) 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 for each student the overall total points for all tests (column Total Points) 1, the numeric grade (column Numeric Grade) (between 0 and 100) and the letter grade (column Letter Grade)3. The program should also compute and output the number of students (row Number), and average numeric grade (row Average) among all 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 Test1 Test2) and determines and outputs Sample console output STUDENT STATISTICS: Letter Grade Total Points 171.25 165.00 135.00 180.00 180.00 145.50 189.00 Numer1c Grade 85.63 82.50 67.50 90.00 90.00 72.75 Name Anderson Blake Castillo Dang Engberg FU Garcl Hung Iona Johnsor CLASS STATISTICS: 90.5 8075 Anderson Blake Cast11lo Dang Engberg 100 Garcia Hung Iona Johnson 47.50 60.38 52.50 90 120.75 105.00 60.75 Average: M1n1mum: Maximum: 74.33 47.50 94.50 Your program should work on the Grades.txt (from the assignment- do NOT change the name of the file or edit the file) and any other files that have the correct format, thus, do not hardcode the output or the number of students. For 10 extra credit points, compute the minimum and maximum of the numeric grades and output them the CLASS STATISTICS table In addition to the complete CPP code (YourNamel-Assignment2B.cpp), you should submit a screenshot Word document (IYourNamel-Assignment2B.docx) that contains screenshots of vour full C++ code (take multiple screenshots if the code is larger than one screen), and the full console output (take multiple screenshots if the output is larger than one window) Submit your YourNamel-Assignment2B.cpp and IYourNamel-Assignment2B.docx files under Assignment2B on eCampuS. You compute the Total Points as the sum between Test 1 and Test 2 grades. 2You compute the Numeric Grade as the total number of points (from all the tests) divided by 2 3The Letter Grade is 'A if the numeric grade is between 90 and 100 . B if the numeric grade is between 80 and 89.99 C if the numeric grade is between 70 and 79.99 Anderson Blake 75 Castillo Dang 95 Engberg 80 90.5 90 -D if the numeric grade is between 60 and 69.99, and 80.75 F if the numeric grade is between 0 and 59.99 100 ul Garcia 99 Hung 35 Iona 60.75 60 Johnson 65 90 60

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

Discuss the importance of linking pay to ethical behavior.

Answered: 1 week ago

Question

Explain how to reward individual and team performance.

Answered: 1 week ago