Assignments


        News     Lecture Notes     Lab Assignments     Lab News     Solved Problems     Calendar


This section will be used for lab assignments, You can use the following email address to send your homework and labs.

Here is the course email: uoz_cs_prog1@yahoo.com



Report

posted Mar 25, 2014, 9:42 AM by dldar masud   [ updated Apr 28, 2014, 1:46 AM ]


solve this examples and make it report in next week


Q1/Write a program to find a number of factors:


        Enter the number: 6

        Factors of 6= 6   3   2   1


Q2/Write a program to find prime number from 0 to 100


       2     3     5     7     11     13      17     19     23  . . . . . .



Q3/write a program that displays the following   

       Pattern using nested loop.

 

     Enter the width: 5

     Enter the height: 6

*****

*      *

*      *

*      *

          *      *

***** 


Q4/Write a program to input the number and use switch case:


1-          Find largest digit.

2-          Find minimum digit.

3-          Find odd and even digit.



Q5/Write a program to find count of small 

        and capital letter of the string and read 

         string on the file (d.txt ).



    You have to submit your assignment till  30-03-14 at 10:59 AM  .


Homework 4

posted Feb 25, 2014, 12:42 PM by Dlovan ismail   [ updated Feb 25, 2014, 12:44 PM by Karwan Jacksi ]

Hi,

write a program in java to read a string from the keyboard then calculate numbers of capital letters, small letters, digits and special symbols in it.
for example :

Enter a string : Welcom5ComputeR8$+-#
Capital letters : 3
Small letters : 11
Digits : 2
Special symbols : 4


You have to submit your assignment till 1-03-14 at 23:59.

Regards,

Homework 3

posted Feb 11, 2014, 11:01 AM by dldar masud   [ updated Feb 11, 2014, 11:01 AM by Karwan Jacksi ]


write a program to find the count digit  even and odd number for example 

enter the number:19644533

count_odd:5

count_even:3

You have to submit your assignment till 16-02-14 at 23:59.

Homework 2

posted Feb 7, 2014, 4:34 AM by Dlovan ismail   [ updated Feb 7, 2014, 4:38 AM by Karwan Jacksi ]

Hi,

Write a program that calculates the sum of integers that accept divisible by 3  from (1-50)?



You have to submit your assignment till 9-02-14 at 23:59.

Regards,

Exam Grade

posted Jan 19, 2014, 3:20 AM by dldar masud   [ updated Jan 19, 2014, 3:20 AM by Karwan Jacksi ]

Dear students,

You task for this assignment is to make a program to test the exam score and prints the grade in a sentence as follow:
The input should be from the keyboard.

0-49   prints    Fail
50-59 prints    Pass
60-69 prints    Fair
70-79 prints    Good 
80-89 prints    V.Good
90-100 prints  Excellent


The screen should be as follow:
---------------------------------------
Hello Guest! 
Welcome to Exam Grade Program!

Please enter your score: 85
Your grade for your score is V. Good

Goodbye...
---------------------------------------

 
You have to submit your assignment till 25-01-14 at 23:59.

Regards,

Homework 01

posted Dec 14, 2013, 12:40 PM by Karwan Jacksi   [ updated Dec 14, 2013, 12:40 PM ]

Hi,

Write a program in Java to display as shown in the attached image in this post. You can find the image at the bellow of this page.

/Karwan

1-6 of 6