Skip to main content
ICT
Lesson A2 - Object Oriented Programming
 
Main Previous
Title Page >  
Summary >  
Lesson A1 >  
Lesson A2 >  
Lesson A3 >  
Lesson A4 >  
Lesson A5 >  
Lesson A6 >  
Lesson A7 >  
Lesson A8 >  
Lesson A9 >  
Lesson A10 >  
Lesson A11 >  
Lesson A12 >  
Lesson A13 >  
Lesson A14 >  
Lesson A15 >  
Lesson A16 >  
Lesson A17 >  
Lesson A18 >  
Lesson A19 >  
Lesson A20 >  
Lesson A21 >  
Lesson A22 >  
Lesson AB23 >  
Lesson AB24 >  
Lesson AB25 >  
Lesson AB26 >  
Lesson AB27 >  
Lesson AB28 >  
Lesson AB29 >  
Lesson AB30 >  
Lesson AB31 >  
Lesson AB32 >  
Lesson AB33 >  
Vocabulary >  
 

LAB ASSIGNMENT A2.1 page 9 of 9

Benzene

Background:

Benzene is a very common and useful organic compound. Its chemical formula is C6H6 and is often drawn in abbreviated symbol form as a circle centered inside of a hexagon. Here’s an example:

Assignment:

This program will use the gpdraw library introduced in Student Lesson A1. Refer to the DrawingTool Class Specifications as described in Handout A1.1. Write a program that creates the benzene ring symbol consisting of a circle centered inside a hexagon. The circle does not touch the outer hexagon, as indicated in the example picture.

Instructions:

  1. Include your name as a documentation statement and also a brief description of the program.

  2. You will need to turn in (either on paper or electronically) a copy of your code and a picture of the benzene ring that resulted.

 

Main Previous
Contact
 © ICT 2006, All Rights Reserved.