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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
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
question
French, 03.03.2021 22:50
question
Chemistry, 03.03.2021 22:50
question
Mathematics, 03.03.2021 22:50
Questions on the website: 13722363