What's new

Reviewer [FREE] Chegg Unlock #1

Answer

1620213944913.png
 

Attachments

Answer

HTML:
//index.html
<!DOCTYPE html>
<html>

<head>
    <title>Hotel Reservation System</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    <script type="text/javascript" src="page.js"></script>
    <script type="text/javascript" src="reservationSupport.js"></script>

</head>

<body>
    <div class="body">
        <div class="upperbody">
            <div class="form">
                <form action="/action_page.php">
                <div class="inside-form">
                  <label for="fname">Your Name:</label><br>
                  <label for="lname">Phone:</label><br>
                 </div>
                 <div class="inside-form">
                  <input type="text" id="name" oninput="myFunction()"><br>
                  <input type="number" id="phone" oninput="myFunction1()"><br>
                </div>
                <div class="inside-form">
                  <label for="lname">Start Date:</label><br>
                  <label for="lname">End Date:</label><br>
                </div>
                <div class="inside-form">
                  <input type="date" id="startdate" oninput="myFunction2()"><br>
                  <input type="date" id="enddate" oninput="myFunction3()"><br>
                </div>
                <div class="inside-form">
                  <label for="lname">Adults</label><br>
                  <label for="lname">Child</label><br>
                </div>
                <div class="inside-form">
                  <input type="number" id="ãdül†" oninput="myFunction4()"><br>
                  <input type="number" id="child" oninput="myFunction5()"><br>
                </div>
                </form>
            </div>
            <div class="display-form">
               <div class="details">
               <h2> Reservation Details</h2>
               <hr>
               <hr>
               Name:<span id="name1"></span><br>
               Phone: <span id="phone1"></span><br>
               Children Count: <span id="child1"></span><br>
               ãdül† Count: <span id="adult1"></span><br>
               Start Date: <span id="sdate1"></span><br>
               End Date: <span id="edate1"></span><br>
               <hr>
               <hr>
               <br>
           </div>
               <BUTTON id="confirm" onclick="confirm()">Confirm Reservation</BUTTON>


            </div>
        </div>

            <div class="lowerbody">
                <div class="display-grid">
                    <table id =table>
                        <tr>
                        <th>Name</th>
                        <th>Phone<br>Number</th>
                        <th>ãdül† <br>Count</th>
                        <th>Child <br> Count</th>
                        <th>startDate</th>
                        <th>EndDate</th>
                        <th>SubTotal</th>
                        <th>Tax</th>
                        <th>Total</th>
                    </tr>
                    </table>
                   </div>
                <div class="statistics">
                       No of Reservation: <span id="reserve"></span><br>
                       Average of Reservations: <span id="avg"></span><br>
                       Total Number of UnderAge Customers: <span id="tccount"></span><br>
                       Total Number of Adults: <span id="tacount"></span><br>
                </div>
            </div>
        </div>
</body>

</html>

-------------------------------------------------------------------------------------------------

//style.css

.upperbody{
    padding-top: 2%;
    display: flex;
    flex-wrap: wrap;
    min-height: 50%;
    max-width: 100%;
    justify-content: space-between;
}

.lowerbody{
    margin-top: 3%;
    padding-bottom: 2%;
    display: flex;
    flex-wrap: wrap;
    min-height :50%;
    max-width :100%;
    justify-content: space-between;
}

.form,.display-form,.display-grid,.statistics{
    min-width: 45%;
    height: 100%;
    padding: 2%;
}

.form,.display-form{
    background-color: #90ee90;
}

.statistics{
    background-color: #FFB6C1;

}

.display-grid{
    /*background-color: #FFFF99;*/
}


