Find Jobs
Hire Freelancers

Contact List Sort

$30-250 USD

Zamknięte
Opublikowano prawie 11 lat temu

$30-250 USD

Płatne przy odbiorze
Part I. Every year about this time, graduating students begin (at least they should) to think of sending commencement invitations to their friends and loved ones. It is often difficult to keep track of the addresses, and who they have sent inventations to and/or who they need to thank for gifts. You decide that you are going to make a Java program that helps sort through this data. Your program will allow the user to sort and view the data in a variety of ways, as well as search for a particular contact. In this assignment, your program will read a data file (use BufferedReader) of names, addresses, and other information about the people on our list. The information in the file will have the following format: The first line is a single integer on a line by itself which is the number of contacts in our list. Following that, there is one line for each contact, and the line contains the following information separated by commas: first name, last name, address, whether an invitation was sent to them (true/false), whether a gift was received from them (true/false), and if a thank you note has been sent to them (true/false). For example, here is a sample line from the file: Abigail,Evans,3967 333rd Ave.,true,false,false You can download a file for testing from the following link: [login to view URL] (Disclaimer: the data in this file was created randomly using a list of common names, and the addresses are generated with random numbers. Any similarity to any person living or dead is purely coincidental.) All the data in the file will be loaded into a single ArrayList of Contact objects. Each element of the ArrayList will be a reference to a single instance of the class Contact. The Contact class then should have instance variables for the first name, last name, address, a "sent flag", a "gift received flag", and a "thanked flag." The flags can be boolean variables. Once all the data is loaded into the ArrayList, you can display the data in your GUI. The data will be displayed in a tabular format as shown in the above screenshot. This is accomplished with a JTextArea object embedded within a JScrollPane object. You must make sure that the Font for the JTextArea is a "Monospaced" font, in order to help line up the columns correctly (See the appendix and/or section 13.9 on page 889). Also, in order to line up the columns, you will need to "pad" each column with an appropriate number of spaces. I suggest you write a method with the signature: private String padTo( String s, int width ) This method will add several spaces to the end of s, enough so that it is width in length. Then it will return the new "padded" String. Note that if s is longer than width characters, the return value should be a substring of s that is width characters long. This method padTo can then be used to help with the display of the data in the JTextArea. Your program will also have several buttons for sorting/displaying the data. When the user clicks on the "First Name" button, the data will be sorted in the array by first name, and then re-displayed in the JTextArea. When the user clicks on the "Last Name" button, the data will be sorted by last name, and re-displayed in the JTextArea. When the user clicks on the "Not yet invited" button, the order of the data will not change, but only contacts who have not been sent invitations will be shown. When the user clicks on the "Need to thank" button, only contacts who the user has received gifts from but has not sent thank you notes to will be shown (again, the order will not change).
Identyfikator projektu: 4514584

Informację o projekcie

34 ofert
Zdalny projekt
Aktywny 11 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
34 freelancerzy składają oferty o średniej wysokości $82 USD dla tej pracy
Awatar Użytkownika
Hi, I am Java expert and confident to handle this project. Thanks
$54 USD w 2 dni
4,7 (402 opinii)
7,4
7,4
Awatar Użytkownika
Java Expert! Interested in doing this project.
$54 USD w 1 dzień
4,8 (441 opinii)
7,4
7,4
Awatar Użytkownika
Experienced java developer.
$105 USD w 3 dni
5,0 (81 opinii)
6,4
6,4
Awatar Użytkownika
Hi I can help you, please check your pm, thanks.
$64 USD w 2 dni
4,9 (56 opinii)
6,2
6,2
Awatar Użytkownika
Hello, I am Oracle certified professional java programmer, I can help you. thanks
$54 USD w 1 dzień
4,9 (234 opinii)
6,3
6,3
Awatar Użytkownika
Hi, I am expert at Java and can surely satisfy you. Please check your inbox,
$52 USD w 0 dzień
5,0 (91 opinii)
6,1
6,1
Awatar Użytkownika
Hello, I could help you with your project. BR
$50 USD w 3 dni
4,9 (111 opinii)
6,4
6,4
Awatar Użytkownika
I can help you.
$79 USD w 1 dzień
5,0 (77 opinii)
5,8
5,8
Awatar Użytkownika
Hello Sir, Interested in doing this project. Thanks.
$50 USD w 2 dni
5,0 (28 opinii)
5,4
5,4
Awatar Użytkownika
i have 4+ years experience in java. i can help you.
$35 USD w 0 dzień
4,9 (84 opinii)
5,4
5,4
Awatar Użytkownika
Would be my pleasure to work on this project. Kind regards, Rumen
$45 USD w 3 dni
5,0 (23 opinii)
4,6
4,6
Awatar Użytkownika
Hi, I'm a Sun Certified Java Programmer with a lot of experience in creating stand-alone applications, including GUIs, and I can create this for you quickly and professionally.
$88 USD w 2 dni
5,0 (5 opinii)
4,0
4,0
Awatar Użytkownika
ready to start it immediately
$44 USD w 3 dni
5,0 (7 opinii)
3,2
3,2
Awatar Użytkownika
Hello. I am interested in Your project.
$210 USD w 30 dni
5,0 (4 opinii)
3,3
3,3
Awatar Użytkownika
hello sir, please check your PM
$50 USD w 3 dni
4,5 (4 opinii)
3,3
3,3
Awatar Użytkownika
i can work this out for you java, JTextArea, string, pls check pmb.
$134 USD w 1 dzień
5,0 (4 opinii)
2,8
2,8
Awatar Użytkownika
I can do this ..please see my pm
$55 USD w 0 dzień
1,0 (1 opinia)
1,7
1,7
Awatar Użytkownika
Hello I have read your post and that have given me nice Understanding . So contact me for professional and efficient work. Thanks
$155 USD w 3 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
Dear Sir, Please see my private message.
$50 USD w 7 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
Hi, I have done similar assignments, look forward to starting this project for you, I am able to commit 100% to this project.
$111 USD w 4 dni
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED STATES
United States
0,0
0
Członek od maj 13, 2013

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.