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

this is the most of it i need for the menu https://www.chegg.com/homework-help/q

ID: 3803067 • Letter: T

Question

this is the most of it i need for the menu

https://www.chegg.com/homework-help/questions-and-answers/json-file-businessid-5umkmjueundywqanhgckjw-fulladdress-4734-lebanon-church-rd-ndravosburg-q19728320

here is the xml file

<?xml version="1.0" encoding="UTF-8"?>
<MENU>
<BREAKFAST>
<APPETIZER><NAME>Fruit Bowl</NAME><PRICE>10.90</PRICE></APPETIZER>
<SALAD><NAME>Caeser SALAD</NAME><PRICE>3.90</PRICE></SALAD>
<SOUP><NAME>Chicken Noodle</NAME><PRICE>5.90</PRICE></SOUP>
<ANTREE><NAME>Omelet</NAME><PRICE>20.90</PRICE></ANTREE>
   <ANTREE><NAME>Scrambled Eggs</NAME><PRICE>20.90</PRICE></ANTREE>
<DESSERT><NAME>Apple Pie</NAME><PRICE>7.90</PRICE></DESSERT>
</BREAKFAST>
<BRUNCH>
<APPETIZER><NAME>Fruit Bowl</NAME><PRICE>10.90</PRICE></APPETIZER>
   <APPETIZER><NAME>EggPlant Frits</NAME><PRICE>10.90</PRICE></APPETIZER>
<SALAD><NAME>House Salad</NAME><PRICE>3.90</PRICE></SALAD>
<SOUP><NAME>Chicken Noodle</NAME><PRICE>5.90</PRICE></SOUP>
   <ANTREE><NAME>French Toast</NAME><PRICE>20.90</PRICE></ANTREE>
   <ANTREE><NAME>Omelet</NAME><PRICE>20.90</PRICE></ANTREE>
   <ANTREE><NAME>Scrambled Eggs</NAME><PRICE>20.90</PRICE></ANTREE>
<ANTREE><NAME>Hamburg</NAME><PRICE>20.90</PRICE></ANTREE>
<DESSERT><NAME>Apple Pie</NAME><PRICE>7.90</PRICE></DESSERT>
</BRUNCH>
<LUNCH>
<APPETIZER><NAME>Calamari</NAME><PRICE>10.90</PRICE></APPETIZER>
<SALAD>Caeser Salad<PRICE>3.90</PRICE></SALAD>
   <SALAD><NAME>Arugula Salad</NAME><PRICE>3.90</PRICE></SALAD>
<SOUP><NAME>Chicken Noodle</NAME><PRICE>5.90</PRICE></SOUP>
   <SOUP><NAME>Italian Wedding Soup</NAME><PRICE>5.90</PRICE></SOUP>
<ANTREE><NAME>Steak</NAME><PRICE>20.90</PRICE></ANTREE>
   <ANTREE><NAME>Hamburg</NAME><PRICE>20.90</PRICE></ANTREE>
   <ANTREE><NAME>Angel Hair Pasta</NAME><PRICE>20.90</PRICE></ANTREE>
<DESSERT><NAME>Tiramisu</NAME><PRICE>7.90</PRICE></DESSERT>
</LUNCH>
<DINNER>
<APPETIZER><NAME>Calamari</NAME><PRICE>10.90</PRICE></APPETIZER>
   <APPETIZER><NAME>EggPlant Frits</NAME><PRICE>10.90</PRICE></APPETIZER>
<SALAD>House Salad<PRICE>3.90</PRICE></SALAD>
   <SALAD><NAME>Caeser Salad</NAME><PRICE>3.90</PRICE></SALAD>
<SOUP>Chicken Noodle<PRICE>5.90</PRICE></SOUP>
   <SOUP><NAME>Italian Wedding Soup</NAME><PRICE>5.90</PRICE></SOUP>
<SOUP><NAME>Roasted Patato</NAME><PRICE>5.90</PRICE></SOUP>
   <ANTREE><NAME>Steak</NAME><PRICE>20.90</PRICE></ANTREE>
   <ANTREE><NAME>Hamburg</NAME><PRICE>20.90</PRICE></ANTREE>
   <ANTREE><NAME>Angel Hair Pasta</NAME><PRICE>20.90</PRICE></ANTREE>
