Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Your program should give an introduction and then prompt the user for a first na

ID: 3536732 • Letter: Y

Question

Your program should give an introduction and then prompt the user for a first name. It should then read the name rank data file searching for that name, case-insensitively (that is, you should find the name regardless of the capitalization the user uses when typing it). If the name is found in the file, your program should print a line of statistics about that name's popularity in each decade, the name%u2019s meaning and display information about the name graphically.
----------------------------------------------------------------------------------------------------------------------------------------------------------- Please help, I've been working for days trying to get get my code to compile or run, and have had little success.
You will need the files names.txt, meanings.txt, names2.txt, DrawingPanel.java these can be downloaded here under Homework 6 (Baby Names): http://www.cs.washington.edu/education/courses/cse142/13sp/homework.shtml
Specifications about the program can be found here: http://www.cs.washington.edu/education/courses/cse142/13sp/homework/6/spec.pdf
------------------------------------------------------------------------------------------------------------------------------------------------------------
Please post a link to the finished code (that compiles and runs) for full five star rating!
Thank you so much! Your program should give an introduction and then prompt the user for a first name. It should then read the name rank data file searching for that name, case-insensitively (that is, you should find the name regardless of the capitalization the user uses when typing it). If the name is found in the file, your program should print a line of statistics about that name's popularity in each decade, the name%u2019s meaning and display information about the name graphically.
----------------------------------------------------------------------------------------------------------------------------------------------------------- Please help, I've been working for days trying to get get my code to compile or run, and have had little success.
You will need the files names.txt, meanings.txt, names2.txt, DrawingPanel.java these can be downloaded here under Homework 6 (Baby Names): http://www.cs.washington.edu/education/courses/cse142/13sp/homework.shtml
Specifications about the program can be found here: http://www.cs.washington.edu/education/courses/cse142/13sp/homework/6/spec.pdf
------------------------------------------------------------------------------------------------------------------------------------------------------------
Please post a link to the finished code (that compiles and runs) for full five star rating!
Thank you so much!

Explanation / Answer

please rate - thanks import java.io.*; import java.util.*; public class RegesP423Num4BabyNames { public static void main(String[] args) throws IOException { String name,input; Scanner in = new Scanner(new File("names.txt")); Scanner in2 = new Scanner(new File("meanings.txt")); name=getName(); getData(name,in,in2); } public static String getName() {System.out.println("This program allows you to search through the"); System.out.println("data from the Social Security Administration"); System.out.println("to see how popular a particular name has been"); System.out.println("since 1890."); Scanner in=new Scanner(System.in); System.out.print("Name: "); String name=in.nextLine(); return name; } public static void getData(String name, Scanner in,Scanner in2) {String input; while (in.hasNextLine()) {input=in.next(); if(input.equalsIgnoreCase(name)) {System.out.print(input); System.out.println(in.nextLine()); while (in2.hasNextLine()) {input=in2.next(); if(input.equalsIgnoreCase(name)) {System.out.print(input); System.out.println(in2.nextLine()); return; } else in2.nextLine(); } System.out.println("Meaning not found"); return; } in.nextLine(); } System.out.println(""" + name + "" not found."); } }