COMPUTER SCIENCE DEPARTMENT JORDAN UNIVERSITY OF SCIENCE AND TECHNOLOGY

advertisement
JORDAN UNIVERSITY OF SCIENCE AND TECHNOLOGY
FACULTY OF COMPUTER & INFORMATION TECHNOLOGY
COMPUTER SCIENCE DEPARTMENT
CS 116: Selected Programming Languages
Assignment # 1
Due Date 22/10/2007
Objectives
1. Learn how to design an interface and change object properties
2. Learn how declare and use variables of different data types.
3. Understand String functions.
Exercise 1:
Design the following simple application to input a number from the text box, compute the
result of the equation:
X4 ÷ 4
(X)
and display the result on the Picture Box .
Example
Note: Make sure you have the same captions and colors in the figure
Exercise 2 :
Design the following Form:
lblFirst
lblLast
frmAssignment1
txtFirst
txtLast
picName
cmdCombine
cmdClear
When you click the Combine button
1. Read the two strings from the text boxes
2. Change the font to Bold, Verdana, Size 12
3. Capitalize
a. the first letter of the first name
b. the first letter of the last name
4. Display them on the picture box separated by a blank character.
When you click the Clear button
 The text boxes and the picture box will be emptied
Note: Make sure you have the same captions, and titles in the figure
Download