Professional Documents
Culture Documents
CS 205 Oopdlab Assignment 1
CS 205 Oopdlab Assignment 1
Objective: To understand and Implement basic java program concepts using Scanner class.
Q1. Take input from user a character variable in a program and if the value is alphabet then print
"Alphabet" if it’s a number then print "Digit" and for other characters print "Special
Character"
Q2. Write a program to add all the values in a given number and check if the sum is prime
number or not. Ex: 1234->10, not prime.
Instructions:
a) You will write your program in a standard Java editor i.e Blue-J, Eclipse, NetBean etc.
b) Compile the program, debug and execute. Get right output
c) Create one SINGLE WORD FILE name the file <Roll-no-Assignment-NO>
d) Update this file every week and write your program in the same file
e) Following things should be there:
1. Program Problem
2. Code
3. Input/output
4. Snapshot of the output window