Read the data from the data file into three arrays

Assignment Help Basic Computer Science
Reference no: EM131963230

1. (city_data.txt). The data file contains the name, population and precipitation for 13 US cities. java program as follows:

-  Read the data from the data file into three arrays, one to store the city names, one to store the populations, and another to store the precipitations.

-  Output the city names, populations, and precipitations.

-  Find and output the most and the least populous cities.

-  Find and output the city with the most and the least precipitations.

-  Format the output appropriately.

Sample run:

Name                     Population                  Precipitation

Sacramento               490,712                       17.93

Kansas_City              475,378                       37.98

San_Diego                1,394,928                     10.77

Jacksonville             868,031                       52.34

San_Francisco            864,816                       20.11

New_York                 8,550,405                     49.69

Washington               672,228                       39.35

Baltimore                621,849                       41.94

St_Louis                 315,685                       38.75

Pittsburgh               304,391                       37.85

Los_Angeles              3,971,883                     13.15

San_Antonio              1,469,845                     32.92

Honolulu                 352,769                       18.29

The most populous city is New_York with population 8,550,405.

The least populous city is Pittsburgh with population 304,391.

The most precipitation city is Jacksonville with precipitation 52.34.

The least precipitation city is San_Diego with precipitation 10.77.

(city_data.txt)Sacramento 490712 17.93

Kansas_City 475378 37.98

San_Diego 1394928 10.77

Jacksonville 868031 52.34

San_Francisco 864816 20.11

New_York 8550405 49.69

Washington 672228 39.35

Baltimore 621849 41.94

St_Louis 315685 38.75

Pittsburgh 304391 37.85

Los_Angeles 3971883 13.15

San_Antonio 1469845 32.92

Honolulu 352769 18.29

Reference no: EM131963230

Questions Cloud

Challenging aspects of computer security : Discuss the more challenging aspects of computer security and information assurance. It is the fast-paced, ever-changing environment that security professionals
Calculate amount of money that you will have in account : Calculate the amount of money that you will have in the account by the end of 6 years?
Perform a health history on an older adult : Perform a health history on an older adult. Students who do not work in an acute setting may practice these skill with a patient, community member and neighbor.
Which style of conflict management is he most likely : The seven members of a project team are constantly arguing over goals and procedures, threatening a breakdown in the team's cohesiveness.
Read the data from the data file into three arrays : Read the data from the data file into three arrays, one to store the city names, one to store the populations, and another to store the precipitations.
Discuss different types of firms in the securities industry : Discuss the different types of firms in the securities industry; compare and contrast their roles and structure
What are the primary problems and shortcomings : In your opinion, what are the primary problems and shortcomings in the internal investigations that currently exist in police and sheriff departments?
What is your total return from this investment : If the operating expense ratio for the New Pacific Growth Fund is 1.89 percent, what is your total return from this investment?
Database of bibliographic entries : In particular, the system should help authorized users to search a database of bibliographic entries and to help users in updating the database.

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