Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

c++ The Oregon Department of Education has commissioned a study to determine if males or remaies sure better on a particular test. They also want

c++
image text in transcribed
image text in transcribed
The Oregon Department of Education has commissioned a study to determine if males or remaies sure better on a particular test. They also want to study if Community College or University students score better. Researchers have created a data file (scores.txt), which contains the scores attained by the student sample. The first column is the student's name, the second column is the student's gender (M for male, and F for female), the third column indicates Community College (CC) or 4 year (UN), and the last column specifies the score. A specimen of the file scores.txt is attached as part of this assignment. You should download this file to a convenient place on your hard drive. Design Considerations: 1. Your assignment is to prompt the user to enter the filename with the path on disk. If the file does not exist in the specified location, your program should exit with a suitable error message. 2. No global variables. All variables must be inside main(). 3. The first thing your program should do is output to the screen a copy of the data read in from the disk file. This is known as "echoing" the input data. 4. Your program should then calculate and display the average score for males, females, community college students, and university students. Display your results to two places of decimals, and write your program to automatically list your four calculated averages one to a line, along with a suitable label for each result. 5. Finally, your program should calculate and display to two places of decimals the overall average score for all of the students surveyed. (Note: Mathematically, this is NOT the average of the four averages you calculated previously). M CC 68 Bailey Harrison Grant Peterson Bowles Anderson Nguyen Sharp Jones McMillan Gabriel M UN 75 F UN 69 M UN 79 M cc 75 F UN 64 [ c 68 F cc 75 M UN F UN 88 F UN 62 The Oregon Department of Education has commissioned a study to determine if males or remaies sure better on a particular test. They also want to study if Community College or University students score better. Researchers have created a data file (scores.txt), which contains the scores attained by the student sample. The first column is the student's name, the second column is the student's gender (M for male, and F for female), the third column indicates Community College (CC) or 4 year (UN), and the last column specifies the score. A specimen of the file scores.txt is attached as part of this assignment. You should download this file to a convenient place on your hard drive. Design Considerations: 1. Your assignment is to prompt the user to enter the filename with the path on disk. If the file does not exist in the specified location, your program should exit with a suitable error message. 2. No global variables. All variables must be inside main(). 3. The first thing your program should do is output to the screen a copy of the data read in from the disk file. This is known as "echoing" the input data. 4. Your program should then calculate and display the average score for males, females, community college students, and university students. Display your results to two places of decimals, and write your program to automatically list your four calculated averages one to a line, along with a suitable label for each result. 5. Finally, your program should calculate and display to two places of decimals the overall average score for all of the students surveyed. (Note: Mathematically, this is NOT the average of the four averages you calculated previously). M CC 68 Bailey Harrison Grant Peterson Bowles Anderson Nguyen Sharp Jones McMillan Gabriel M UN 75 F UN 69 M UN 79 M cc 75 F UN 64 [ c 68 F cc 75 M UN F UN 88 F UN 62

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_2

Step: 3

blur-text-image_3

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students explore these related Databases questions