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

Transcribed Image Text:Assignment 3
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
calculated as the following: total= Test1*0.2+Test2*0.2+Final*0.6
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: The strategy of Multiple Equivalent Simultaneous Offers involves presenting several equally valuable…
Q: 5. RetailItem ClassWrite a class named RetailItem that holds data about an item in a retail store.…
Q: The importance of keeping a clean food pantry in a nursing home and how can a nutritionist utilize…
Q: 6. A particle moves according to a law of motion s(t) = t3-12t2 + 36t, where t is measured in…
Q: This week we focused on how to manage corporate social responsibility (CSR) and sustainability…
Q: Develop a worthwhile, substantial, and innovative strategic initiative. Your strategic initiative…
Q: Assign ALL signals for the proton and carbon NMR spectra on the following pages.
Q: 7.5
1.93
2.05
C
B
A
4
3
5
The Joh.
9
7
8
1
2
7.5
7.0
6.5
6.0
5.5
5.0
4.5
4.0
3.5
3.0
2.5
2.0
1.5
1.0…
Q: This is an old exam practice question. The answer is Pmax = 218.8 kN normal stress governs but…
Q: Assign the functional group bands on the IR spectra.
Q: CSR and Corporate Ethics - A Global Approach
This week you will start working on your Portfolio…
Q: using r language
Q: Q1.4
1 Point
V=C(R), the vector space of all real-valued continuous functions whose domain is the…
Q: Strategy Formation Experiences
Please share an experience in which you played the strategist. What…
Q: A flat circular coil with 135 turns, a radius of 2.28 x 10-2 m, and a resistance of 0.618 is
exposed…
Q: Find the pH of a 0.120 M solution of HNO2.
Find the pH ignoring activity effects (i.e., the normal…
Q: QUestion 7c
Q: Construct a table and find the indicated limit.
√√x+2
If h(x) =
then find lim h(x).
X-8
X-8
Complete…
Q: Examine the conflicts between improving customer service levels and controlling costs in sales.…
Q: Use the graph to find the following limits.
(a) lim f(x)
(b) lim f(x)
X-1
x→1
(a) Find lim f(x) or…
Q: Officials in a certain region tend to raise the
sales tax in years in which the state faces a
budget…