Write a program to help new parents find a name for their baby. The file BabyNames.dat contains a list of the most popul

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program to help new parents find a name for their baby. The file BabyNames.dat contains a list of the most popul

Post by answerhappygod »

Write a program to help new parents find a name for their baby.The file BabyNames.dat contains a list of the most popular namesfor boys and girls, ranked according to their popularity. The usershould be able to choose whether to look for boys’ names or girls’names and to specify which letter of the alphabet the names shouldbegin with. E.g. I may want to look for girls’ names starting withan ‘E’. Your program should copy the names that satisfy the user’scriteria (girls’ names starting with an ‘E’ in my example) toanother file and include the ranking allocated to the name. E.g. ifBabyNames.dat contains the following data showing that James is themost popular boys’ name and Ellen the most popular girls’ name,with Michael and Nazeera in the 10th place: 1 James Ellen 2 PeterEleanor 3 Rodger Mary 4 John Elise 5 Mpho Anne 6 Molefe Ella 7Zaheer Petunia 8 Charles Eugenie 9 Tabang Charlotte 10 MichaelNazeera The output file should look as follows, showing all thenames starting with an ‘E’ and their rank: 1 Ellen 2 Eleanor 4Elise 6 Ella 8 Eugenie NB: First plan your program on paper (usingyour computational thinking to do so). You have to submit your planfor your program as well as the actual program code, input andoutput. Planning your program can take the form of a flowchart,pseudocode, or notes to guide you in the development of theprogram.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply