subject

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. Here is what I have so far:

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:30, marmar72
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
image
Computers and Technology, 23.06.2019 12:30, legend101xD
Animations and transitions are added from the
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, sophx
Apunishment or the threat of punishment used to enforce conformity. select the best answer from the choices provided t f
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, bsept1018
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
Answers: 1
You know the right answer?
Your second assignment, to get you familiar with PHP, is to create a form for an online calculator t...

Questions in other subjects: