Monday, August 11, 2014

QBASIC PROGRAMMING (2014)



1.WAP to input any number and check whether the given no. is divisible by 5 or not.

   REM
    CLS
    INPUT “Enter any number:”; N
    IF N MOD 5 = 0 THEN
    PRINT “The given number is divisible by 5”
    ELSE
    PRINT “The given number is not divisible by 5”
    END IF
    END





2.WAP to input any number and check whether the given no. is divisible by 3 and 7 or not.


    REM
    CLS
    INPUT “Enter any number ”; N
    IF N MOD 3 = 0 AND N MOD 7 = 0 THEN
    PRINT “The given number is divisible by 3 and seven”
    ELSE
    PRINT “The given number is not divisible by 3 and 7”
    END IF
    END


3.WAP to input any number and check whether the given no. is positive, negative or zero.


    REM
    CLS
    INPUT “Enter any number:” ; N
    IF N > 0 THEN
    PRINT “The given number is positive”
    ELSE IF N < 0 THEN
    PRINT “The given number is negative”
    ELSE
    PRINT “The given number is zero”
    END IF
    END


4.WAP to input any number and display whether it is odd or even.


    REM
    CLS
    INPUT “Enter any number :” ; N
    IF N MOD 2 = 0 THEN
    PRINT “The given number is even”
    ELSE
    PRINT “The given number is odd”
    END IF
    END



5. Input a mark in a subject of a student and check if the student is pass or nor. [Pass Mark >=40]


    REM
    CLS
    INPUT "Enter your marks :"; M
    IF M >=40 THEN
    PRINT "You are passed"
    ELSE
    PRINT "You are failed"
    END IF
    END



6.     WAP to enter any two numbers and display the greater one.


    REM
    CLS
    INPUT “Enter any two numbers:”; A,B
    IF A>B THEN
    PRINT A; “is greater”
    ELSE
    PRINT B; “is greater”
    END IF
    END


7.     WAP to enter any three numbers and display the greatest one.


    REM
    CLS
    INPUT “Enter any three numbers:”; A,B,C
    IF A>B AND A>C THEN
    PRINT A; “is greatest”
    ELSE IF B>A AND B>C THEN
    PRINT B; “is greatest”
    ELSE
    PRINT C; “is greatest”
    END IF
    END


8.     WAP to display all natural nos from 1 to 100. [USE FOR…NEXT, WHILE….WEND, DO WHILE……LOOP, DO….LOOP WHILE, DO UNTIL….LOOP, DO….LOOP UNTIL]


i. FOR…. NEXT


    REM
    CLS
    FOR I = 1 TO 100
    PRINT A,
    NEXT A
    END


ii. WHILE……WEND


    REM
    CLS
    I = 10
    WHILE I<=100
    PRINT I,
    I= I + 10
    WEND
    END


iii.DO WHILE ….LOOP


    REM
    CLS
    I = 10
    DO WHILE I <= 100
    PRINT I,
    I = I + 10
    LOOP
END

iv. DO….LOOP WHILE


    REM
    CLS
    I = 10
    DO
    PRINT I,
    I = I + 10
    LOOP WHILE I <= 100
    END

v. DO UNTIL….LOOP


    REM
    CLS
    I = 1
    DO UNTIL I > 100
    PRINT I,
    I = I + 1
    LOOP
    END


vi. DO….LOOP UNTIL


    REM
    CLS
    I = 1
    DO
    PRINT I,
    I = I + 1
    LOOP UNTIL I>100
    END


9.     WAP to display 10,20,30….100. . [USE FOR…NEXT, WHILE….WEND, DO WHILE……LOOP, DO….LOOP WHILE, DO UNTIL….LOOP, DO….LOOP UNTIL]


i. FOR….NEXT


    REM
    CLS
    FOR I = 10 TO 100 STEP 10
    PRINT I,
    NEXT I
    END


ii. WHILE…WEND


    REM
    CLS
    I = 1
    WHILE I <=100
    PRINT I,
    I = I + 1
    NEXT I
    WEND
    END


iii. DO WHILE….LOOP


    REM
    CLS
    I = 1
    DO WHILE I <= 100
    PRINT I,
    I = I + 1
    LOOP
    END


iv. DO….LOOP WHILE


    REM
    CLS
    I = 1
    DO
    PRINT I,
    I = I + 1
    LOOP WHILE I <= 100
    END


v. DO UNTIL…..LOOP


    REM
    CLS
    I = 10
    DO UNTIL I > 100
    PRINT I,
    I = I + 10
    LOOP
    END


vi. DO….LOOP UNTIL


    REM
    CLS
    I = 10
    DO
    PRINT I,
    I = I + 10
    LOOP UNTIL I > 100
    END


10. WAP to display all even numbers from 50 to 1. [USE FOR…NEXT, WHILE….WEND, DO WHILE……LOOP, DO….LOOP WHILE, DO UNTIL….LOOP, DO….LOOP UNTIL]


