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. Email me if there are any questions about the requirements of this assignment.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
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
History, 16.07.2019 06:30
Questions on the website: 13722360