0% found this document useful (0 votes)
35 views

IT232 Assignment1

فافباب

Uploaded by

Merna Sami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

IT232 Assignment1

فافباب

Uploaded by

Merna Sami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

College of Computing and Informatics

Object Oriented Programming


IT232

Assignmen
Instructions:

t1 

Name: ###

You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Student Details:

Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
ID: ###
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between
words, hide characters, use different character sets, convert text into image or languages other than English
CRN: ###
or any kind of manipulation).
 Email submission will not be accepted.
 You are advised to make your work clear and well-presented. This includes filling your information on the
cover page.
 You must use this template, failing which will result in zero mark.
 You MUST show all your work, and text must not be converted into an image, unless specified otherwise by
the question.
 Late submission will result in ZERO mark.
 The work should be your own, copying from students or other resources will result in ZERO mark.
 Use Times New Roman font for all your answers.
Heading 1
‫خطأ! استخدم عالمة التبويب "الصفحة الرئيسية" لتطبيق‬
Pg. 1 ‫خطأ! استخدم عالمة التبويب "الصفحة‬.‫على النص الذي ترغب في أن يظهر هنا‬
‫الرئيسية" لتطبيق‬ Heading 1 ‫على النص الذي ترغب في أن يظهر هنا‬.

Learning 3 Marks
Outcome(s): Question One
Develop a
program based
Write a Java program that demonstrates the use of the pre-increment operator
on specification
(++i). In your program, you should:
using
programming 1. Define an integer variable i and initialize it to 5.
language 2. Use the pre-increment operator to increment i before using it in this
elements arithmetic expression (pre-increment operator + 10).
including syntax, 3. Define an integer variable result to hold the result of arithmetic
data types, expression.
conditional 4. Print the value of i after the increment.
statement, control 5. Print the result of the arithmetic expression where i is incremented using
structures, the pre-increment operator.
6. Note: you must take a screenshot of the output
procedures,
Sample of the run:
arrays, objects
and classes.

.
Heading 1
‫خطأ! استخدم عالمة التبويب "الصفحة الرئيسية" لتطبيق‬
Pg. 2 ‫خطأ! استخدم عالمة التبويب "الصفحة‬.‫على النص الذي ترغب في أن يظهر هنا‬
‫الرئيسية" لتطبيق‬ Heading 1 ‫على النص الذي ترغب في أن يظهر هنا‬.
2 Marks
Learning
Outcome(s): Question Two
Explain the basic Compare between high-level language and low-level language with an example.

principles of
A. Definitions
programming,
B. Examples
concept of
language, and
universal
constructs of
programming
languages.
Heading 1
‫خطأ! استخدم عالمة التبويب "الصفحة الرئيسية" لتطبيق‬
Pg. 3 ‫خطأ! استخدم عالمة التبويب "الصفحة‬.‫على النص الذي ترغب في أن يظهر هنا‬
‫الرئيسية" لتطبيق‬ Heading 1 ‫على النص الذي ترغب في أن يظهر هنا‬.
3 Marks
Learning
Outcome(s): Question Three
Develop a
program based Write a program that asks for the user's student name, student ID, and college
on specification name and prints a welcome message for the student. You must enter your real
information. Here is a sample run of the program:
using
programming Sample:
language
Enter Student first name: Ahmad
elements Enter Student second name: Ali
including syntax, Enter Student ID :1234567
Enter collage name: College of Computing and Informatics
data types,
conditional Welcome Ahmad Ali in the College of Computing and Informatics
statement, control
structures,
procedures,
arrays, objects
and classes.

You might also like