Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ 1%20(7).pdf ::: Apps G GmailMaps TranslateNews 0 YouTube D Create e Chrome Web Storeparaphrasing loo--@ Online photo Ecitor. w Refresh Your Math. a New

c++image text in transcribed

1%20(7).pdf ::: Apps G GmailMaps TranslateNews 0 YouTube D Create e Chrome Web Storeparaphrasing loo--@ Online photo Ecitor. w Refresh Your Math. a New lab Search Microsoft Word-CSC 2000 W19 Project 01 415 Extra Credit (25 points) For research purposes and to better help students, the admissions office of your local university wants to know how well female and male students perform in certain courses. You receive a file (ECPartl Data.txt) that contains female and male student GPAs for certain courses. Due to confidentiality, the letter code fis used for female students and m for male students. Every file entry consists of a letter code followed by a GPA. Each line has one entry. The number of entries in the file is unknown. Write a program that computes and outputs the average GPA for both female and male students. Format your results to two decimal places. Your program should use the following functions: Function openFiles: This function opens the input and output files, and sets the output of the floating-point numbers to two decimal places in a fixed decimal format witha decimal point and trailing zeros. a. b. Function initialize: This function initializes variables such as countFemale, countMale, sumFemaleGPA, and sumMaleGPA c. Function sumGrades: This function finds the sum of the female and male students GPAs. d. Function averageGrade: This function finds the average GPA for female and male Function printResults: This function outputs the relevant results. There can be no global variables. Use the appropriate parameters to pass information in and out of functions. e. f. Sample Output Processing grades f 3.40 f 4.e m 3.56 3.80 f 2.3 CSC 2000 W19 Pro... CSC 2000 19 Pro...df CSC 2000 W19 Pro... .f I Show allX O Type here to search 3/6/2019

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

5. Have you stressed the topics relevance to your audience?

Answered: 1 week ago