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

  Differentiate matrix and blosum matrix

Write down the difference between matrix and a Blosum60 Blosum20 matrix? If one uses one and when other? What is meant by Clustal and summarize the operation.

  Perceptions of product create its personality

Perceptions of product create its personality. Bottom, round the back. And even there they are ugly. Is that essential? Could they not, in some small degree, give pleasure?

  Explaining regular language and context-free language

Let L1 be a regular language and L2 be a context-free language, both defined over the same alphabet Σ.

  Creating a hashing function

Suppose you are creating a hashing function to use for storing string data in hashtable. One Candidate hasing function would be to sum the ASCII or Unicode values for each character, and that result as the hashcode.

  In-house development and packaged solution for r-way system

Should R/Way's new system be based on file-server or client/server architecture? Why? What would be the pros and cons of selecting in-house development versus a packaged solution for the R/Way system?

  Understanding of storage classes and scope rules

It amounts to a "divide and conquer" approach to problem solving. This needs sound understanding of storage classes and scope rules. Response and or thoughts?

  Describing problems with information systems management

Describe at least three issues/problems with Information Systems Management (ISM) in a named organization.

  Every program in a system contains

Assume that every program in a system contains 40,000 machine code instructions. To execute an instruction it takes 4 machine cycles. Assume that a computer constantly keeps 150 active processes in execution and each active process needs to be exe..

  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.

  Question about compiler theory

Determine some common compilers available? Based on regular expressions, can all input be validated if it is correct, or not, based on compilation?

  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.

  Decision to utilize components influence requirements

Must RMO consider using purchased components in the new CSS? If so, When, must it begin looking for components? How will decision to utilize components influence requirements, design and implementation phases?

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