Help With JAVA problem........URGENT


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help With JAVA problem........URGENT

  1. #1
    jason trofimczuk Guest

    Help With JAVA problem........URGENT


    Does anyone one have an idea how to tackle the following problem.....any solutions
    to this assignment would be helpful:-

    Background

    A local telephone company is developing coin operated boxes for public use
    and will include in each installation a small VDU screen which will be used
    to inform users how to operate the telephone. It will respond to coin entry
    by informing the user of the time they have purchased for the call. This
    time will operate on a count down basis to indicate the time remaining for
    the call and will disconnect the call when the time has expired.

    Charges

    Telephone calls are to be charged as follows:
    Local calls 10p for 20 seconds
    Trunk calls 10p for 10 seconds
    International calls 10p for 4 seconds

    Requirement

    As an employee of the company you are asked to design and develop a demonstration
    Pascal program which could later be used for this purpose. This demonstration
    program will operate only from keyboard entry and will only indicate its
    actions on the screen.

    Specifications

    The program, when executed, shall remain in a wait state until RETURN is
    pressed. An appropriate message should be displayed whilst the machine is
    waiting.

    When return is pressed the program will request an entry of the type of call
    required indicating; Local, Trunk or International. This is to be entered
    as ‘L’,’T’ or ‘I’. This entry must be checked by the program for correctness.

    When the user has indicated the type of call required the program should
    respond with a request for coin entry (e.g. Insert Coins Now).

    There must, at this time be a screen display which indicates the charges
    for the type of call requested, such as:
    You have requested a local call.
    The charge is 10p for 20 seconds.
    This will enable users to determine what coins to enter to purchase the time
    they are likely to require.

    Coins shall be entered by typing in the value of the coins. Only the following
    coins shall be valid entries:
    5, 10, 20, 50, 100
    Each entry shall be indicated on screen with the cumulative total. Coin insertions
    shall be terminated by entry of the value zero (0). These entries must be
    checked for correctness (validated).

    On entry of the zero value, the screen shall clear and a new screen shall
    appear which requests the key to be dialled. This number shall be entered
    as a string. When the RETURN key is pressed the entry of the number is terminated
    and the screen is cleared and the number that has been dialled is displayed
    together with the message:

    “Now Dialling”

    After a short pause the message shall be changed to:

    “Connected - Please start your conversation”

    Immediately following the ‘Connected..’ message, a display of the time remaining
    must appear on the bottom right of the screen. This must be a count down
    of the remaining time. (For this program it does not need to be precise but
    only approximate in minutes and or seconds).

    When the countdown time is zero a final message must appear informing users
    that their time has elapsed.

    The program must be adequately annotated throughout and a structure chart
    test plan MUST be provided. You may write this program as an application,
    an applet or using Swing.



  2. #2
    MarkN Guest

    Re: Help With JAVA problem........URGENT


    > You may write this program as an application, an applet or using Swing.


    Uh, let the person who wrote the specs know that Swing can be used in an
    application or applet. And the only real difference between an app and an
    applet is how it is run.

    To answer your question - First learn Java. If you are not being taught
    Java in your class before being given the assignment then dump the class.

    Mark



  3. #3
    Guest

    Re: Help With JAVA problem........URGENT

    And to think that I was just telling one of my buddies how I miss school...
    If you have specific questions, great...we're willing to help you out. But
    we are not going to do your homework b/c we don't want to pick up your slack
    at your first job b/c you can't program worth a sh*t.



    "jason trofimczuk" <trofijd@roehampton.ac.uk> wrote in message
    news:3bf59950$1@147.208.176.211...
    >
    > Does anyone one have an idea how to tackle the following problem.....any

    solutions
    > to this assignment would be helpful:-
    >
    > Background
    >
    > A local telephone company is developing coin operated boxes for public use
    > and will include in each installation a small VDU screen which will be

    used
    > to inform users how to operate the telephone. It will respond to coin

    entry
    > by informing the user of the time they have purchased for the call. This
    > time will operate on a count down basis to indicate the time remaining for
    > the call and will disconnect the call when the time has expired.
    >
    > Charges
    >
    > Telephone calls are to be charged as follows:
    > Local calls 10p for 20 seconds
    > Trunk calls 10p for 10 seconds
    > International calls 10p for 4 seconds
    >
    > Requirement
    >
    > As an employee of the company you are asked to design and develop a

    demonstration
    > Pascal program which could later be used for this purpose. This

    demonstration
    > program will operate only from keyboard entry and will only indicate its
    > actions on the screen.
    >
    > Specifications
    >
    > The program, when executed, shall remain in a wait state until RETURN is
    > pressed. An appropriate message should be displayed whilst the machine is
    > waiting.
    >
    > When return is pressed the program will request an entry of the type of

    call
    > required indicating; Local, Trunk or International. This is to be entered
    > as 'L','T' or 'I'. This entry must be checked by the program for

    correctness.
    >
    > When the user has indicated the type of call required the program should
    > respond with a request for coin entry (e.g. Insert Coins Now).
    >
    > There must, at this time be a screen display which indicates the charges
    > for the type of call requested, such as:
    > You have requested a local call.
    > The charge is 10p for 20 seconds.
    > This will enable users to determine what coins to enter to purchase the

    time
    > they are likely to require.
    >
    > Coins shall be entered by typing in the value of the coins. Only the

    following
    > coins shall be valid entries:
    > 5, 10, 20, 50, 100
    > Each entry shall be indicated on screen with the cumulative total. Coin

    insertions
    > shall be terminated by entry of the value zero (0). These entries must be
    > checked for correctness (validated).
    >
    > On entry of the zero value, the screen shall clear and a new screen shall
    > appear which requests the key to be dialled. This number shall be entered
    > as a string. When the RETURN key is pressed the entry of the number is

    terminated
    > and the screen is cleared and the number that has been dialled is

    displayed
    > together with the message:
    >
    > "Now Dialling"
    >
    > After a short pause the message shall be changed to:
    >
    > "Connected - Please start your conversation"
    >
    > Immediately following the 'Connected..' message, a display of the time

    remaining
    > must appear on the bottom right of the screen. This must be a count down
    > of the remaining time. (For this program it does not need to be precise

    but
    > only approximate in minutes and or seconds).
    >
    > When the countdown time is zero a final message must appear informing

    users
    > that their time has elapsed.
    >
    > The program must be adequately annotated throughout and a structure chart
    > test plan MUST be provided. You may write this program as an application,
    > an applet or using Swing.
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center