10.4 Activity 4 10.4.1 Objective Write a Java program to read all the data according to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
10.4 Activity 4 10.4.1 Objective Write a Java program to read all the data according to its specific type using Scanner and File class. 10.4.2 Problem Description Assume you have a file (student.txt) that contains students' data as shown in Figure 10.2. The file consists of 10 rows with each row contains student' name, marks and grades accordingly. Write a Java program that should be able to: i. ii. iv. V. declare one dimensional arrays read the data one by one and assign to the specific arrays that have been declared sort the students according to their mark in descending order calculate total marks and its average display out the sorted list of students (name, marks & grade), total mark and average Badli 86.00 A Tarmizi 80.00 A Faisal 85.00 A Maryam 94.00 A Fatimah 64.00 C Humayraa 85.00 A Abdullah 63.00 C Luqman 60.00 c Zahraa 72.00 B Abdurrahman 75.00 B Figure 10.2: student.txt 10.4 Activity 4 10.4.1 Objective Write a Java program to read all the data according to its specific type using Scanner and File class. 10.4.2 Problem Description Assume you have a file (student.txt) that contains students' data as shown in Figure 10.2. The file consists of 10 rows with each row contains student' name, marks and grades accordingly. Write a Java program that should be able to: i. ii. iv. V. declare one dimensional arrays read the data one by one and assign to the specific arrays that have been declared sort the students according to their mark in descending order calculate total marks and its average display out the sorted list of students (name, marks & grade), total mark and average Badli 86.00 A Tarmizi 80.00 A Faisal 85.00 A Maryam 94.00 A Fatimah 64.00 C Humayraa 85.00 A Abdullah 63.00 C Luqman 60.00 c Zahraa 72.00 B Abdurrahman 75.00 B Figure 10.2: student.txt
Expert 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
-
re Regular Languages and Finite Automata (a) Let L be the set of all strings over the alphabet {a, b} that end in a and do not contain the substring bb. Describe a deterministic finite automaton...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Air flows through the fine mesh gauze shown in the figure below with an average velocity of 1.50 m/s in the pipe. Determine the loss coefficient for the gauze. KL= i 8.1mm V = 1.5 m/s Water Gauze...
-
Describe the relationship among people, organization, and technology at Home Depot. How did this relationship change over time?
-
Modify Listing 5.15 to display all the prime numbers between 2 and 1,000, inclusive. Display eight prime numbers per line. Numbers are separated by exactly one space. Listing 5.15 1 public class...
-
\(P(A)=12 \%, P\left(A^{\prime} ight)=88 \%, P(B \mid A)=66 \%\), and \(P\left(B \mid A^{\prime} ight)=19 \%\) According to Bayes' Theorem, the probability of event A, given that event B has...
-
The earning of revenue by a business enterprise is recognized for accounting purposes when the transaction is recorded. In some situations, revenue is recognized approximately as it is earned in the...
-
You are writing a legal memorandum and want to include the following list. Which numbering system would be your best option? The three requirements of standing are 1) injury in fact, 2) causation,...
-
Which series has the highest beta. BraveNewCoin Liquid Index for Bitcoin 1D BNC Trading Brave Ne Yellow Green Blue Orange
-
Key Pay is not an accounting package, but it generates information which is needed to produce accurate and timely accounting reports. Complete the below table to outline how the payroll system...
-
An asset was purchased for $262000. It had an estimated salvage value of $52000 and an estimated useful life of 10 years. After 5 years of use, the estimated salvage value is revised to $40000 but...
-
25. Your client Ama Boahemaa has GHS100,000 to invest in the Tek 5 Index and the GoG 10-year bond. The yield on the GoG 10-year bond is 16.5%. The Tek 5 Index consists of five technology equity...
-
Make use of the quantity equation to answer the following problem. If the Fed increases the money supply by 6%, economic growth is 2%, and inflation is 2%, what is happening to the velocity of money?...
-
Complete the model by filling in the blank cells before answering the question below. Answers should be rounded to the nearest whole number, comma separating 000s, NOT written in currency format. So...
-
You would like to borrow $25,000 from a local bank.You will make equal monthly payments over a fifteen-year period.What will your monthly payment be if yearly interest rate is 6%? A company is...
-
Fusion Enterprises offers a basic service with revenue of $100 per unit, variable costs of $50 per unit, and total fixed costs are $600,000. Fusion intends to offer their customers a new additional...
-
Is the modified 5-question approach to ethical decision making superior to the modified moral standards or modified Past in approach?
-
During the 2012 tax year, Irma incurred the following expenses: Union dues..............................................................$275 Tax return preparation...
-
Quince Corporation has taxable income of $450,000 for its 2012 calendar tax year. Calculate the corporation's income tax liability for 2012 before tax credits. $_________
-
How much of each of the following prizes or awards is taxable? a. Cheline received a $50,000 gift bag at the Oscars in 2012. b. Jon received a gold watch worth $350 for 25 years of service to his...
-
If the displacement of an object is 300 m north, what can you say about the distance traveled by the object?
-
An object traveling at a constant velocity vo experiences a constant acceleration in the same direction for a period of time t. Then an acceleration of equal magnitude is experienced in the opposite...
-
You are told that a person has walked 750 m. What can you safely say about the persons final position relative to the starting point?
Study smarter with the SolutionInn App