-
January 21st, 2010, 01:49 PM #1Junior Member
- Join Date
- Jan 2010
- Posts
- 1
Javascript newbie! please help...
Hi I am VERY new to java script and I am totally stuck try to get a program together,its for a holiday company, the task I have been set is as follows:
complete the coding according to these specifications
if the holiday maker is under 5 the user should be informed the holiday is free
if the holiday maker is aged 5 or over, but not over 15 the user should be told the price of the holiday in pounds
if the holiday maker is over 15, the user should be told the price of the holiday in pounds - this will be the advertised price.
the code I have is :
<HTML>
<HEAD>
<TITLE>TMA 02 Q4(iii)</TITLE>
<SCRIPT LANGUAGE = "JAVASCRIPT">
// A price calculation program for Mermaid Holidays
var initialPrice; // Advertised price of the holiday in pounds
var age; // Age in years of the holidaymaker
initialPrice = window.prompt('Please enter the advertised price of the holiday in pounds', '');
initialPrice = parseFloat(initialPrice);
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
Can anyone please help me to complete it and make sense of it all?
Thanks
K
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
javascript
By faythe in forum Technical SupportReplies: 0Last Post: April 10th, 2009, 02:35 PM -
Help with Javascript
By me4u2nv in forum Webmastering and ProgrammingReplies: 0Last Post: January 22nd, 2009, 07:15 PM -
Javascript or not?
By reiss in forum Webmastering and ProgrammingReplies: 5Last Post: July 2nd, 2005, 09:22 AM -
Javascript Help
By tenor_david in forum Webmastering and ProgrammingReplies: 1Last Post: October 31st, 2002, 01:52 PM -
Javascript help
By raven7647 in forum Webmastering and ProgrammingReplies: 2Last Post: August 6th, 2002, 08:41 PM



LinkBack URL
About LinkBacks



Reply With Quote

so it doesn't count:I can be a bigot as a minister, but as a politician I'm a totally different guy.
I was wearing my other hat