CIS 162 AD - C# Programming I - Section 5832
Worksheet #1
due Thursday, February 2, 2006
Name:
I. Definitions: please explain the following terms:
- variables
- class
- instance of a class
- encapsulation
- white space
- IDE
- intermediate language
- syntax error
- data type
- format string
II. Questions or short essay
- Explain the difference between procedural programming and object oriented programming.
- What is the difference between the WriteLine() method and the Write() method?
- What are the rules for creating an identifier?
- What does it mean that the C# language is case sensitive?
- What are the common ways of adding comments to your program?
- What are the common floating-point data types?
- How is the char data type different from the string data type?
III. Programming Exercise
Write a program that declares five variables to hold scores for five tests you have taken. Have the program accept the five scores from a user of the program. Display the average of the tests to two decimal places. Turn in your source code for this program.