CIS 3100 Introduction to Programming Using Virtual Reality

You are going to save the html file to the root

Info icon This preview shows pages 32–35. Sign up to view the full content.

View Full Document Right Arrow Icon
You are going to save the HTML file to the root directory on the C: disk drive. If you are a student in a course using Alice, it is best to ask your teacher whether or not you should use the C: disk drive or another location.
Image of page 32

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Alice – Chapter 1 DRAFT June 10, 2013 pg. 33 of 38 ~~~ Steps to Perform ~~~ To print the code from an Alice world: 1. Click File on the menu bar, and then click the Export Code For Printing option. The Export to HTML dialog box, shown in Figure 1-13, should appear. 2. Notice that you need to tell the computer what to print. In Figure 1-13 you can see that you only have two items in your world that you can print. The first is the default event " when the world starts, do world.my first method ," and the second is the default method " world.my first method. The code for an Alice world consists of the code for all of its events, and for all of its methods, but Alice lets you decide what parts of that code you wish to print. In this exercise, you will print everything, since you only have a small amount of code, but with large Alice worlds you may choose to print just a few items at a time. Make sure that the boxes in front of both items are checked. 4. You now need to tell Alice where you want to save the HTML file. This is the tricky part. There is a browse button, but it does not work as you might expect, so avoid it for now. You are going to save the file in the root directory of the C: disk drive (or in another location if so directed by your instructor). Enter the full path name of the new HTML page in the Export to: input box, as shown in figure 1-13. Use the full path name “C:\hello world.html” (or another name if directed to do so by your instructor). 6. You also need to add your name as the author of the code. Type your name in the Author’s name input box. 7. Once you have entered the full path name for your new file and your name as the author of the Figure 1-13 The Export to HTML for printing dialog box
Image of page 33
Alice – Chapter 1 DRAFT June 10, 2013 pg. 34 of 38 file, click Export Code to create the new HTML document. Now you can find the document where you saved it and open it to look at your code. You can also copy the code to another location, such as on a USB memory chip or other device. You simply open and print the HTML page to print your code, just as you would for other HTML documents. Chapter Summary [BT B HD] This chapter consisted of an introduction followed by four hands-on tutorials. The introduction discussed the following: An algorithm as step-by-step process; computer programs are algorithms. Most modern computer programming languages are object-oriented languages, in which programs are organized as a set of methods that manipulate the properties of objects stored in a computer. An object can be anything that is manipulated by a computer and consists of properties that contain information about the object and methods that can be used to manipulate an object’s properties.
Image of page 34

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 35
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern