Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The question regarding this problem is a little different then what the solution for the book is. As the second picture states instead of producing
The question regarding this problem is a little different then what the solution for the book is. As the second picture states instead of producing a name with the number for each decade I have to be able to allow the user to plug in a name and a year and my code report back a number. He is also providing us a separate file that the code will pull from to get this info. The textbook name is building java programs 4th edition by Stuart Reyes and Marty step.
4. Write a program that reads a file containing data about the changing popularity of various baby names over time and displays the data about a particular name. Each line of the file stores a name followed by integers representing the name's popularity in each decade: 1900, 1910, 1920, and so on. The rankings range from 1 (most popular) to 1000 (least popular), or O for a name that was less popular than the 1000th name. The following lines are a sample of the file format: sally 0 0 0 0 000000 886 Sam 58 69 99 131 168 236 278 380 467 408 466 samantha 0 0 00 0 0 272 107 26 5 7 Samir 0 0 0 0 0 0 0 0 920 0 798 Your program should prompt the user for a name and search the file for that name: This program allows you to search through the data from the Social security Administration to see how popular a particular name has been since 1900. Name? Sam If the name is found, the program should display data about the name on the screen: Statistics on name "Sam 1900: 58 1910: 69Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started