The text files boynames.txt

Assignment Help Basic Computer Science
Reference no: EM13165044

The text files boynames.txt and girlnames.txt contain a list of the 1,000 most popular boy and girl names in the U.S. for the year 2003 as compiled by the Social Security Administration.

These are blank delimited where the most popular name is listed first, the second most popular name is listed second, and so on, to the 1,000th most popular name, which is listed last. Each line consists of the first name followed by a blank space and then the number of registered births using that name in the year. For example, the girlnames.txt file begins with

Emily 25494

Emma 22532

Madison 19986

This indicates that Emily was the most popular name with 25,494 registered namings, Emma was the second most popular with 22,532, and Madison was the third most popular with 19,986.

Write an application that reads both the boy and girl files into memory using arrays. Then, allow the user to input a name. The application should search through both arrays. If there is a match, then it should output the popularity ranking and the number of namings. The application should also indicate if there is no match.

For example, if the user enters the name "Justice", then the application should output

Justice is ranked 456 in popularity among girls with 655 girls receiving the name

Justice is ranked 401 in popularity among boys with 653 boys receiving the name

If the user enters the name "Walter", then the application should output

Walter is not ranked among the top 1,000 girl names

Walter is ranked 356 in popularity among boys with 775 boys receiving the name

Reference no: EM13165044

Questions Cloud

Postive social value-skills in learning to other effectively : Identify and describe at least two ways you use the classroom curriculum to help students develop postive social values and skills in learning to relate to others effectively.
Find a recurrence relation for the number : Find a recurrence relation for the number of bit strings that contain the string 01 . what are the initial condition , and how many bit strings of length seven contain the string 01. please explain it fully step by step to better undestand
What authoritative literature addresses comprehensive income : What authoritative literature addresses comprehensive income? What is the predecessorstandard for the topic you selected and provide the definition of comprehensive income.
Recursive function : What is the result of the following recursive function when called with mm(10)? Write out the execution trace of this call to mm(10).
The text files boynames.txt : The text files boynames.txt and girlnames.txt contain a list of the 1,000 most popular boy and girl names in the U.S. for the year 2003 as compiled by the Social Security Administration.
Chess program, enable a monitoring component : Given a chess program, enable a monitoring component to switch planning algorithms at runtime, based on the opposing player's style and response time.
Social contract theory : A principal difficulty with social contract theory is that it requires people to follow the social contact rules - to keep their agreements and not to harm others - even when many others in society refuse to abide by the social contract rules.
Bare in mind this is a program : Bare in mind this is a program with the audience being lawncare and landscaping people. So the events will generally be to know how often a client wants their lawn mowed.
Determine the density of a single gold atom : Assume that a gold atom is shaped like a sphere. An atom of gold has a radius of 156 pm and a mass of 197 amu. Determine the density of a single gold atom in units of g/cm3. (1 amu = 1.66 x 10-24g).

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Describe history of portfolio design in graphics design

Describe the history of portfolio design in the graphics design industry, and role of a graphic designer. Discuss current trends in portfolio design, and the possible future technologies for the industry.

  Describe how hazard curve is formed

What remains today... And analyzing hundreds of miles of river banks... Large earthquakes in 1450 and 900 A.D. What is meant by a Hazard Curve? Ground Motion Hazard = Rate times.

  Steps for company browse the site using this url

The static IP address of the server is 192.168.45.200. What steps do you take so that each computer in  company can browse site by using this URL?

  Formula gives the distance between two points (

formula gives the distance between two points (x1, y1) and (x2, y2) in the Cartesian plane:

  Identify people to interview to learn new training activity

Draft a project scope statement for the TIMS system and describe the constraints. She said be specific. Need to identify the people want to interview to learn more about the new training activity, and prepare a list of the questions I will ask.

  State turing machine m that calculates function

State a Turing Machine M that computes the function f: {a, b}* → N, where: f(x) = the unary encoding of max(#a(x), #b(x)).

  Basic forms of conducting international business

Discuss the basic forms of conducting international business, and basic international business strategies.

  Cloud provider secure large amount of capital

Few organizations tend to prefer operating expense models. whether Cloud providers will continue to secure large amount of capital....or will equity firms stop their funding?

  How open-source software products-successful growth strategy

Open-source software products like Linux, be successful growth strategy in "brutally competitive marketplace" in which it operates? Why or why not?

  Buy special equipment to prepare high-quality publications

buy special equipment to prepare high-quality publications itself or lease the equipment from another company. Suppose that leasing the equipment costs $240 per day. If you decide to purchase the equipment, the initial investment is 6,800, and operat..

  Study impact of global environmental policy

Consider how neighboring countries are affected, also emergent issues like new arctic shipping routes, or the international interest in Africa's natural resources. Study impact of global environmental policy associated with these issues.

  Illsutrate how bound seem realistic

Sufficient to assure with 90% confidence that the learned perceptron will have true error of at most 5%. Does this bound seem realistic?

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