1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
anastassius [24]
3 years ago
8

Create a website for an online movie rental store, using HTML (and any other client technologies) and PHP. The website should in

clude: - A front/home page containing a list of movies available for rent (list at least 8 movies). o Each movie should have a listed rental price. o Note: You can use the same rental price for every movie (i.e., it can be declared as a constant).
Computers and Technology
1 answer:
FromTheMoon [43]3 years ago
7 0

Answer:

HTML and PHP code is given below using 10 movie selections

Explanation:

movierentalstore.php:-

<html>

<head>

<title> Online movie rent store </title>

 

</head>

<body bgcolor="blue" alink="white " vlink="white " link="white">

<br>

<hr size="5" color="white">

<center><font face="Monotype corsiva" size="25" color="yellow"> @@ Movies available for rent right now @@ </font></center>

<font face="times new roman" size=6 color="white">

<ol type="1">

<li> Batman $40 * Cast :- Michael Keaton , Jack Nicholson , Kim Basinger / Robert Wuhl *

</li>

<li> Godzilla 2019 $30 * Cast :- Kyle Chandler, Vera Farmiga, Millie Bobby Brown * </li>

<li> Wonder Woman $50</li>

<li> Terminator $10</li>

<li> Avengers : End Game $20</li>

<li> Harry Potter $30</li>

<li> Annabelle $20</li>

<li> hustlers $10</li>

<li> Joker $50</li>

<li> The Lion king $15</li>

 

</ol>

</font>

<a href="renting.php" alink="white"> Click here to rent the movie ... </a>

<br>

<a href="review.php" alink="white"> Click here to review the movie ... </a>

</body>

</html>

review.php :-

<html>

<head>

<title> Reviewing Page </title>

</head>

<body bgcolor="green" > <hr size="5" color="white">

 

<h1><center><font face="Monotype corsiva" size="25" color="yellow"> Review movie </center></font> </h1> <hr size="5" color="white">

<font size="6" face="times new roman" color="yellow">

<form method="GET">

<label>Select movie</label>

<select name="movie1">

<option value="1" > batman</option>

<option value="2" > godzilla</option>

<option value="3" > wonder woman </option>

<option value="4" > terminator</option>

<option value="5" > avengers</option>

<option value="6" > Harry potter</option>

<option value="7" > Anabelle</option>

<option value="8" > Hustlers</option>

<option value="9" > Joker</option>

<option value="10" > The lion king</option>

<br>

</select>

<br><br>

Username :- <input type="text" name="name1" required="" > </input>

<br><br>

Review :- <input type="text" name="review" required="" > </input>

<br><br>

<label>Select rating</label>

<select name="rating">

<option value="1" > 1</option>

<option value="2" > 2</option>

<option value="3" > 3 </option>

<option value="4" > 4</option>

<option value="5" > 5</option>

<br>

 

</select>

 

<input type="submit" name="submit" required="" value="Submit">

<input type="reset" name="reset" required="" value="Reset">

<hr size="5" color="white">

 

 

</form>

<?php

if(isset($_GET["submit"]))

{ $name1=$_GET["name1"];

$r=$_GET["review"];

$re=$_GET["rating"];

$m=$_GET["movie1"];

echo "Movie name :- ".$m." <br>";

echo "Username :- ".$name1." <br>";

echo "Review :- ".$r." <br>";

echo "Rating :- ".$re. "Stars "." <br>" ;

echo "Successfully submitted.. Thankks for your feedback " ;

}

 

?>

</div>

</body>

</html>

rating,php

<html>

<head>

<title> Renting Page </title>

</head>

<body bgcolor="red"> <hr size="5" color="white">

<h1><center><font face="Monotype corsiva" size="25" color="yellow"> Renting movie </center></font> </h1> <hr size="5" color="white">

<form method="GET">

 

<label>Select movie</label>

<select name="movie1">

<option value="1" > batman</option>

<option value="2" > godzilla</option>

<option value="3" > wonder woman </option>

<option value="4" > terminator</option>

<option value="5" > avengers</option>

<option value="6" > Harry potter</option>

<option value="7" > Anabelle</option>

<option value="8" > Hustlers</option>

<option value="9" > Joker</option>

<option value="10" > The lion king</option>

</select>

 

<input type="submit" name="submit" required="" value="Submit">

<input type="reset" name="reset" required="" value="Reset">

<hr size="5" color="white">

 

 

</form>

</div>

<div class="php">

<?php

if(isset($_GET["submit"]))

