title: oct 310:53 am (1 of 24) - bristol community...
TRANSCRIPT
![Page 1: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/1.jpg)
Title: Oct 310:53 AM (1 of 24)
![Page 2: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/2.jpg)
One of thehomeworkproblems.
Title: Oct 311:08 AM (2 of 24)
![Page 3: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/3.jpg)
First JavaScript example.
Title: Oct 311:10 AM (3 of 24)
![Page 4: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/4.jpg)
Title: Oct 311:10 AM (4 of 24)
![Page 5: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/5.jpg)
I am using Firefox.I right click on the screen and select View Page Sourceto view the code.
Title: Oct 311:11 AM (5 of 24)
![Page 6: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/6.jpg)
Title: Oct 311:14 AM (6 of 24)
![Page 7: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/7.jpg)
Then the next prompt comes upand asks for the second number.Then the answer is calculated anddisplayed.
Title: Oct 311:16 AM (7 of 24)
![Page 8: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/8.jpg)
The output is displayed througha document.write.
Title: Oct 311:17 AM (8 of 24)
![Page 9: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/9.jpg)
Title: Oct 311:21 AM (9 of 24)
![Page 10: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/10.jpg)
Title: Oct 311:23 AM (10 of 24)
![Page 11: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/11.jpg)
I copied the code to notepad andI am now going to save it asmult1.html.
Title: Oct 311:24 AM (11 of 24)
![Page 12: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/12.jpg)
right click and choose menu barand you get the menu bar inFirefox.You can then use File/Open toopen multi1.html.
Title: Oct 311:27 AM (12 of 24)
![Page 13: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/13.jpg)
Title: Oct 311:30 AM (13 of 24)
![Page 14: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/14.jpg)
Title: Oct 311:41 AM (14 of 24)
![Page 15: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/15.jpg)
<br> will go down to the browser and cause it to moveto the next line like hitting Enter. This is two waysto do the <br> once within its own quotes and oncewith the <br> put in an existing literal.
Title: Oct 311:42 AM (15 of 24)
![Page 16: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/16.jpg)
I entered abc for firstnum and7 for secondnum.The concatenate puts themtogether as one.The add caused by parseFloatgives NaN.
Title: Oct 311:43 AM (16 of 24)
![Page 17: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/17.jpg)
Title: Oct 311:46 AM (17 of 24)
![Page 18: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/18.jpg)
Title: Oct 311:53 AM (18 of 24)
![Page 19: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/19.jpg)
Title: Oct 311:55 AM (19 of 24)
![Page 20: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/20.jpg)
Title: Oct 311:56 AM (20 of 24)
![Page 21: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/21.jpg)
Put the divide question here.
Title: Oct 311:58 AM (21 of 24)
![Page 22: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/22.jpg)
Title: Oct 312:00 PM (22 of 24)
![Page 23: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/23.jpg)
This will potentially show errors that occur.
Title: Oct 312:12 PM (23 of 24)
![Page 24: Title: Oct 310:53 AM (1 of 24) - Bristol Community Collegecisweb.bristolcc.edu/.../CIS120/c12011Oct319.pdf · 2019. 10. 3. · homework problems. Title: Oct 311:08 AM (2 of 24) First](https://reader036.vdocuments.mx/reader036/viewer/2022070112/6054a179f217de08161eb0bf/html5/thumbnails/24.jpg)
Extra credit if you write this codeand pass it in before class.
Title: Oct 31:23 PM (24 of 24)