We provide two files which are boys.txt and girls.txt. These are blank-delimited files where the most popular name is listed first, the second most popular name is listed last. Each line consists of the first name, followed by a blank space, followed by the number of registered births using that name. For example, the boys.txt file begins with James 4700229 Robert 4455696 This indicates that James is the most popular name with 4700229 registered namings, Robert is the second most popular name with 4455696. Write a program that reads both boys' and girls' file into memory using arrays. Then, allow the user to input a name. The program should search through both arrays and, when where is a match, output the popularity and number of naming. The program should also indicate if there is no match. If you match the input name, you need to calculate the standard deviation of the 10 list number of registered births below this rank. Remark : If you input name is lowercase, the program can still find a matching name. You need to write the program that if you can't opening file. If you finish using the file you must to be close. When you output the standard deviation, the window must to display with 5 digits after the decimal point. The program you must input exit to stop execution. Standard deviation: u is the average of the numbers x1,x2 .,x10. O = N (x -)2

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Language C++

We provide two files which are boys.txt and girls.txt. These are blank-delimited files where
the most popular name is listed first, the second most popular name is listed last. Each line
consists of the first name, followed by a blank space, followed by the number of registered
births using that name. For example, the boys.txt file begins with
James 4700229
Robert 4455696
This indicates that James is the most popular name with 4700229 registered namings,
Robert is the second most popular name with 4455696.
Write a program that reads both boys' and girls' file into memory using arrays.
Then, allow the user to input a name. The program should search through both arrays and,
when where is a match, output the popularity and number of naming.
The program should also indicate if there is no match.
If you match the input name, you need to calculate the standard deviation of the 10 list
number of registered births below this rank.
Remark :
If you input name is lowercase, the program can still find a matching name.
You need to write the program that if you can't opening file.
If you finish using the file you must to be close.
When you output the standard deviation, the window must to display with 5 digits
after the decimal point.
The program you must input exit to stop execution.
Standard deviation: u is the average of the numbers x1,x2 ..,x10.
N
O =
(xị - µ)2
Transcribed Image Text:We provide two files which are boys.txt and girls.txt. These are blank-delimited files where the most popular name is listed first, the second most popular name is listed last. Each line consists of the first name, followed by a blank space, followed by the number of registered births using that name. For example, the boys.txt file begins with James 4700229 Robert 4455696 This indicates that James is the most popular name with 4700229 registered namings, Robert is the second most popular name with 4455696. Write a program that reads both boys' and girls' file into memory using arrays. Then, allow the user to input a name. The program should search through both arrays and, when where is a match, output the popularity and number of naming. The program should also indicate if there is no match. If you match the input name, you need to calculate the standard deviation of the 10 list number of registered births below this rank. Remark : If you input name is lowercase, the program can still find a matching name. You need to write the program that if you can't opening file. If you finish using the file you must to be close. When you output the standard deviation, the window must to display with 5 digits after the decimal point. The program you must input exit to stop execution. Standard deviation: u is the average of the numbers x1,x2 ..,x10. N O = (xị - µ)2
(If you don't want to search name, please input exit!)
Enter name: Mary
Mary is ranked 1 in popularity among girls with 3196385 namings.
Standard Deviation of the 10 list below this rank
: 2143860.35404
Mary is not ranked among the top 1000 boy names.
(If you don 't want to search name, please input exit!)
Enter name: Tyler
Tyler is ranked 81 in popularity among girls with 381738 namings.
Standard Deviation of the 10 list below this rank
: 25146.95855
Tyler is ranked 51 in popularity among boys with 592495 namings.
Standard Deviation of the 10 list below this rank
: 34732.90863
Transcribed Image Text:(If you don't want to search name, please input exit!) Enter name: Mary Mary is ranked 1 in popularity among girls with 3196385 namings. Standard Deviation of the 10 list below this rank : 2143860.35404 Mary is not ranked among the top 1000 boy names. (If you don 't want to search name, please input exit!) Enter name: Tyler Tyler is ranked 81 in popularity among girls with 381738 namings. Standard Deviation of the 10 list below this rank : 25146.95855 Tyler is ranked 51 in popularity among boys with 592495 namings. Standard Deviation of the 10 list below this rank : 34732.90863
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY