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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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