subject
Computers and Technology, 21.10.2020 16:01 TylieW

g Your second assignment, to get you familiar with PHP, is to create a form for an online calculator that will calculate how much I should budget for weekly cost of gas. Things to factor in: 1) three types of gas and price: 87 octane - 1.89/gal, 89 octane - 1.99/gal, 92 octane - 2.09/gal NOTE: gas prices should be stored in a PHP array, not hard-coded HTML 2) average commute mileage - total number of miles I commute to and from work in a week 3) car's average mpg 4) whether or not the user gets fuel 10 cent/gal discount for every $100 spent in groceries; if so, what is average the user spends per week in groceries. NOTE: using fuel perks should be optional. If the user opts to use them, allow the user to enter their weekly grocery budget. For example if the user enters $210 for groceries and selects 87 octane gas, the price per gallon should decrease from 1.89 to 1.69. This should be enough variables for you to create an HTML form for a user to enter these values and do a calculation. What you should end up with is a final dollar amount that the user should budget per week on gas for his/her car. It is up to you to develop your form to handle the information required, and do validation on the server side so the user cannot enter incorrect information and get an error message. Email me if there are any questions about the requirements of this assignment.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, Lacey9319
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
image
Computers and Technology, 22.06.2019 18:10, AdoNice
How can i delete permalinks from a word press site?
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, jaueuxsn
Which component acts as a platform on which application software runs
Answers: 2
image
Computers and Technology, 23.06.2019 22:30, reaganphelps3
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
You know the right answer?
g Your second assignment, to get you familiar with PHP, is to create a form for an online calculator...

Questions in other subjects:

Konu
Geography, 04.09.2021 20:40
Konu
Mathematics, 04.09.2021 20:40