Code.Pdf

Submitted by: Submitted by

Views: 100

Words: 491

Pages: 2

Category: Science and Technology

Date Submitted: 01/25/2014 04:09 AM

Report This Essay

THE UNIVERSITY OF DODOMA COLLEGE OF INFORMATICs AND VIRTUAL EDUCATION DEPARTMENT OF COMPUTER SCIENCE

COURSE NAME: OBJECT ORIENTED PROGRAMMING IN JAVA COURSE CODE: CS 213 INSTRUCTOR: MR.KAMUZORA GROUP MEMBER: NAME BENEDICTO JEREMIA FRIMIN,GODIFREY K JILALA BUSH JULIUS JOSEPH KIPENGELE LAURENT LUCUMAY,MICHAEL C LUKANDA PEER MBEYA AMASHA NANYARO MOSES E MICHAEL TIMOTHEO DEGREE PROGRAM BSc.CIS BSc.CS BSc.CIS Bsc CIS Bsc IS Bsc CIS Bsc CIS Bsc CIS Bsc CIS Bsc CIS REGISTRATION NUMBER T/UDOM/2012/00027 T/UDOM/2012/00191 T/UDOM/2012/00032 T/UDOM/2012/00068 T/UDOM/2012/00445 T/UDOM/2012/00047 T/UDOM/2012/00494 T/UDOM/2012/00075 T/UDOM/2012/00031 T/UDOM/2012/00048

ASSIGNMENT: Question: Explain why character data type is considered as an integer data type.

Character is a data type representing a single text characters like alphabets, numeral, punctuations Integer is a data type expressed in terms of the whole number, example 23,89,1832. Data type defined as type of object that a program will work with and can be termed as the class. While C and C++ Still primarily use ASCII, Java has already used UNICODE. This means that Java must create a byte type because char in Java is no longer a single byte. Instead it is a 2 byte UNICODE representation. Unicode process. During storing data in computer which are in form of character data type computer change into machine language which are in form of binary number for example when type a capital letter A in keyboard machine translate into integer data type which is 65 and then convert it into binary number such as 1’s and 0’s. Char A =integer 65 =binary number 100001. Supporting calculation. During compilation of program when you declare a character data type and you assign a value for making calculations during compilation the program accept the conditions and allow calculation to done .For example when evaluating arithmetic expression,8+7=15; ‘8’+’7’=56+55,which yields 111;and ‘8’+7=56+7,which yields 63.Furthermore,because...