PHP Programming
You will write a PHP program to calculate the payment receipt for renti...
Computers and Technology, 19.02.2020 23:23 sleimanabir
PHP Programming
You will write a PHP program to calculate the payment receipt for renting a number of movies, using a conditional structure. Suppose that the rental rate depends on the number of movies rented by a customer at a time. There is a limit of renting a maximum of 20 movies at a time. Conditions:
For the first 2 movies rented, the rate is $5.50/movie.
For the next 2 movies rented, the rate is $4.25/movie.
For the next 3 movies rented, the rate is $3.00/movie.
For any more movies rented (no more than 20), the rate is $2.00/movie.
Hence, if a customer rents 5 movies, two of those will be rented at $5.50, two for $4.25 and one for $3.00, for a total of (2*$5.50) + (2*$4.25) + $3.00 = $22.50.
1) Create a form that asks the customer for his/her name and the number of movies he/she would like to rent. On submit, display the total amount due (shown to 2 decimal places) on the same page.
2) Save the customer’s submitted name in a flat-file called "visitor. txt". You should overwrite this name every time someone submits a name to the form.
Answers: 1
Computers and Technology, 24.06.2019 16:30
Jenny needs to record the names of 30 students, write down the subjects they studied, and note their grades in each subject after the midsemester exams and the end-of-semester exams. she divides the midsemester and end-of-semester information into two separate worksheets, sheet 1 and sheet 2. how will she rename the two worksheets?
Answers: 2
Computers and Technology, 25.06.2019 11:00
In a paragraph of no less than 125 words, describe how you would create a new database using your software.
Answers: 1
Computers and Technology, 25.06.2019 17:30
Compete the sentence with the phrase that makes the proof statement true. c is the midpoint to segment ae segment ab is congruent to segment de length ac is equal to length ab plus length bc
Answers: 2
Computers and Technology, 25.06.2019 22:00
What statement provides an example of designing a solution in the technological design process?
Answers: 1
Computers and Technology, 12.11.2019 03:31
English, 12.11.2019 03:31