Write a program that reads and produces two files separating

Assignment Help Computer Engineering
Reference no: EM132211418

Question :

Write a program that reads in BabyNames.txt and produces two files, boynames.txt and girlnames.txt, separating the data for the boys and the girls, and listing them in alphabetical order.

I added the babynames.txt to my package with my BabyNames class and i am having issues with that as well! please help.

I need to have scanner that scans each line, and use imports of jave.io.File, java.io. FileNotFoundException, java.io.PrintWriter,and of course java.util.Scanner. Also need to use a Array.sort for alphabetizing. Thanks

1 Michael 65,275 Jessica 46,470
2 Christopher 52,331 Ashley 45,553
3 Matthew 44,794 Brittany 36,534
4 Joshua 43,216 Amanda 34,405
5 Daniel 33,809 Samantha 25,865
6 David 33,739 Sarah 25,810
7 Andrew 33,653 Stephanie 24,859
8 James 32,344 Jennifer 22,219
9 Justin 30,635 Elizabeth 20,742
10 Joseph 30,124 Lauren 20,499
11 Ryan 29,242 Megan 20,256
12 John 29,066 Emily 19,361
13 Robert 28,865 Nicole 17,950
14 Nicholas 27,899 Kayla 17,536
15 Anthony 25,074 Amber 15,862
16 William 24,887 Rachel 15,704
17 Jonathan 24,064 Courtney 15,378
18 Kyle 22,698 Danielle 14,330
19 Brandon 22,155 Heather 14,217
20 Jacob 22,005 Melissa 13,997
21 Tyler 20,631 Rebecca 13,670
22 Zachary 20,424 Michelle 13,418
23 Kevin 20,403 Tiffany 13,157
24 Eric 19,412 Chelsea 12,782
25 Steven 18,753 Christina 11,925
26 Thomas 18,214 Katherine 11,618
27 Brian 16,919 Alyssa 11,262
28 Alexander 16,183 Jasmine 11,033
29 Jordan 16,131 Laura 10,908
30 Timothy 15,685 Hannah 10,274
31 Cody 15,392 Kimberly 10,193
32 Adam 14,708 Kelsey 9,494
33 Benjamin 14,619 Victoria 9,104
34 Aaron 14,550 Sara 8,973
35 Richard 13,574 Mary 8,665
36 Patrick 12,373 Erica 8,604
37 Sean 12,014 Alexandra 8,507
38 Charles 11,991 Amy 8,457
39 Stephen 11,940 Crystal 8,218
40 Jeremy 11,685 Andrea 8,211
41 Jose 11,508 Kelly 8,134
42 Travis 11,454 Kristen 8,073
43 Jeffrey 10,979 Erin 7,987
44 Nathan 10,934 Brittney 7,427
45 Samuel 10,883 Anna 7,290
46 Jason 10,680 Taylor 7,255
47 Mark 10,680 Maria 7,181
48 Jesse 8,980 Allison 7,131
49 Paul 8,579 Cassandra 7,052
50 Dustin 8,455 Caitlin 7,026
51 Gregory 8,377 Lindsey 6,781
52 Kenneth 8,258 Angela 6,664
53 Scott 8,083 Katie 6,513
54 Derek 8,075 Alicia 6,510
55 Austin 7,909 Jamie 6,509
56 Corey 7,690 Vanessa 6,405
57 Bryan 7,436 Kathryn 6,350
58 Ethan 6,988 Morgan 6,047
59 Alex 6,941 Jordan 5,955
60 Christian 6,776 Whitney 5,904
61 Juan 6,737 Brianna 5,678
62 Cameron 6,663 Christine 5,676
63 Jared 6,639 Natalie 5,633
64 Taylor 6,574 Lisa 5,344
65 Bradley 6,431 Kristin 5,300
66 Luis 5,788 Alexis 5,256
67 Cory 5,763 Jacqueline 5,237
68 Edward 5,741 Shannon 5,185
69 Shawn 5,719 Lindsay 5,037
70 Ian 5,460 Brooke 4,988
71 Evan 5,307 Catherine 4,893
72 Marcus 5,296 Olivia 4,623
73 Shane 5,273 April 4,570
74 Peter 5,215 Erika 4,566
75 Carlos 5,207 Katelyn 4,486
76 Trevor 5,140 Monica 4,452
77 Antonio 4,864 Kristina 4,389
78 Vincent 4,798 Kaitlyn 4,313
79 George 4,564 Paige 4,112
80 Keith 4,481 Molly 3,964
81 Phillip 4,453 Jenna 3,957
82 Victor 4,441 Leah 3,924
83 Dylan 4,414 Julia 3,909
84 Brett 4,392 Bianca 3,827
85 Chad 4,349 Tara 3,821
86 Nathaniel 4,342 Melanie 3,812
87 Donald 4,177 Marissa 3,806
88 Caleb 4,153 Cynthia 3,794
89 Casey 4,130 Holly 3,771
90 Jesus 4,127 Abigail 3,718
91 Blake 4,101 Meghan 3,692
92 Raymond 4,061 Kathleen 3,669
93 Mitchell 4,019 Julie 3,655
94 Adrian 3,999 Ariel 3,605
95 Joel 3,998 Alexandria 3,594
96 Erik 3,950 Veronica 3,587
97 Ronald 3,900 Patricia 3,578
98 Devin 3,862 Diana 3,544
99 Garrett 3,756 Gabrielle 3,541
100 Gabriel 3,694 Shelby 3,517

Reference no: EM132211418

Questions Cloud

A program to read a file containing an encrypted message : Write a program to read a file containing an encrypted message, which must be decoded and printed on the screen.
Compute the revised annual depreciation : On January 1, 2020, the Martinez Company ledger shows Equipment $31,000. Compute the revised annual depreciation
Write a program that reads three edges for a triangle : Write a program that reads three edges for a triangle and computes the perimeter if the input is valid. Otherwise, display that the input is invalid.
Write a program and store it in a file : Write a program, and store it in a file called String Funtions.xlsm, that does the following: It asks the user for a word with at least 10 characters and stores
Write a program that reads and produces two files separating : Write a program that reads and produces two files separating the data for the boys and the girls, and listing them in alphabetical order.
Write a program that store names to a vector : Write a program that store names to a vector. The program ends when "quit" is entered. The program includes a menu having these choices: getNames, sortNames.
Write a program that receives n from the user first : Write a program that receives n from the user first and create two n times n matrices (e.g., A, B). The program receives the data values of each matrix.
Compute the perimeter and the area of the triangle : Write a program that reads the lengths of the three sides of a triangle, checks whether the input is valid.
Write a program that solve mutilated checkerboard problem : Write a program that solve the mutilated checkerboard problem for a 4x4 checkerboard. The program should read in the "blocked" positions.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd