Question
Could someone help me with a part of this assignment? I'm not sure how to do the 3 bolded parts in the assignment and would
Could someone help me with a part of this assignment? I'm not sure how to do the 3 bolded parts in the assignment and would like someone to explain it too me and what methods I should be using.
ASSIGNMENT:
For this programming assignment, you will be writing software in support of a data base search to determine if a particular baby name was popular in a particular year. If the baby name is in the data base, you are to display the year, name, and number of babies given that name in that year. If the baby name is not in the data base, you are to display the year, name, and a short message indicating the name was not found in that year.
Program Requirements:
Use JOptionPane for ALL user input and output
Must validate ALL user input
Must include ALL necessary exception handling
ALL methods must do only one thing
Must follow ALL programming style guidelines
Program Description:
Ask the user for the baby name, the gender (some names apply to both genders) and the year to search, or to exit the program (be efficient in the use of JOptionPanes - users do not like to see too many different boxes)
Build the file name to search (the file name is yobxxx.txt, where xxx is the four-digit year) (yob means year of birth) <-
Open the file <-
Search the file for the name and gender requested <-
Display the results to the user (year, name, gender, number of babies with name), or a not found message containing the name and year searched
Close the file
Ask the user to search another name, gender, year or to quit
Step 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