Results 1 to 2 of 2
  1. #1
    Louise1875 is offline Member
    Join Date
    May 2008
    Rep Power

    Unhappy Completing A Program..

    Hi all,

    I'm new to Java and wondering if anyone can give me any pointers into this program I'm trying to complete.

    Its using if..else structures.

    if (the current bid is less than 10)
    increase the bid by 0.10
    if (the current bid is at least 10 but less than 100)
    increase the bid by 0.50
    if (the current bid is at least 100 but less than 1000)
    increase the bid by 1.00
    increase the bid by 10.00

    <TITLE>Bid Increases</TITLE>
    <SCRIPT LANGUAGE = "JavaScript">

    var currentPrice;
    var bidIncrement;
    var newPrice;

    currentPrice = window.prompt('Please enter the current bid price', '');

    document.write ('The new bid is ' + newPrice);


    I really cannot work out how to complete the program.

    Any help appreciated!!

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Cebu City, Philippines
    Rep Power

Similar Threads

  1. Executing a program within a program
    By gibsonrocker800 in forum New To Java
    Replies: 5
    Last Post: 05-12-2008, 08:24 AM
  2. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  3. cannot run the program
    By amiey in forum New To Java
    Replies: 1
    Last Post: 11-20-2007, 04:13 AM
  4. Replies: 0
    Last Post: 10-04-2007, 09:33 PM
  5. Why does this program not end?
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 07:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts