Find Jobs
Hire Freelancers

Need A code

$10-30 USD

In Progress
Posted about 5 years ago

$10-30 USD

Paid on delivery
Need within 1.5 hours 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 ([login to view URL]) that contains female and male student GPAs for certain courses. Due to confidentiality, the letter code f is 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: a. 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 with a decimal point and trailing zeros. 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 students. e. Function printResults: This function outputs the relevant results. f. There can be no global variables. Use the appropriate parameters to pass information in and out of functions.
Project ID: 18989288

About the project

2 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $25 USD for this job
User Avatar
Hello, i am very experienced with c/c++ , also i think that i have understood what you want.I am available now, so you can contact with me for more info.
$20 USD in 1 day
5.0 (1 review)
2.1
2.1

About the client

Flag of UNITED STATES
ham, United States
5.0
3
Member since Mar 19, 2019

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.