Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Adding a javascript to my program to perform the total cost . It would be the su

ID: 3922989 • Letter: A

Question

Adding a javascript to my program to perform the total cost . It would be the sum of price of each items quality *1.07 to also add in taxes. Do a jacascrip confirm() to call to display. "the total cost of the order is ( Price )." the confirm() function displays a message box with a message and buttons for "OK" and "cancel". It returns true of the "OK" is clicked and "false" is it was canceled.

If ok was selected it should be submitted to the form test.php as before. if canceled it shouldn't be submitted. Jus Add it into this program please. And perform everything needed.

<!DOCTYPE html>
<html>
<head>

<link rel="stylesheet" type="text/css" href="table.css" />


<title> My Fruit Table </title>

<body>

<h1 > Fruit Table </h1>

<table

>
<tr>
<th>Fruit Name </th>
<th>Price </th>
<th> Shipping weight </th>
</tr>
<tr>
<td> Apples</td>
<td>$4.00 </td>
<td> 5.3 lb</td>
</tr>
<tr>
<td> Blueberries</td>
<td>$6.00 </td>
<td>6 lb</td>
</tr>
<tr>
<td> Grapes</td>
<td>$8.50 </td>
<td>9 lb</td>

</tr>
</table>
<br>
<br>

<form name="frm" action="http://weblab.kennesaw.edu/formtest.php">
Customer Name <input type="text" name="Customer name"> <br />
Apples Quantity <input type="text" name="Apples unit"><br />
Blueberries Quantity <input type="text" name="Blueberries unit"><br />
Grapes Quantity <input type="text" name="Grapes unit"><br />
Shipping Address <input type="text" name="Shipping address"> <br />
Payment Mode
<select name="Payment mode" >
<option value="Visa"> Visa </option>
<option value="MasterCard"> MasterCard</option>
<option value="Amex">American Express</option>
</select>

<input type="submit" value="Place Order"> <input type="reset" value="Clear Form">



</form>


</body>
</html>

Explanation / Answer

String translation(String temp)
temporary worker.toCharArray();
while(i&lt;k-3)
  
if(storefinal.matches("AUU")||storefinal.matches("AUC")||storefinal.matches("AUA"))

if(storefinal.matches("AUG"))

if(storefinal.matches("GUU")||storefinal.matches("GUC")||storefinal.matches("GUA")||storefinal.matches("GUG"))

if(storefinal.matches("UCU")||storefinal.matches("UCC")||storefinal.matches("UCA")||storefinal.matches("UCG"))

if(storefinal.matches("AGA")||storefinal.matches("AGG"))

if(storefinal.matches("AGU")||storefinal.matches("AGC"))

if(storefinal.matches("UGG"))

if(storefinal.matches("UGU")||storefinal.matches("UGC"))

if(storefinal.matches("GAA")||storefinal.matches("GAG"))

if(storefinal.matches("GAU")||storefinal.matches("GAC"))

if(storefinal.matches("AAA")||storefinal.matches("AAG"))

if(storefinal.matches("AAU")||storefinal.matches("AAC"))

if(storefinal.matches("CAA")||storefinal.matches("CAG"))

if(storefinal.matches("CAU")||storefinal.matches("CAC"))

if(storefinal.matches("UAU")||storefinal.matches("UAC"))

if(storefinal.matches("CCG")||storefinal.matches("CCA")||storefinal.matches("CCC")||storefinal.matches("CCU"))

if(storefinal.matches("ACG")||storefinal.matches("ACA")||storefinal.matches("ACC")||storefinal.matches("ACU"))

if(storefinal.matches("GCG")||storefinal.matches("GCA")||storefinal.matches("GCC")||storefinal.matches("GCU"))

if(storefinal.matches("CGG")||storefinal.matches("CGA")||storefinal.matches("CGC")||storefinal.matches("CGU"))

if(storefinal.matches("GGG")||storefinal.matches("GGA")||storefinal.matches("GGC")||storefinal.matches("GGU"))

if(storefinal.matches("UAG")||storefinal.matches("UAA")||storefinal.matches("UGA"))

i++;
}
String finalreturn = new String(pro);
come finalreturn;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote