could you make this code as same as sample run? but i didn't learn the buffered reader
Fantastic news! We've Found the answer you've been seeking!
Question:
could you make this code as same as sample run?
but i didn't learn the buffered reader or try or catch.
so can you just write the basic method and make it?
Transcribed Image Text:
Lab Exam #3 Practice Question 1 Part A Write a program to read in a list of names and grades from a file. Find the average score and print out all students whose score is greater than the average. You cannot hard-code the average into your program. Do not use arrays or Arraylists to solve this problem. Hint: Read the file twice. Create a file by copying the following text into notepad and saving file as: c:\temp\ names.txt Jordan House 87.4 Anthony Mason 76.5 Austin Twumasi 90.5 Ciprian Rhodes 66.9 Darrell Poon 75.2 The following is a sample run, user input is shown in red bold underline: Enter the input filename: c:/temp/names.txt Average grade is 79.30 Students with grades > average First Last Jordan House Austin Twumasi Score 87.40 90.50 Lab Exam #3 Practice Question 1 Part A Write a program to read in a list of names and grades from a file. Find the average score and print out all students whose score is greater than the average. You cannot hard-code the average into your program. Do not use arrays or Arraylists to solve this problem. Hint: Read the file twice. Create a file by copying the following text into notepad and saving file as: c:\temp\ names.txt Jordan House 87.4 Anthony Mason 76.5 Austin Twumasi 90.5 Ciprian Rhodes 66.9 Darrell Poon 75.2 The following is a sample run, user input is shown in red bold underline: Enter the input filename: c:/temp/names.txt Average grade is 79.30 Students with grades > average First Last Jordan House Austin Twumasi Score 87.40 90.50
Expert Answer:
Answer rating: 100% (QA)
part A import javaioFile import javaioFileNotFoundException import javautilScanner public class StudentGrades public static void mainString args Prompt user for input filename SystemoutprintEnter the ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
/** * WEB222 - Assignment 02 * * I declare that this assignment is my own work in accordance with * Seneca Academic Policy. No part of this assignment has been * copied manually or electronically...
-
Use Eq. (13) to show that (x, y) = ln r is harmonic. 1 Af = frr + fee + = fr 1 2
-
Which of the following sampling procedures involve the use of probability sampling? a. A college student is hired to interview a sample of voters in her town. She stays on campus and interviews 100...
-
California Childrens Hospital currently uses a confusing, decentralized appointment and registration process for its patients. Therefore, the decision has been made to centralize the process by...
-
Problem 8 is the same as problem 7 with respect to initial measurement of the ARO liability. Now assume that Tadpoles credit standing improves over time, causing the credit-adjusted risk-free rate to...
-
David R. and Ella M. Cole (ages 39 and 38, respectively) are husband and wife who live at 1820 Elk Avenue, Denver, CO 80202. David is a regional sales manager for Wren Industries, a national...
-
A car traveling 87.0 km/h is 1500 m behind a truck traveling at 74.0 km/h. How far from its initial position does the car have to travel to catch up to the truck.
-
1.Identify the three countries with the most favorable collection experience as measured by their receivables turnover ratios. RTR US = RTR Saudi Arabia = RTR UK = 2. Which country appears to have...
-
Richardson Co. has 30,000 of common shares outstanding and owned 80% if the common stock of Plano Co. Plano had 20,000 shares of $5 par value common stock and no share of preferred stock outstanding....
-
What project charter component documents significant points or events in the project and, per the author, may be developed most effectively when combined with other information such as acceptance...
-
Why is it important to conduct a lessons learned discussions at project closeout?
-
Who should be involved in identifying potential projects?
-
Which of the following is both a domain and a delivery principle according to the PMBOK 7e? a. Value b. Stakeholders c. Measurement d. Holistic thinking
-
List and describe each of the managerial and associate project roles.
-
Complete the SOE and worksheet using the information below. Excess of Market over Book Values (Market - Book) Item: 12/31/2018 -$10,000 $0 $0 $13,000 $20,000 Machinery and Equipment Land Buildings...
-
How many years will it take a $700 balance to grow into $900 in an account earning 5%?
-
What if you consider an exothermic reaction in which internal diffusion limits the rate of reaction? Can you explain how the internal effectiveness factor could be greater than one, that is, > 1?...
-
Download the Interactive Computer Game (ICG) The Great Race from the CRE Web site (http://www.umich.edu/~elements/6e/icm/index.html). Play the game and then record your performance number for the...
-
Go to the Web site (http://www.umich.edu/~elements/6e/04chap/iclicker_ch4_q1.html) and view at leave five i>clicker questions. Choose one that could be used as is, or a variation thereof, to be...
-
The following table shows the interest rates on the fixed and floating borrowing choices available to three firms. Firms A and B want to be exposed to a floating interest rate while Firm C would...
-
Futures contracts are standardized contracts for the delivery of a specified quantity of a commodity or financial instrument on a prearranged future date, at an agreed- upon price. They are a bet on...
-
Derivatives transfer risk from one person or firm to another. They can be used in any combination to unbundle risks and resell them.
Study smarter with the SolutionInn App