#submit{
    margin-left: 18px;
}
.inside-form{
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

----------------------------------------------------------------------------------
//page.js

var array=[];
var TotalCount = 0;
var TotalAdultCount = 0;
var TotalChildCount = 0;
var TotalCost = 0;

function myFunction() {
  var x = document.getElementById("name").value;
  document.getElementById("name1").innerHTML =  x;
}

function myFunction1() {
  var x = document.getElementById("phone").value;
  document.getElementById("phone1").innerHTML =  x;
}

function myFunction2() {
  var x = document.getElementById("startdate").value;
  document.getElementById("sdate1").innerHTML =  x;
}

function myFunction3() {
  var x = document.getElementById("enddate").value;
  document.getElementById("edate1").innerHTML =  x;
}

function myFunction4() {
  var x = document.getElementById("ãdül†").value;
  document.getElementById("adult1").innerHTML =  x;
}

function myFunction5() {
  var x = document.getElementById("child").value;
  document.getElementById("child1").innerHTML =  x;
}


function confirm(){
  var name = document.getElementById("name").value;
  var phone = document.getElementById("phone").value;
  var startdate = document.getElementById("startdate").value;
  var enddate = document.getElementById("enddate").value;
  var ãdül† = document.getElementById("ãdül†").value;
  var child = document.getElementById("child").value;

  TotalCount += 1;
  TotalChildCount += parseInt(child,10);
  TotalAdultCount += parseInt(ãdül†,10);
  document.getElementById("reserve").innerHTML =TotalCount;
  document.getElementById("tccount").innerHTML =  TotalChildCount;
  document.getElementById("tacount").innerHTML = TotalAdultCount;

  var a = {
    'name':name,
    'phone': phone,
    'startdate': startdate,
    'enddate': enddate,
    'ãdül†': parseInt(ãdül†,10),
    'child': parseInt(child,10),
  }

  var avg = getavg(TotalCount,array);
  var subtotal = getsubTotal(a);
  var tax = getTax(a);
  var total = parseFloat(subtotal,10) * parseFloat(tax,10);
  var total = total.toFixed(2);

  var b ={
    'name':name,
    'phone': phone,
    'startdate': startdate,
    'enddate': enddate,
    'ãdül†': parseInt(ãdül†,10),
    'child': parseInt(child,10),
    'subtotal': subtotal,
    'tax': tax,
    'total': total,
  }

  array.push(b);
  var avg = getavg(TotalCount,array);
  var avg = avg.toFixed(2);
  document.getElementById("avg").innerHTML = avg;


var html = "<tr><th>Name</th><th>Phone<br>Number</th><th>ãdül† <br>Count</th><th>Child <br> Count</th><th>startDate</th><th>EndDate</th><th>SubTotal</th><th>Tax<th>Total</th>";
  for (var i = 0; i < array.length; i++) {
    html+="<tr>";
    html+="<td>"+array[i].name+"</td>";
    html+="<td>"+array[i].phone+"</td>";
    html+="<td>"+array[i].ãdül†+"</td>";
    html+="<td>"+array[i].child+"</td>";
    html+="<td>"+array[i].startdate+"</td>";
    html+="<td>"+array[i].enddate+"</td>";
    html+="<td> $"+array[i].subtotal+"</td>";
    html+="<td> $"+array[i].tax+"</td>";
    html+="<td> $"+array[i].total+"</td>";
    html+="</tr>";
  }
  document.getElementById("table").innerHTML = html;


}
--------------------------------------------------------------------------------
//reservationSupport.js

function getavg(c,array){
 var Total=0
  // console.log(array,c);
  for (var i = 0; i < array.length; i++) {
      Total += parseFloat(array[i].total);
       // console.log(Total);
    }
  Total =Total/c;
    return Total;
}

function getsubTotal(a){
    x = a.ãdül†*15.99 + a.child*8.99;
    n = x.toFixed(2);
    return n;
}

function getTax(a){
    x = getsubTotal(a);
    x = 0.08 * x;
    n = x.toFixed(2);
    return n;
}
keep the files in same folder and same names

1)index.html

2)style.css

3)page.js

4)reservationSupport.js
 

Answer

First we see the original fragments with EcoR1 action:
7f9d995d773e436b3b2816df20531d4f.png
b).A mutation that alters EcoR1 site1 will prevent the actionof EcoR1.
So the fragments will be 6kb and 5kb.
6db35100cc5ae0111ce41648728ad1b7.png

c).A mutation that alters both sites will give rise to only onefragment--11kb.
9ff84833151428d9488c326052101c5e.png
d.If a 1000bp insertion took place the fragment between thecleavage sites will be 5kb.[4kb = 4000bp].
so the fragments will be as:
c7aa96b900f8beae46625c91410edaf7.png
e).If a 500bp insertion is there then the segment would be 4.5kb long along with the other 2 fragments:
b93192e3e9fcfcfea88bd3d8b062748d.png
hope it helps you
 

Attachments

Users search this thread by keywords

  1. hotel reservation system
Back
Top