<ANTREE><NAME>Roasted Duck</NAME><PRICE>20.90</PRICE></ANTREE>
<DESSERT><NAME>Apple Pie</NAME><PRICE>7.90</PRICE></DESSERT>
   <DESSERT><NAME>Tiramisu</NAME><PRICE>7.90</PRICE></DESSERT>
   <DESSERT><NAME>Creme Brule</NAME><PRICE>7.90</PRICE></DESSERT>
</DNNER>
<DRINKS>
<BEER><NAME>Bud Weiser</NAME><PRICE>5.90</PRICE></BEER>
<BEER><NAME>Hefe Weissbier</NAME><PRICE>6.90</PRICE></BEER>
<WINE><NAME>Cabernet Sauvignon</NAME><FROM>Napa Valley</FROM><PRICE>15.90</PRICE></WINE>
<WINE><NAME>Margaux</NAME><PRICE>50.90</PRICE></WINE>
   <WINE><NAME>Pinot Noir</NAME><FROM>Napa Valley</FROM><PRICE>12.90</PRICE></WINE>
   <WINE><NAME>Chianti</NAME><PRICE>10.90</PRICE></WINE>
<COFFEE><NAME>Star Bucks</NAME><PRICE>3.90</PRICE></COFFEE>
   <SODA>Coca Cola<PRICE>3.90</PRICE></SODA>
   <SODA>Sprite<PRICE>3.90</PRICE></SODA>
</DRINKS>
</MENU>

Whenever each item in your drop down is clicked by mouse, the corresponding information (extracted from the Jason file, "YelpOneBusinessJasonData.jason" and the xml file) gets displayed in each corresponding section of your webpage. If multiple items of the drop list are clicked in a sequence, multiple sections for the information will be displayed in the mouse click sequence. The Menu is clicked, extract and display the menu information as below from the file restaurant menu.xml with another drop down list for BREAKFAST, BRUNCH, LUNCH, DINNER, DRINKS. Create the same drop down list for each item as specified in the main drop down list above The menu in your html page would look like this (Ignore the buttons for Overview, Menu, Review, Photo) on the top, each description of each menu item and the ad in the right pane of this example page)

Explanation / Answer

Display the JSON information of restaurant using webpage:

HTML:

<!DOCTYPE html>

<html>

<head>

<style>

.dropbtn

{ background-color: #4CAF50;

color: white;

padding: 16px;

font-size: 16px;

border: none;

cursor: pointer;

} .

dropbt

{
   "business_id": "5UmKMjUEUNdYWqANhGckJw",
   "full_address": "4734 Lebanon Church Rd Dravosburg, PA 15034",
   "hours": {
       "Friday": {
           "close": "21:00",
           "open": "11:00"
       },
       "Tuesday": {
           "close": "21:00",
           "open": "11:00"
       },
       "Thursday": {
           "close": "21:00",
           "open": "11:00"
       },
       "Wednesday": {
           "close": "21:00",
           "open": "11:00"
       },
       "Monday": {
           "close": "21:00",
           "open": "11:00"
       }
   },
   "open": true,
   "categories": ["Fast Food",
   "Restaurants"],
   "city": "Dravosburg",
   "review_count": 4,
   "name": "Mr Hoagie",
   "neighborhoods": [],
   "longitude": -79.9007057,
   "state": "PA",
   "stars": 4.5,
   "latitude": 40.3543266,
   "attributes": {
       "Take-out": true,
       "Drive-Thru": false,
       "Good For": {
           "dessert": false,
           "latenight": false,
           "lunch": false,
           "dinner": false,
           "brunch": false,
           "breakfast": false
       },
       "Caters": false,
       "Noise Level": "average",
       "Takes Reservations": false,
       "Delivery": false,
       "Ambience": {
           "romantic": false,
           "intimate": false,
           "classy": false,
           "hipster": false,
           "divey": false,
           "touristy": false,
           "trendy": false,
           "upscale": false,
           "casual": false
       },
       "Parking": {
           "garage": false,
           "street": false,
           "validated": false,
           "lot": false,
           "valet": false
       },
       "Has TV": false,
       "Outdoor Seating": false,
       "Attire": "casual",
       "Alcohol": "none",
       "Waiter Service": false,
       "Accepts Credit Cards": true,
       "Good for Kids": true,
       "Good For Groups": true,
       "Price Range": 1
   },
   "type": "business"
}