Given a file named students.txt containing unknown number of lines. Each line consists of student's name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. Input file: students.txt Musa 65.0 M Huda 87.5 F May 72.25 F Yahya 66.70 M Isa 94.5 M Sample output Number of females with marks above 80.00 is XXXX 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. Input file: students.txt Musa 65.0 M Huda 87.5 F May 72.25 F Yahya 66.70 M Isa 94.5 M Sample output Number of females with marks above 80.00 is XXXX
Expert Answer:
Answer rating: 100% (QA)
Below is a simple Python program that reads the content of the input file extracts the nece... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Discuss the impact of HSI on the Systems Acquisition Life Cycle
-
Determine the stiffness matrix K for the truss. Take A = 0.0015 m^2 and E = 200 GPa for each member. Please show the step-by-step solution. 5 410 9 3 5 7 7 8 A4 Tesol242 3 2 4 4 5 6 2 4 m 4 m 20 kN...
-
Question 4: Artistic Hand for engineering Services was formed on Jun 1, 2018. The following transactions took place during the month of Jun: I The owner invested $20,000 cash in business. 2 Hired an...
-
Refer to the Forbes listing of the 2015 values of the 32 teams in the National Football League (NFL), Exercise 2.26 (p. 60). Construct a scatterplot to investigate the relationship between 2015 value...
-
Sheth and Sons Inc. is considering changing its pay period for its salaried management from paying salaries every two weeks to paying salaries monthly. The firms CFO, Ken Smart, believes that such...
-
The BirthRate variable in the AllCountries dataset gives the birth rate per 1000 people for all the countries in the world. Use technology to create a histogram for this variable, and describe the...
-
Assume the following: the sales price to consumers is $150 the retailers markup is 50% Whirlpools after tax profit margin is 4% The hurdle rate is 20% Populations are as follows: Brazil 182...
-
A business has been in operation for nine years and is now reporting a retained earnings balance of $ 1 2 7 , 0 0 0 . What makes up that figure?
-
On January 1, 2023, Logan Limited had shares outstanding as follows: 6% cumulative preferred shares, $100 par value, 10,000 shares issued and outstanding $1,000,000 Common shares, 200,000 shares...
-
1) Research and summarize 2-3 types of Contracts that were valid as a matter of Public Policy in the late 1800s early 1900s but would not be accepted today because of our changes in our society Q2)...
-
You leave Fort Worth, Texas, at 2:38 p.m. and arrive in Dallas at 3:23 p.m., covering a distance of \(58 \mathrm{~km}\). What is your average speed \((a)\) in meters per second and \((b)\) in miles...
-
For an object in free fall, the curve of its velocity as a function of time is a straight line. How would this curve be different when air resistance (which changes with speed) is not negligible?
-
Consider two vectors along the \(x\) axis, one with \(x\) component \(A_{x}=+3 \mathrm{~m}\) and the other with \(x\) component \(B_{x}=-5 \mathrm{~m}\). What are \((a) \vec{A}+\vec{B}\) and \((b)...
-
A box is at the lower end of a very slippery ramp of length \(\ell\) that makes a nonzero angle \(\theta\) with the horizontal. A worker wants to give the box a quick shove so that it reaches the top...
-
The position of a \(6.0-\mathrm{kg}\) shopping cart rolling down a ramp is given by \(x(t)=p+q t^{2}\), with \(p=+1.50 \mathrm{~m}\) and \(q=+2.00 \mathrm{~m} / \mathrm{s}^{2}\). What is the \(x\)...
-
A business school at a particular university has 25 full-time faculty members. The following table shows the number of faculty members grouped by years of teaching experience. Years of Teaching Ex...
-
What is an access control list?
-
How are qualified dividends taxed in 2012? Please give the two rates of tax which apply to qualified dividends, and specify when each of these rates applies._________________________...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-7. Ivan sold the following securities during the year and received a Form 1099-B that...
-
Charlie's Green Lawn Care is a cash basis taxpayer. Charlie Adame, the sole proprietor, is considering delaying some of his December 2012 customer billings for lawn care into the next year. In...
-
You are to open the books of F. Polk, a trader, via the journal to record the assets and liabilities, and are then to record the dialy transactions for the month of May. A trial balance is to be...
-
Show the journal entries necessary to record the following items: 2017 Apr 1 Bought office furniture on credit from Durham Brothers Ltd 1,400. 4 We take goods costing 270 out of the business...
-
You are to show the journal entries necessary to record the following items which occured in 2016: (a) May 1 Bought a motor bike on credit from Lakeside Garage for 5,500. (b) May 3 A debt of 347...
Study smarter with the SolutionInn App