This question's due date has already passed. You may post a tutorial, but there's no guarantee that the original asker will purchase the tutorial. But other people might!

Question

$50.00 address book

  • From Computer-Science: General-CS
  • Closed, but you can still post tutorials
  • Due on Oct. 19, 2009
  • Asked on Oct. 16, 2009 at 09:55:22AM
Asked by :
carmmanrique
carmmanrique
Rating :No Rating
Questions Asked: 5
Tutorials Posted: 0
 
 
Q:

·         Create a non-GUI-based Java application that stores mailing addresses and charitable donations for individual people.  The application should display text that requests the user enter a name, street address with city, state and ZIP code, the number of donations this year, and the amount of the donation.  The application should print out the individual name and address along with a total of donations for the year.  The application should display the dollar symbol ($) to the left of the yearly donation amount and format the yearly donation amount to display currency.

 

Part 2

 

·         Modify the Address Book application so it continues to request individual information until the user enters stop as the individual’s name.  The loop should be sentinel controlled, so using a break to end the loop is not allowed.   In addition, program the application to check that the donation amount and number of donations are positive numbers.  If either the donation amount or the number of donations is not a positive value, the application should prompt the user to enter a positive amount.

 

Available Tutorials to this Question
 
$20.00
Solution - tested it and works perfectly. have attached code and screenshot.
  • This tutorial was purchased 2 times and rated No Rating by students like you.
  • Posted on Oct 16, 2009 at 3:09:59PM
Posted by :
santhanamk
santhanamk
Rating (12):A+
Questions Asked: 0
Tutorials Posted: 112,
Earned: $87.95
 
A:
Preview: ... de, and a screenshot which s ...

The full tutorial is about 28 words long plus attachments.

attachmentlogo

Attachments:
AddressBook.java (3K) (Preview)
ScreenShotJava.doc (68K)
 
$19.00
Java: Address AddressBook(main()) classes, Vector<Address>, NetBeans folder, UseNotes, ScreenShot
  • This tutorial hasn't been purchased yet.
  • Posted on Oct. 17, 2009 at 12:45:27AM
Posted by :
modulo51
 
A:
Preview: ... / Number of donations must be non-negative.  Zero is acceptable:     static int inputNumberDonations() {         int num;         while (true) {             System.out.print("Enter number of donations this year (>=0): ");             try {                 num = Integer.parseInt(keyboard.nextLine());                 if (num >= 0) {                     return num;                 } else {                     System.out.println("Invalid, you must input a positive integer (>=0).\n");                 }             } catch (Exception e) {                 System.out.println(e.toString());                 System.out.println(                         "Invalid input, you must enter a postitive integer (>=0).\n");             }         }     }     // donation amount must be non-negative, Zero is acceptable:     static double inputDonationAmount() {         double amt;         while (true) {             System.out.print("Enter amount of donations this year (>=0), omit $: ");             try {                 amt = Double.parseDouble(keyboard.nextLine());                 if (amt >= 0) {                     return amt;                 } else {                     System.out.println("Invalid, you must input a positive integer (>=0), " +     ...

The full tutorial is about 608 words long plus attachments.

attachmentlogo

Attachments:
AddressBook.java (4K) (Preview)
AddressBookUseNotes.txt (2K) (Preview)
AddressOutput.jpg (84K) (Preview)
AddressBookZipped.zip (79K) 

 AddressBookZipped/AddressBook/build.xml
 AddressBookZipped/AddressBook/build/classes/.netbeans_automatic_build
 AddressBookZipped/AddressBook/build/classes/Address.class
 AddressBookZipped/AddressBook/build/classes/AddressBook.class
 AddressBookZipped/AddressBook/build/classes/AddressBookAssignment.txt
 AddressBookZipped/AddressBook/dist/AddressBook.jar
 AddressBookZipped/AddressBook/dist/README.TXT
 AddressBookZipped/AddressBook/manifest.mf
 AddressBookZipped/AddressBook/nbproject/build-impl.xml
 AddressBookZipped/AddressBook/nbproject/genfiles.properties
 AddressBookZipped/AddressBook/nbproject/private/private.properties
 AddressBookZipped/AddressBook/nbproject/private/private.xml
 AddressBookZipped/AddressBook/nbproject/project.properties
 AddressBookZipped/AddressBook/nbproject/project.xml
 AddressBookZipped/AddressBook/src/Address.java
 AddressBookZipped/AddressBook/src/AddressBook.java
 AddressBookZipped/AddressBookAssignment.txt
 AddressBookZipped/AddressBookUseNotes.txt
 AddressBookZipped/AddressOutput.html
 AddressBookZipped/AddressOutput.jpg
 AddressBookZipped/AddressOutput.txt
 ]

 
$20.00
Java source code for Address Book Part I and Part II
  • This tutorial was purchased 3 times and rated A- by students like you.
  • Posted on Oct. 17, 2009 at 10:30:12AM
Posted by :
codeexperts
 
A:
Preview: ... he Name: ");   name=s.next();   System.out.print("\n Enter the street name: ");   street=s.next();   System.out.print("\n Enter the city name: ");   city=s.next();   System.out.print("\n Enter the state name: ");   state=s.next();   System.out.print("\n Enter the zip code: ");   zipcode=s.next();      do   {     System.out.print("\n Enter total no. of ...

The full tutorial is about 176 words long plus attachments.

attachmentlogo

Attachments:
Part I.zip (2K) 

 Part I/AddressBook.class
 Part I/AddressBook.java
 Part I/AddressBookPart1.class
 Part I/AddressBookPart1.java
 ]

Part II.zip (3K) 

 Part II/AddressBook.class
 Part II/AddressBook.java
 Part II/AddressBookPart2.class
 Part II/AddressBookPart2.java
 ]