Can anyone give me a few pointers on this Java code I'm supposed to write. I know it's a mess but i've only been learning for a few weeks from a book, and not finding it very easy.
........................................
For orders worth less than £25 the delivery charge is £3.00.
• Orders worth at least £25 but less than £100 are delivered free.
• Orders worth £100 or more are delivered free and in addition the
customer receives a free gift.
........................................
<HTML>
<HEAD>
<TITLE> Delivery Charges
</TITLE>
<script LANGUAGE = “JavaScript”>
// A delivery charge program
var orderValue; // How much the order is worth
orderValue = window.prompt('How much is the order worth in Pounds Sterling?','');
If (order <= £25)
{
document.write (‘ Your order value is £ ' + £3)
}
else
{
If (order >= £25) && (order <£100)
{
document.write (‘your order value is £’ ’)
}
else
{
If (order >£100)
{
Document.write (‘congratulations, your order has earned you a free gift’)
}
document.write('<BR>');
document.write('Thank you for shopping with us.');
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
........................................
Many thanks in advance for your help.
Mihangel
(Moderator edit: Revised Topic Title and added Topic Description. jgweed)