Reference no: EM131270503
Programming Assignment
Overview
This assignment will give you more experience on the use of lists and files.
Part 1: Name Search
Write a program that reads the contents of the following two files into two separate lists.
- GirlNames.txt - This file contains a list of the 200 most popular names given to girls born in the United States from the year 2000 through 2009.
- BoyNames.txt - This file contains a list of the 200 most popular names given to boys born in the United States from the year 2000 through 2009.
The user should be able to enter a boy's name, a girl's name, or both, and the application will display messages indicating whether the names were among the most popular.
Here is a sample run of the program:
Enter a boy's name, or N if you do not wish to enter a boy's name: Jacob
Enter a girl's name, or N if you do not wish to enter a girl's name: Amal
Jacob is one of the most popular boy's names.
Amal is not one of the most popular boy's names.
Part 2: Population Data
The file USPopulation.txt contains the midyear population of the United States, in thousands, during the years 1950 through 1990. The first line in the file contains the population for 1950, the second line contains the population for 1951, and so forth.
Write a program that reads the file's contents into a list. The program should display the following data:
- The average annual change in population during the time period
- The year with the greatest increase in population during the time period
- The year with the smallest increase in population during the time period
Here is a sample run of the program:
The average annual change in population during the time period is 2,443.88
The year with the greatest increase in population was 1955
The year with the smallest increase in population was 1967
Waste generation from produced water
: Discuss specific process-activity that generates the waste and quantity of waste generated (worldwide and in the UAE/Abu Dhabi)
|
Why it is appropriate to provide the theoretical foundation
: Why it is appropriate to provide the theoretical foundation for your problem statement?- How does a theoretical foundation specifically link to the problem statement for the study?
|
What is the reason for this difference
: The perfectly competitive firm exhibits resource allocative efficiency (P=MC), but the single-price monopolist does not. What is the reason for this difference?
|
What are the treatments for reducing high cholesterol
: Do the benefits of lowering cholesterol outweigh the risks of taking medication? What options exist for a person to try and reduce his/her cholesterol without taking medication? How would you alleviate any fears Mr. Brown may have regarding his condi..
|
Write a program that reads the files contents into a list
: Write a program that reads the file's contents into a list. The program should display the following data: The average annual change in population during the time period.
|
Advance or impede theories or models
: How do the results of research studies advance or impede theories or models?- How do you expect that the results of your dissertation study may advance knowledge of this theory or model? Explain.
|
What are the variable costs of producing too units
: a. What are the variable costs of producing too units. b. Write out the total cost equation assuming variable costs are linear. c. What is the marginal cost of the 50th unit of output? d. What is the average total cost of the 50th unit of output?
|
Competitive firm output of a tax
: Compare the effect upon a competitive firm's output of a tax of $1 per unit upon output versus a license fee of $200 payable each year regardless of output. Please Clarify.
|
Journal entries for the cash transactions
: Costs that do not change with level of activity and Fixed up to a certain level of activity, rise and stays fixed again until another level - Journal entries for the Cash transactions
|