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

  Compute the transmission line utiliza

Consider that packets arrive at an internet router from 3 different other routers, each with Poisson arrivals with l = 4 per second. The packets are all transmitted on the same transmission line

  Government imposes below-equilibrium price ceiling on market

If the government imposes the same below-equilibrium price ceiling on all these markets, which of the following statements will be true?

  Did the city make the right decision to left town

Aabout 300,000 bills would have had to have been examined. Some residents left town, and the individual refunds were not that large. Did the city make the right decision?

  Explaining models in system analysis and design

In System Analysis and Design: Models are widely used in wide variety of technical occupations beyond information technology.

  Creating cut-over plan for alternate processing site

Create cut-over plan for alternate processing site based on given below. Consider LAN for small 100-person business, Pixel Inc. Business occupies one floor in an office building.

  Which library procedures issue system calls

With respect to a programmer, a system call looks the same as a call to a library procedure. Is a programmer required to identify which library procedures issue system calls? Explain your answer.

  Explaining responsibility ofconfidentiality to employer

Describe what you must do in such a situation. You know that cost to your present employer will increase if ambiguities are not resolved. Though, you also have a responsibility of confidentiality to previous employer.

  Determine integer to divide maximum number of partial sums

Now, given sequence, can you determine the integer M (L ≤ M ≤ U) which divides maximum number of partial sums of the sequence?

  Describing equivalence relation

Let X = Z × (Z {0}). Define the relation  on X by (x, y)  (z, t) ↔ xt = yz for every (x, y), (z, t) ∈ X. Show that this is an equivalence relation on X.

  Differences and similarities of the business models

Recognize differences and similarities of the business models, taking into account the following factors: Who is the target audience for this Web site.

  Classify occurrences as an incident or disaster

Classify each of the following occurrences as an incident or disaster. If an occurrence is a disaster, determine whether or not business continuity plans would be called into play.

  Distinguish object frameworks-components-system installation

Distinguish object frameworks and components in terms of ease of modification before system installation, ease of alteration after system installation, and overall cost savings from code reuse.

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