akosiraff

Download: Gas Supply JavaScript

Feb 12th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/gas-supply-javascript/
  3. A gas supply company wishes to calculate how much its customers owe on their gas usage.
  4. if customers gas usage is 60 litres or less, a rate of $2.00 per litre is applied. and if customers usage is more than 60 litres, a rate of $1.75 per litre is applied for the first 60, and $1.50 per litre for the remaining.
  5. a program need to be design that will prompt for customer ID and then prompt for the amount of gas Usage for that customer. from the gas usage supplied I am to calculate how much the customer owes and print as a report on the webpage.
  6. at the end of the report, I am also to print some summary data of the total number of customers and the total amount owing.
  7. Customer details below:
  8. custId 1, Gas usage is 80;
  9. custId 2, gas usage is 45;
  10. custId 3, gas usage is 90;
  11. custId 4, gas usage is 34
  12. custId 5, gas usage is 60;
  13. cusrId 6, gas usage is 120;
  14. Download: http://solutionzip.com/downloads/gas-supply-javascript/
Add Comment
Please, Sign In to add comment