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
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 15RQ
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
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Expert Answers to Latest Homework Questions
Q: Solve with minitab
Q: There are 37 known isotopes of iodine, but only one, 127I, is stable. Of the two iodine isotopes,…
Q: I have a client who wants to open a franchise retail operation. I would like to ask the client 8-10…
Q: On January 1, Year 1, Victor Company issued bonds with a $250,000 face value, a stated rate of…
Q: When Ni(NO3)2 is dissolved in water it forms a light green solution. When ammonia is added to the…
Q: Draw the deflection of the needle, which way it moved, the location of positive and negative…
Q: Use Green's Theorem to evaluate
t
F= √x+5y, 4x+5y)
rd
F.nds, where
C
C is the boundary of the region…
Q: Clayton Industries has the following account balances:
Current assets
Noncurrent assets
$ 22,000…
Q: Doyle Company issued $360,000 of 10-year, 7 percent bonds on January 1, Year 2. The bonds were…
Q: On January 1 Year 1, Gordon Corporation issued bonds with a face value of $70,000, a stated rate of…
Q: Please give the appropriate product(s) for the following Diels-Alder reaction.
E
F
B
Q: I have a new client wanting to purchase a franchise retail operation. What would be 8-10 questions…
Q: A chemist fills a reaction vessel with 0.767 M lead (II) (Pb2+) aqueous solution, 0.207 M bromide…
Q: Find the recursion formula for the coefficients of the power series. For n = 10, what is the factor…
Q: Is the input wave form F(t) even or odd?
What is the frequency of the forcing function? Round to the…
Q: The temperature, H, in degrees Celsius, of a cup of coffee placed on the kitchen counter is given by…
Q: This question is over numerical methods using the following three methods shown in the problem to…
Q: https://www.apa.org/monitor/2023/11/incorporating-religion-spirituality-therapy
Does this source…
Q: Assume in each problem that the base metal is A36 steel and that the electrodes are E70XX.
10.9…
Q: 10.1 Determine the allowable load P permitted for this double shear joint connection assuming A36…
Q: AMPAD™
A
67° 17'
B
C
D
THE FOUR SIDED CLOSED TRAVERSE
HAS THE FOLLOWING ANGLES &
DISTAN CES
A= 51°…