Enter a name the application will display messages

Assignment Help Computer Engineering
Reference no: EM132211366

Question :

Write a program that reads the contents of the two files into two separate arrays. The user should be able to enter a name the application will display messages indicating whether the names were among the most popular.

1. GirlNames.txt and BoyNames.txt contain a list of the 200 most popular names given to girls/boys born in the United States for the years 2000 through 2009.

2. Your application should use an array to hold the names.

3. The program should continue interacting with the user indefinitely unless the user chooses to quit by entering "QUIT" (should be case insensitive).

4. The user should enter a single name and the program will search the name in both lists. The user SHOULD NOT specify whether the search is for girls name or boys name. The program is responsible for finding either or both and telling the user where it found it.

5. The program should display one of the following four results (examples):

* The name 'Annabelle' was not found in either list.

* The name 'Xavier' was found in popular boy names list (line 81).

* The name 'Amanda' was found in popular girl names list (line 63).

* The name 'Jordan' was found in both lists: boy names (line 38) and girl names (line 75).

6. The search should be case insensitive, but the resulting message should always display names in properly capitalized format (the first letter uppercase all others lowercase).

7. The files should only be opened/loaded and closed once per program session (at the beginning of the program execution). During the search the files should be closed.

8. If any or both of the files are missing, display a message to the user informing which file is missing or if both files are missing and exit the program.

9. Your program should contain properly defined and used methods. For example, your program should have a method that loads a file into an array. This method should take one parameter for the file name to be loaded and return an array of Strings. Another method should take a name and an array reference and perform a search and return results to the calling method.

10. Do not upload input text files.

Reference no: EM132211366

Questions Cloud

How did hitech act law impact ehr adoption : How did HITECH ACT law impact EHR Adoption and meaningful use?
Describe macra and how quality payment program : Describe MACRA and how the quality payment program gives providers financial incentives
How does the strategic positioning differ for two companies : Adriana Alvarado has decided to purchase a laptop computer. She has narrowed the choices to two: Drantex and Confiar. Both brands have the same processing.
Describe how market economy functions : Describe how a market economy functions and the relationships of its major subdivisions or aggregates, such as the government, households, and business sectors.
Enter a name the application will display messages : The user should be able to enter a name the application will display messages indicating whether the names were among the most popular.
Calculate the fbt payable : Advise Yan's employer as to the FBT and income tax consequences of the above loan arrangement (including any deductions the employer might be entitled to)
Create new marketing plan in its acquisition of whole foods : You are the marketing firm hired by amazon to create a new marketing plan in its acquisition of whole foods.
Calculate the cost base of the property : Calculate the cost base of the property. What type of CGT event is the sale of this property? Calculate the capital gain Louisa made that's liable to capital.
What is the goal of establishing rapport with the audience : What is the goal of establishing rapport with the audience

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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