Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/gas-supply-javascript/
- A gas supply company wishes to calculate how much its customers owe on their gas usage.
- 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.
- 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.
- 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.
- Customer details below:
- custId 1, Gas usage is 80;
- custId 2, gas usage is 45;
- custId 3, gas usage is 90;
- custId 4, gas usage is 34
- custId 5, gas usage is 60;
- cusrId 6, gas usage is 120;
- Download: http://solutionzip.com/downloads/gas-supply-javascript/
Add Comment
Please, Sign In to add comment