button>button/div button chem Chead cmeta charset"UTF-S itle The Bean Counterbuttonc/dive c/div center;) the bean counters/hi>

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

please answer what does the code that is highlighted in bold.

I'll appreciate it

if (ounce == 8)
price = 1.95;
if (ounce == 12)
price = 2.35;
if (ounce == 16)
price = 2.75;
if (drink == "Americano")
price = 1.20 + 0.30 (ounce/8);
if (drink == "expresso")
price = price + (shots - 1)*.50;
price = price + price taxBate;
alert(price);
</script>
</body>
</html>
Transcribed Image Text:if (ounce == 8) price = 1.95; if (ounce == 12) price = 2.35; if (ounce == 16) price = 2.75; if (drink == "Americano") price = 1.20 + 0.30 (ounce/8); if (drink == "expresso") price = price + (shots - 1)*.50; price = price + price taxBate; alert(price); </script> </body> </html>
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"><button></button></div>
</div>
<!- repeat the table-row div 3 more times -->
EVALUATING WHAT THE CODE DOES/MAKING CHANGES
Interpreted by
<div style="display: table-row;">
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"></div>
</div>
CODE
WHAT DOES IT DO?
|<!doctype html>
<div style="display: table-row;">
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"><button></button></div>
</div>
<div style="display: table-row;">
<html>
<head>
<meta charset="UTF-8">
<title>The Bean Counter</title>
<style type="text/css">
body {background-color : şaddlebrowR; color : darkorange,
font-family : belyvetica; text-align : center;}
bt {width: 25%; color: darkorapge;)
h1 {color : white;)
section {margin-left : auto; margin-right : auto; text-align :
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"></div>
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"><button></button></div>
</div>
</section>
center;)
</style>
</head>
<body>
<h1> the bean counter</h1>
<bu/>
<p><b>figuring the price of espresso drinks<br/>
<script>
var drink = "latte";
var ounce = 12;
so baristas can have time to chat</b></p>
var shots = 23B
<section style="display: table;">
<div style="display: table-row;">
<div style="display: table-cell;"><button></button></div>
<div style="display: table-cell;"><button></button></div>
var taxBase= 0.088;
var price;
if (drink == "espresso")
price = 1.403;
if (drink == "latte" || drink "cappuccino") {
if (ounce == 8)
price = 1.95;
if (ounce == 12)
price = 2.35;
if (ounce == 16)
price = 2.75;
Fldrink- "Amoricno")
Transcribed Image Text:<div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"><button></button></div> </div> <!- repeat the table-row div 3 more times --> EVALUATING WHAT THE CODE DOES/MAKING CHANGES Interpreted by <div style="display: table-row;"> <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"></div> </div> CODE WHAT DOES IT DO? |<!doctype html> <div style="display: table-row;"> <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"><button></button></div> </div> <div style="display: table-row;"> <html> <head> <meta charset="UTF-8"> <title>The Bean Counter</title> <style type="text/css"> body {background-color : şaddlebrowR; color : darkorange, font-family : belyvetica; text-align : center;} bt {width: 25%; color: darkorapge;) h1 {color : white;) section {margin-left : auto; margin-right : auto; text-align : <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"></div> <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"><button></button></div> </div> </section> center;) </style> </head> <body> <h1> the bean counter</h1> <bu/> <p><b>figuring the price of espresso drinks<br/> <script> var drink = "latte"; var ounce = 12; so baristas can have time to chat</b></p> var shots = 23B <section style="display: table;"> <div style="display: table-row;"> <div style="display: table-cell;"><button></button></div> <div style="display: table-cell;"><button></button></div> var taxBase= 0.088; var price; if (drink == "espresso") price = 1.403; if (drink == "latte" || drink "cappuccino") { if (ounce == 8) price = 1.95; if (ounce == 12) price = 2.35; if (ounce == 16) price = 2.75; Fldrink- "Amoricno")
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY