Question: Given a file named students.txt containing unknown number of lines. Each line consists of student's name (stri

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Question: Given a file named students.txt containing unknown number of lines. Each line consists of student's name (stri

Post by answerhappygod »

Question Given A File Named Students Txt Containing Unknown Number Of Lines Each Line Consists Of Student S Name Stri 1
Question Given A File Named Students Txt Containing Unknown Number Of Lines Each Line Consists Of Student S Name Stri 1 (46.83 KiB) Viewed 28 times
Question: Given a file named students.txt containing unknown number of lines. Each line consists of student's name (string), mark (double), and gender (M for male and F for female). Write a program that reads the content of the input file, find and display on the screen total number of females students with marks greater than 80.00. Sample output Input file: students.txt Musa 65.0 M Huda 87.5 F May 72.25F Yahya 66.70 M Number of females with marks above 80.00 is XXXX Isa 94.5 M
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply