Exercise: Suppose you are given a text file "students.txt" that contains the data of students. Every line in the file is composed by the first name, the last name, the score of the test1, the score of the test2 and the grade of the final. Write a program that: a. Read the file "student.txt" b. Create a new file named "Result.txt". Write in this file the list of the admitted students (total score >= 60). Each line should contain, the first Name, Last Name, the total score and the string "PASS". The total score is calculated as the following: total= Test1*0.2+Test2*0.2+Final"0.6
Exercise: Suppose you are given a text file "students.txt" that contains the data of students. Every line in the file is composed by the first name, the last name, the score of the test1, the score of the test2 and the grade of the final. Write a program that: a. Read the file "student.txt" b. Create a new file named "Result.txt". Write in this file the list of the admitted students (total score >= 60). Each line should contain, the first Name, Last Name, the total score and the string "PASS". The total score is calculated as the following: total= Test1*0.2+Test2*0.2+Final"0.6
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
The sent code is copied. I need a new code. I am studying java 2
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Expert Answers to Latest Homework Questions
Q: Solve this mathematics question 5 from the
drive, open link in your browser then
¦request for…
Q: Solve this mathematics question 4 from the
drive, open link in your browser then
request for access,…
Q: The plant asset and accumulated depreciation accounts of Pell Corporation had the following balances…
Q: Please help! This is a practice problem for my exam review. I tried, but I’m not sure what I’m doing…
Q: Solve this mathematics question 1 from the
drive, open link in your browser then
request for access,…
Q: 7-16.
A successful businessperson in the community has contacted the Moose County Board of…
Q: Solve Advanced mathematics question 4
from the drive, open link in your browser
¦then request for…
Q: Solve Advanced mathematics question 2
from the drive, open link in your browser
then request for…
Q: Solve Advanced mathematics question 3
from the drive, open link in your browser
¡then request for…
Q: 다
Solve Advanced mathematics question 1
from the drive, open link in your browser
¡then request for…
Q: Solve advanced mathematics question 18
from the drive link, all reference data and
books and lecture…
Q: Solve advanced mathematics question 15
from the drive link, all reference data and
books and lecture…
Q: Solve advanced mathematics question 3|from
the drive link, all reference data and books
and lecture…
Q: Please solve the advanced mathematics
problem 3 from the drive link, all reference
data and books…
Q: LO.6 Rita forgot to pay her Federal income tax on time. When she actually filed, she reported a…
Q: How do I set up, what is it asking?
Q: Sidman 2001. What does this mean? Verbal warnings are often ineffective, reflecting slow avoidance…
Q: Circle the mechanism and draw the major organic product for each reaction. If the alkene
has…
Q: Sidman 2001. What does this mean? If we cannot escape, we might just tune out for a while. If the…
Q: Discuss two beneficial uses of opioids.
Q: What is the relationship between endorphins and opioids?