Visual Logic Instructor’s Demo Page 1 of 4 Visual Logic – Instructor’s Demo Visual Logic has been called “The Best Tool for Teaching Novice Students How to Program.” Try the following 2 minute hands-on demo to see for yourself! Start Visual Logic To begin, double-click the Visual Logic icon. Click “(demo mode)” When the program begins, you will see Begin and End elements connected by a flow-arrow. You are now ready to write a program in Visual Logic! Visual Logic Instructor’s Demo Page 2 of 4 Your First Program: Hello World (1 minute) It is a time-honored tradition that your first program in any language be the output message “Hello World.” You will be amazed how easy it is to do this with Visual Logic. STEP 1: Click on the flow-arrow (between Begin and End); the Elements menu should appear. Then select OUTPUT from the popup menu. STEP 2: Double-click on the newly added output element, opening the output dialog box. Type "Hello World" (including the double quotes) in the text box, and then click OK. Figure 1 shows how your flowchart should look after closing the dialog box. Press F5 to run the program. The program executes, generating an output dialog box that appears with the text “Hello World” (Figure 2). FIGURE 1: Hello World Solution FIGURE 2: Hello World Output Congratulations! You have written your first Visual Logic program! Can You Believe How Easy That Was??? Visual Logic Instructor’s Demo Page 3 of 4 Paycheck Program (1 minute) You are welcome to explore more solution files by selecting the Menu option FILE | OPEN and then browsing to the various solutions from the book “A Guide to Working with Visual Logic”. For example, open the Chapter 1 Solution Files folder and view the “CH 1 FIG 1-10 – Weekly Paycheck (Solution)” (see Figure 3). FIGURE 3: Weekly Paycheck Solution File Press F5 to run the program. Figure 4 shows the output generated by input values of 30 hours and 8 dollars per hour rate. FIGURE 4: Weekly Paycheck Solution Output Input! Processing! Output! So Easy! What a Great Tool for Beginners!!! Visual Logic Instructor’s Demo Page 4 of 4 More Examples Available to You (including Graphics!) Chapter 6 of the book “A Guide to Working with Visual Logic” covers Graphics and Procedures. Use the Menu option FILE | OPEN and then browse to the Chapter 6 Solution Files program “Ch6 Figure 6-29 (Drawing Houses)”. Run the program to get the results in Figure 5. FIGURE 5: Drawing Houses Solution (available under Chapter 6 Solution Files) VISUAL LOGIC SUMMARY Visual Logic is the Best Tool for teaching novice students how to program. Visual Logic is Easy (and Fun!) to use. “A Guide to Working with Visual Logic” is a great six-chapter textbook that will give your students a strong foundation for success in computer programming. Talk to a Cengage Rep for more information!