{ $movie1=$_GET["movie1"];

echo "Selected movie is : ".$movie1;

echo "<br> </br>";

echo "Amount charged : " ;

switch($movie1)

{

case 1 : echo " 42 dollars" ;

break;

case 2: echo "31.5 dollars" ;

break;

case 3 : echo "52.5 dollars" ;

break;

case 4: echo " 10.5 dollars" ;

break;

case 5 : echo " 21 dollars" ;

break;

case 6 : echo "31.5 dollars" ;

break;

case 7: echo "21 dollars" ;

break;

case 8 : echo " 10.5 dollars" ;

break;

case 9: echo " 52.5 dollars" ;

break;

case 10 : echo " 16 dollars" ;

break;

}

echo "Successfully rented" ;

}

 

?>

</div>

</body>

</html>

You might be interested in
For the following 4-bit operation, assuming these register are ONLY 4-bits in size, which status flags are on after performing t
m_a_m_a [10]

Answer:

All flags are On ( c, z , N  )

Explanation:

Given data:

4-bit operation

Assuming 2's complement representation

<u>Determine status flags that are on after performing </u> 1010+0110

    1   1

    1  0   1  0

    0  1   1  0

  1  0 0 0 0

we will carry bit = 1 over

hence C = 1

given that: carry in = carry out there will be zero ( 0 ) overflow

hence V = 0

also Z = 1      

But the most significant bit is  N = 1

8 0
3 years ago
Assuming deq is a deque object, the expression deq.push_front(elem) deletes the first element from deq.
horrorfan [7]

Answer: False

Explanation:

This code code not deletes element from deq. This insert element at the beginning of deq. if it was deq.pop_front(elem) then it would have deleted the first element.

Therefore, it is false.

4 0
3 years ago
Lynn wants to share parts of an essay she wrote in her slide presentation
fgiga [73]

Answer:

no

Explanation:

No she should not  because it might be for a test

6 0
2 years ago
if we declare a function as friend of a template class will it be a friend for a particular data type or for all data types of t
suter [353]

Answer:

When we declare a function as a friend of a template class, it means it can access the public, as well as the private and protected members both data variables, and functions of that class. Thus, the friend has access not only to certain data types, but they have access to all the data types of that class. Thus, the function declared as the friend is never deprived of accessing any particular data type of a template class, or any class.

Explanation:

However, you should understand what is template class as well. A template class is the one that is a template and can be transformed into various object code for various data types, that supports all the operators used inside that class or function. We do have the template function. And these behave generically.

7 0
3 years ago
Advantages &amp; Disadvantages of flow chart​
viktelen [127]

Answer:

Advantages of flow charts:

1. Communication where flowcharts are a more effective technique of explaining a system's rationale to all parties involved.

2. Efficient interpretation by using a flowchart, a problem can be investigated more effectively, resulting in lower costs and less time wasted.

3. Appropriate documentation such when program flowcharts serve as good documentary evidence, that is required for a variety of objectives, allowing things to run more smoothly.

4. Effective Coding where during the systems analysis and software development phases, the flowcharts serve as a guide or blueprint.

5. Practical Debug where the flowchart assists with the debugging process.

6. Efficient Program Maintenance by using a flowchart, it is simple to maintain an operational program. It allows the programmer to focus his efforts more effectively on that section.

Disadvantages of flow charts:

1. Manual traceability is required to ensure the accuracy of the flowchart drawn on paper.

2. Simple changes to the problem reasoning may necessitate a complete redo of the flowchart.

3. Displaying many branches and looping in flowchart is challenging.

4. When dealing with a complicated project or algorithm, the flowchart becomes very challenging and imprecise.

5. It can take some time to modify a flowchart.

3 0
2 years ago
Other questions:
  • Samantha received a gaming session as a gift. She would like to have it communicate with her sister Jennifer’s gaming system so
    15·1 answer
  • Write the definition of a function divide that takes four arguments and returns no value . The first two arguments are of type i
    8·1 answer
  • What statement needs to be included below to retrieve all rows from the Invoices table with InvoiceTotal greater than 100?
    9·1 answer
  • is family mobile and boost mobile the same? if not whats the difference? (btw this is a random question)
    12·2 answers
  • The last step on Kotter’s Eight-Step Change Model is to anchor the changes in corporate culture; to make anything stick, it must
    14·1 answer
  • An abstract method ____.
    6·1 answer
  • A technician recently fixed a computer with several viruses and spyware programs on it and notices the Internet settings were se
    15·1 answer
  • What has happened (or is still happening) to make this speech occur? armageddon
    15·1 answer
  • How does the technology work
    10·2 answers
  • Which element is represented by the electron configuration in example B? Example B: 1s22s22p63s23p64s1 Aluminum Cesium Potassium
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!