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 4 of 4

Thread: JAVA Assignment

  1. #1
    Junior Member
    Join Date
    Jun 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JAVA Assignment

    Dears,
    please help me solving this question:
    Assignment Details:

    • Assume that you got a cheque, and you walked to the Drawer’s Bank/Branch to withdraw the amount of your cheque (as a CASH payment, not to deposit the cheque into your bank account).

    • This cheque is called a Counter Cheque in the banking industry, and the payment process is known as (Cash Payment/Withdrawal of the Cheque).

    • The Branch Teller shall receive your cheque and validates that it is a genuine cheque before accepting and stamping it, and before validating the drawer (payer balance if it is sufficient or not, then the last step is to verify the Counter Cash Balance in order to pay the amount of the cheque to the customer.

    • Now, assuming that the Payer Account has a Sufficient Balance, and the Counter Balance has a Sufficient Amount of Money to pay the cheque’s amount (5320 JOD) to you, then the system/module that you will develop is expected to do the following:
    o Validate the Cash Balance if it covers the amount of the cheque (if the balance is sufficient or not)
    o Validates the number of straps withdrawn/returned to the customer not to exceed the available balance in the Cash Box, assuming that the Cash Box has the following denominations of money:
    o *Cheque Amount = 5320 JOD

    Cash Box Cheque Amount 5320 Total
    denomination Strap size NO. of straps/bundles No. of coins No of strap returned No of Coins returned
    50 100 2 15 1 6 5300
    20 100 3 25 0 1 20
    10 100 1 30 0 0 0
    5 100 10 10 0 0 0
    1 100 1 1 0 0 0
    0.10 50 1 1 0 0 0
    0.05 50 1 1 0 0 0
    0.01 50 1 1 0 0 0
    0.05 50 1 1 0 0 0

    thanks in advanced

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: JAVA Assignment

    What have you tried so far?
    Do you have any specific questions?

    Be sure to wrap all posted code in code tags.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jun 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAVA Assignment

    i have a problem with the last portion of question "strap". how to handel this point?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: JAVA Assignment

    have a problem with the last portion of question "strap".
    Please describe what your problem is in more detail. I do not know what a "strap" is.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Behaviour of shortcut assignment and normal assignment for float
    By rakeshkr2 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 20th, 2014, 02:54 AM
  2. Replies: 8
    Last Post: February 12th, 2013, 05:45 AM
  3. assignment troubles polymorphism (guide for assignment included)
    By tdawg422 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2011, 10:01 AM
  4. Help with a java assignment?
    By rberry719 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: September 30th, 2011, 01:02 PM
  5. Replies: 1
    Last Post: February 22nd, 2010, 08:20 AM

Tags for this Thread