مرام الحلوة
02-08-2007, 02:17 AM
ممكن مساعدة في حل السؤال...؟؟؟
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 that contains female
and male student GPAs for a certain course. 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 aprogram that computes and outputs the average GPA for both
female and male students. Format your results to two decimal places.
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 that contains female
and male student GPAs for a certain course. 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 aprogram that computes and outputs the average GPA for both
female and male students. Format your results to two decimal places.