Page 1 of 1

IN C++ PLEASE What percentage of men and women pursue STEM (Science, Technology, Engineering, Math) degrees? With your p

Posted: Mon Jun 06, 2022 5:24 pm
by answerhappygod
IN C++ PLEASE
What percentage of men and women pursue STEM (Science,
Technology, Engineering, Math) degrees? With your programming
partner, you will complete a program that reads from a file called
stem.txt and writes to an output file called stemout.txt. It does
not store any data. But it uses loops and functions to read from
the file and do some analysis. It calculates the percentage of men
and women in each major and writes the name of the major,
percentage men, and percentage women to the output file.
Percentages should be printed to two decimal places. You must
ignore the first line in stem.txt, which is a header line. The
function openFile() has been written for you. You must write the
ratioCalc() function. Optional: What other statistics can you
calculate and add to the output file? Design a poster in Google
slides to explain visually and upload.