Write a java program that reads a file containing data

Assignment Help Basic Computer Science
Reference no: EM13308503

Write a Java program that reads a file containing data about the changing popularity of various baby names over time and displays the data abput a particular name. Each line of the file stores a name followed by intergers representing the name's popularity in each decade: 1900, 1910, 1920, and so on. The rankings range from 1 (most popular) to 1000 (least popular), or 0 for a name that was less popular than the 1000th name. The following lines are sample of the file format:

Sally 0 0 0 0 0 0 0 0 0 0 886
Sam 56 69 131 168 236 278 380 467 408 466
Samantha 0 0 0 0 0 0 272 107 26 5 7
Samir 0 0 0 0 0 0 0 0 920 0 798

Your program should prompt the user for a name and search the file for that name:

This program allows you to search through
the data from the Social Security Administration
to see how popular a particular name has been
since 1990.
Name?

 

Reference no: EM13308503

Questions Cloud

Find solubility of substance which dissolve with volume rise : Solubility of a substance which dissolves with an increase in volume and liberation of heat will be favoured by the A. low pressure and high temperature. B. low pressure and low temperature.
Corporate-level strategy play in relation to business-level : What role does corporate-level strategy play in relation to business-level strategy?
Determine the magnitude of the projected components of f : (a) Determine the magnitude of the projected components of F acting parallel Fp and normal Fn to line OA. (b) Express these components Fp and Fn in Cartesian vector notation.
Imagine a new file system structure : Imagine a new file system structure, describe it (and how it would work), give examples of its advantages and disadvantages.
Write a java program that reads a file containing data : Write a Java program that reads a file containing data about the changing popularity of various baby names over time and displays the data abput a particular name.
Leading companies to pursue international operations : Explain three forces leading companies to pursue international operations.2. Explain the concept of protectionism. Describe at least one impact to international business strategy.3. Identify at least one potential disadvantage to initiating, continui..
Write a complete program that will open a file : write a complete program that will open a file called numbers.txt that contains only integers separated by some white space characters. Your program should add up all of the numbers and print out the sum and the average of all the integers in the ..
Create a c++ function named pathexists : Write a C++ function named pathExists that determines whether or not a there's a path from start to finish in a 10x10 maze. A 2-dimensional 10x10 character array of Xs and dots that represents the maze. Each 'X' represents a wall, and each '.' rep..
List the three actions we could take upon receiving a signal : list three disadvantages for using signals as a means of interprocess comm.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Determine the maximum number

Determine the maximum number Determine the range (maximum - minimum) Displays a histogram that shows the numbers in each five-unit range.

  Which part of the try-catch statement must be witten

Mark the following statements are True or False. If a statement is False, explain why? a. There can be only one catch-lause for each try-catch statement. b. A catch-lause is an exception handler. c. A throw statement must be located within a try-c..

  Better job of allowing computers to network

You wrote a piece of software that does a better job of allowing computers to network than any other program designed for this purpose.

  Deliver software to a schedule

You are asked by your manager to deliver software to a schedule that you know can only be met by asking your project team to work unpaid overtime.

  Explain capacity of memory equal to size of external storage

This means that capacity of memory will be equal to size of external storage. How would this influence file structures? How would this influence storage devices?

  Write z schemas defining state of the system card validation

Write Z schemas defining the state of the system, card validation (where the user's identifier is checked) and cash withdrawal.

  How do you write a program in visual basic

My problem is the program should pretty much erase the pervious series data points for the control limits for both charts and update the new value with the recalculated values, and I am not sure how to do this. Thank you!

  Explain enterprise architecture using zachman framework

In your opinion, does framework necessarily lead to the top-down approach to development, e.g. you start with models in row 1, then work on row 2 models, and so on?

  You are to design and construct a 3-bit synchronous counter

You are to design and construct a 3-bit synchronous counter with an enable (EN) input. The counter is to count in the prescribed squence shown below if EN is true at the next active clock transition

  Develop a program that includes a function

Develop a program that includes a function which has been created by you. This function should receive a single string as a parameter and decide if the string is indeed a palindrome or not a palindrome.

  What is the difference between the if then elseif

What is the difference between the If Then ElseIF clause and a Nested If Block? Please provide examples of how you would use each.

  Write a select statement that returns four columns

Write a Select statement that returns four columns from the Invoices table, named Number, Total, Credits, and Balance

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd