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, 22.06.2019 05:00
Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. after the loop terminates, it prints out, on a line by itself and separated by spaces, the sum of all the even integers read, the sum of all the odd integers read, a count of the number of even integers read, and a count of the number of odd integers read, all separated by at least one space. declare any variables that are needed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 3
question
Computers and Technology, 22.06.2019 13:30
Asoftware company hired ray, a college graduate to work in their development team. ray is assigned to work in the coding phase of a project. what happens during the coding phase of a software development project? a. the customer receives a working model of the software. b. developers convert the program design into code. c. developers gather requirements directly from the stakeholders. d. testing teams check the product for quality.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Match the function to its purpose. fast worth 50pts.
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
question
Mathematics, 04.03.2021 22:10
question
Mathematics, 04.03.2021 22:10
question
Medicine, 04.03.2021 22:10
question
Mathematics, 04.03.2021 22:10
question
Mathematics, 04.03.2021 22:10
question
French, 04.03.2021 22:10
question
Mathematics, 04.03.2021 22:10
question
Mathematics, 04.03.2021 22:10
question
Mathematics, 04.03.2021 22:10
question
Mathematics, 04.03.2021 22:10
question
Mathematics, 04.03.2021 22:10
Questions on the website: 13722361