Results 1 to 2 of 2
Thread: Completing A Program..
- 05-10-2008, 07:02 PM #1
Member
- Join Date
- May 2008
- Posts
- 1
- Rep Power
- 0
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
else
if (the current bid is at least £10 but less than £100)
increase the bid by £0.50
else
if (the current bid is at least £100 but less than £1000)
increase the bid by £1.00
else
increase the bid by £10.00
<HEAD>
<TITLE>Bid Increases</TITLE>
</HEAD>
<BODY>
<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);
</SCRIPT>
</BODY>
</HTML>
I really cannot work out how to complete the program.
Any help appreciated!!
- 05-11-2008, 05:24 AM #2
Similar Threads
-
Executing a program within a program
By gibsonrocker800 in forum New To JavaReplies: 5Last Post: 05-12-2008, 08:24 AM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:40 PM -
cannot run the program
By amiey in forum New To JavaReplies: 1Last Post: 11-20-2007, 04:13 AM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:33 PM -
Why does this program not end?
By trill in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:22 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks