Total members 9946 | Gratitudes |It is currently Thu Feb 09, 2012 3:00 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: calculates the total cost with javascript
PostPosted: Mon Oct 12, 2009 6:32 am 
Offline
Newbie
User avatar

Joined: Mon Oct 12, 2009 6:20 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time

I am struggling trying to figure this out. I can't seem to comprehend it quite yet. Can anyone help me put this together? thanks in advance!

You are hired by a small grocery store. Your assignment is to create a page that asks the user for 3 pieces of information: item name, item price, and # of products. It displays to the user:

* a page heading
* an image
* a table with the following information in it:

* product name
* product price
* # of items
* total cost of the purchase

Program operation
The program asks the user for 3 pieces of information using prompts: product name, product price, and # of items purchased.

The program then calculates the total cost of the purchase. It then displays all the information it has in a web page as shown below. For this display, the user entered loaf of bread, 3, and 2.99 into 3 prompts.


Last edited by msi_333 on Mon Oct 12, 2009 10:57 am, edited 1 time in total.
edit the title


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: calculates the total cost with javascript
PostPosted: Mon Oct 12, 2009 10:59 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2103
Location: Earth
Has thanked: 39 time
Have thanks: 56 time
You can't just post your assignment without even trying ! , actually i don't understand what is your problem with javascript .

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 getting gst, pst total to diplay in my javascript form  Scripting Language  Anonymous  0
 need help with javascript  Scripting Language  triscuit  0
 total  Java  Anonymous  0
 Javascript select menu validation issue  Scripting Language  Anonymous  0
 validate age entered as selection box in javascript  JavaScript examples  msi_333  0

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team