i. FOR….NEXT


    REM
    CLS
    FOR I = 50 TO 2 STEP -2
    PRINT I,
    NEXT I
    END


ii. WHILE…..WEND


    REM
    CLS
    I = 50
    WHILE I <= 2
    PRINT I,
    I = I – 2
    NEXT I
    WEND
    END


iii. DO WHILE……LOOP


    REM
    CLS
    I = 50
    DO WHILE I <= 2
    PRINT I,
    I = I – 2
    LOOP
    END


iv. DO LOOP…..WHILE


    REM
    CLS
    I = 50
    DO
    PRINT I,
    I = I – 2
    LOOP WHILE I <= 2
    END


v. DO UNTIL….LOOP


    REM
    CLS
    I = 50
    DO UNTIL I<2
    PRINT I,
    I = I – 2
    LOOP    END


vi. DO….LOOP UNTIL


    REM
    CLS
    I = 50
    DO
    PRINT I,
    I = I – 2
LOOP UNTIL I<2
END

Saturday, April 26, 2014

MOTHER'S DAY

MOTHER'S DAY

Mother's Day is a celebration honoring mothers and motherhood, maternal bonds, and the influence of mothers in society. It is celebrated on various days in many parts of the world, most commonly in spring. It complements similar celebrations honoring family members, such as Father's Day and Siblings Day. The celebration of Mother's Day began in the United States in the early 20th century; it is not related to the many celebrations of mothers and motherhood that have occurred throughout the world over thousands of years such as the Greek cult to Cybele the Roman festival of Hilaria or the Christian Mothering Sunday celebration originally a celebration of the mother church, not motherhood. Despite this, in some countries Mother's Day has become synonymous with these older traditions.

IMPORTANT OF MOTHER

We all know what mother importance in our life is. Mother’s are very important and needed in child life. In our all life we learn different things from our mother.Mothers always teach us and her advice always very beneficial for us. We can’t ignore her advices. Mother is the nurturers & custodian of their kids and families. It is harder these days for mothers to be capable to be with their kids to the extent that
they utilized to be because generally two parents require working full-time jobs just to stay alive or survive.
Mother’s always our very close and best friend and she is only person in the world who never deceives to their children. Mother is always deserved for everything. If our mother‘s are does everything for us then it’s our responsibility to do everything for her. he keeps a very important place in our life. Without mother our life is black & white. We should be friendly with mothers. We should respect her. Mother prayers always makes us successful person. We know mother’s day come once in the year and on this special day we wish to our mothers and make mother’s day special.

MY MOTHER


My mother name is Manju Dhungana . She is 45 years old.She very good.She help us in every thing. She can understand our feelings. She teach us every things like manner,good habit,etc.She is the person who who gives us birth and shows this beautiful world. My mother is quite different from other.She will always support to me in any case.I love my mother very and i know that she always love me more then me. Some time she will scold me then i will be angry with her then she will give me many gifts then i will be happy.asahe loves me very much.

Sunday, March 2, 2014

TOUR TO KAKANI


Date:6 and 7 falgun
 
Total time:2 days and 1 night 



Participants: Sital Budhathoki, Sangita Mahato, christina rana, brinda limbu, dristi dhungana, sudha nakarmi, sugata karki, suzana tamang, swastika khadka, sushmita k.c, archana sapkota, Amisha dahal, Abhisha rai, Helina shrestha,Sabita rai, Janaki joshi, Sugan thapa, Rupen tulachan, Samir thapa, Surendra tamang, Tejesh bharati, Diwash pokheral, Sunil shakya, Aayush shrestha, Bishal k.c, Sushant manandhar,Manish Rai,Saugat Rai, Raganish Mahat ,Sandesh Acharya.
Teachers: Mahendra Sir, Rajan Sir , Deepak Sir, K.D. Sir










We started our journey to Kakani  from school starting from 12:00 clock by bus we departed from school. We spent about one hour in bus  starting from school to panchpani. Then we walked towards the forest from starting from army camp. 
 
While walking in jungle we sang some melodious songs and enjoyed ourselves. While walking in jungle we heard melodious sound of various birds. After long walk we stopped for sometime to have lunch and get power to walk further . We ate orange and coconut biscuit  and drank real juice provided by school faculty. After having all this we  continued our journey to Kakani. Our destination was to reach scout camp of kakani.

 
Me engoying







We visited kakani as our educational tour for two days and one night. We began our journey to kakani from Kathmandu by bus. It is located near to shivapuri dada. It took about one hour to reach panchpani.

Then we started our journey to kakani by waling. While walking we noticed many beautiful objects.

 We walked to kakani for four and half four. We heard many sounds of birds. We also saw many medicinal herbs. Whole the place was covered with forest. We feel like we were in jungle savari.