Programming Assignment 8: Arrays Due date: Check Syllabus and Canvas Objectives: After successfully completing this assignment, students will practice creating a complete Java program using Arrays to...

Programming Assignment 8: Arrays Due date: Check Syllabus and Canvas Objectives: After successfully completing this assignment, students will practice creating a complete Java program using Arrays to store, search, and display information. Assignment 8 - Arrays Overview Important Note: This is a capstone assignment where you will put in practice all what you have learned during this course. Therefore, extra time and care should be placed when completing this assignment. I suggest that before you start, read the problem several times and create a flow chart with your planned program's logic. This will facilitate your work and help you avoid logic problems later. You are asked to create a small Java program to assist families in selecting a name for their new born. Before you start, in the Assignment 8 section of Canvas, locate newbornNames.txt. It contains a text file with a list of the 400 most popular names given in the United States from the year 2000 to 2009 Place the file in your program’s folder. You will be using it. In your Java driver's class: • Create an array called “babyNames” and store all names from the newbornNames.txt file • Create a text menu allowing users to: 1. Enter a name; the application must display a message indicating if the name is among the most popular (found on array) 2. Option to suggest a name; program must suggest/display a name to the user by randomly selecting one from the array 3. Option to display the first 10 names starting with a specific letter from the array (e.g. the first 10 names starting with the letter R) • After a user either enters a name from (1) in the menu or is suggested a name from (2), the program must ask if the name is acceptable for the newborn or not 1. If the name is not acceptable, user must be given the option to exit the program or repeat the procedure. 2. If the name is acceptable, program must ask the user to enter the newborn’s last name and expected date of birth. 3. Then, the program must instantiate an object of the class called NewBorn using its constructor with the accepted name for the newborn, last name, and expected date of birth. 4. Finally, program must display the "state" of the NewBorn object on the screen Submission Instructions: • Add all necessary comments including the header comment for each submitted file • Paste the test console output after running the program FOR SEVERAL TESTS as a comment at the bottom of your source code in the driver/main class • Correctly name your assignment file, classes, methods, and variables • Submit all your source code (.java) and file(s) to Canva’s corresponding assignment folder o Since your assignment includes more than one file, you must either submit each file individually, or compress them in a single .zip file with the name: LastName_FirstName_A8.zip • Test all files to make sure they work as intended • Check the Assignments’ Grading Rubric for details on how your program will be graded
Apr 19, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here