Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: need some hep with this program, i am stumped, would appreciate any help or input thanks so much

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default need some hep with this program, i am stumped, would appreciate any help or input thanks so much

    Consider a CheckingAccount class, which has the following fields: acctNo, name, balance, status, which represents an active or inactive account, minimum balance, and service charge. If the balance of a checking account falls below the minimum balance, it becomes inactive. No withdrawals may be made until balance is raised above the minimum balance, at which time the account becomes active again. Create appropriate consturctors, accessors, and mutators for the CheckingAccount class. The class should also include the following methods:
    • withdraw: a method that determines whether the account is inactive before a withdraw is made. (No withdraw will be allowed if the account is not active.) A withdrawal is then made.

    • deposit: a method that determines whether the account is inactive before a deposit is made. If the account is inactive and the deposit brings the balance over the minimum balance, the account becomes active gain. A deposit is then made.

    • getMonthlyStatement: a method that prints the account information at the end of each month. If the balance in the account were less than the minimum balance requirement, service fee would be charged.
    Use notepad or another text editor to create a text file named deposit.txt. The file should contain the following numbers, one per line:
    100.00
    124.00
    78.92
    37.45
    Next, create a text file named withdraw.txt. The file should contain the following numbers, one per line:
    29.23
    78.12
    100.00
    48.78
    23.87
    50.2
    The numbers in the deposit.txt are the amount of deposits that were made to a checking account during the month. The numbers in the withdraw.txt are the amount of withdraws that were made to a checking account during the month. Write a program that creates a CheckingAccount object, with starting balance 100. The program should read the values from the deposit.txt file and add them to the account balance. The program will also read the values from the withdraw.txt file and subtract them from the account balance. The program then displays the monthly statement of the account.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: need some hep with this program, i am stumped, would appreciate any help or input thanks so much

    Start by following the very explicit instructions. Come back when you have code that you need help with.

Similar Threads

  1. i need hep with my java program
    By daryl1201 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 24th, 2013, 09:02 AM
  2. I am stumped.
    By Subvoltic in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 23rd, 2012, 06:13 PM
  3. help im stumped :(
    By gonfreecks in forum What's Wrong With My Code?
    Replies: 6
    Last Post: November 9th, 2010, 12:51 PM
  4. Help so stumped....
    By Macgrubber in forum Loops & Control Statements
    Replies: 8
    Last Post: October 28th, 2010, 03:53 PM
  5. [SOLVED] allow a new input, dicarding the last mismatch input without terminating the program
    By voltaire in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 9th, 2010, 04:44 AM