Friday, October 4, 2019

Qbasic programming


1)   Program to find greatest among 3 numbers using SUB

DECLARE SUB GREAT(A,B,C)
CLS
INPUT"ENTER FIRST NUMBER";A
INPUT"ENTER SECOND NUMBER";B
INPUT"ENTER THIRD NUMBER";C
CALL GREAT(A,B,C)
SUB

SUB GREAT(A,B,C)
IF A>B AND A>C THEN
PRINT"GREATEST NUMBER IS";A
ELSEIF B>A AND B>C THEN
PRINT"GREATEST NUMBER IS";B
ELSE
PRINT"GREATEST NUMBER IS";C
END IF
END SUB

2) Program to find area of box using FUNCTION
DECLARE FUNCTION AREA(L,B,H)
CLS 
INPUT"ENTER LENGTH";L
INPUT"ENTER BREADTH";B
INPUT"ENTER HEIGHT";H
PRINT"AREA OF BOX=";AREA(L,B,H)
END

FUNCTION AREA(L,B,H)
A=2*(L*B+B*H+L*H)
AREA=A
END FUNCTION




3)  Program to find area if 4 walls using FUNCTION
DECLARE FUNCTION AREA(L,B,H)
CLS
INPUT"ENTER LENGTH";L
INPUT"ENTER BREADTH";B
INPUT"ENTER HEIGHT";H
AR=AREA
PRINT"Area of 4 walls=";AREA(L,B,H)
END

FUNCTION AREA(L,B,H)
AREA=2*H*(L+B)
END FUNCTION

4)  DECLARE SUB CIRCLE(R)
CLS
INPUT"ENTER RADIUS";R
CALL CIRCLE(R)
END

SUB CIRCLE(R)
C=2*22/7*R
PRINT"CIRCUMFERENCE OF CIRCLE=";C
END SUB

5)  Program to find whether the given no. is divisible by 13 or not using SUB
DECLARE SUB CHECK(N)
CLS 
INPUT"ENTER ANY NUMBER";N
CALL CHECK(N)
END

SUB CHECK(N)
IF N MOD 13=0 THEN 
PRINT"DIVISIBLE BY 13"
ELSE
PRINT"NOT DIVISIBLE BY 13"
END IF
END SUB



6)  Program to find volume of box using FUNCTION
DECLARE FUNCTION VOL(L,B,H)
CLS
INPUT"ENTER LENGTH";L
INPUT"ENTER BREADTH";B
INPUT"ENTER HEIGHT";H
PRINT"VOLUME OF BOX=";VOL(L,B,H)
END

FUNCTION VOL(L,B,H)
V=L*B*H
VOL=V
END FUNCTION

7) Program to print only vowels from given word using SUB
DECLARE SUB DISPLAY(N)
CLS
INPUT"ENTER ANY WORD";N$
CALL DISPLAY(N$)
END

SUB DISPLAY(N$)
FOR I= 1 TO LEN(N$)
B$= MID$(N$,I,1)
C$= UCASE$(B$)
IF C$="A" OR C$="E" OR C$="I" OR C$="O" OR C$="U" THEN D$=D$+B$
NEXT I
PRINT"VOWELS="D$
END SUB

8)  Program to calculate distance using FUNCTION
DECLARE FUNCTION DISTANCE(A,U,T)
CLS
INPUT"ENTER ACCELERATION",A
INPUT"ENTER INITIAL VELOCITY";U
INPUT"ENTER TIME";T
PRINT"DISTANCE TRAVELLED=";DISTANCE(A,U,T)
END

FUNCTION DISTANCE(A,U,T)
S=U*T+1/2*A*T^2
DISTANCE=S
END FUNCTION

9)  Program to find area of box using FUNCTION
DECLARE FUNCTION AREA(L,B,H)
CLS 
INPUT"ENTER LENGTH";L
INPUT"ENTER BREADTH";B
INPUT"ENTER HEIGHT";H
PRINT"AREA OF BOX=";AREA(L,B,H)
END

FUNCTION AREA(L,B,H)
A=2*(L*B+B*H+L*H)
AREA=A
END FUNCTION


10) 

Program to find area if 4 walls using FUNCTION

DECLARE FUNCTION AREA(L,B,H)
CLS
INPUT"ENTER LENGTH";L
INPUT"ENTER BREADTH";B
INPUT"ENTER HEIGHT";H
AR=AREA
PRINT"Area of 4 walls=";AREA(L,B,H)
END

FUNCTION AREA(L,B,H)
AREA=2*H*(L+B)
END FUNCTION

11) 

Program to find circumference of circle using SUB

DECLARE SUB CIRCLE(R)
CLS
INPUT"ENTER RADIUS";R
CALL CIRCLE(R)
END

SUB CIRCLE(R)
C=2*22/7*R
PRINT"CIRCUMFERENCE OF CIRCLE=";C
END SUB
12)

Program to find whether the given no. is divisible by 13 or not using SUB

DECLARE SUB CHECK(N)
CLS 
INPUT"ENTER ANY NUMBER";N
CALL CHECK(N)
END

SUB CHECK(N)
IF N MOD 13=0 THEN 
PRINT"DIVISIBLE BY 13"
ELSE
PRINT"NOT DIVISIBLE BY 13"
END IF
END SUB

13)




Program to find volume of box using FUNCTION

DECLARE FUNCTION VOL(L,B,H)
CLS
INPUT"ENTER LENGTH";L
INPUT"ENTER BREADTH";B
INPUT"ENTER HEIGHT";H
PRINT"VOLUME OF BOX=";VOL(L,B,H)
END

FUNCTION VOL(L,B,H)
V=L*B*H
VOL=V
END FUNCTION
14)

Program to print only vowels from given word using SUB

DECLARE SUB DISPLAY(N)
CLS
INPUT"ENTER ANY WORD";N$
CALL DISPLAY(N$)
END

SUB DISPLAY(N$)
FOR I= 1 TO LEN(N$)
B$= MID$(N$,I,1)
C$= UCASE$(B$)
IF C$="A" OR C$="E" OR C$="I" OR C$="O" OR C$="U" THEN D$=D$+B$
NEXT I
PRINT"VOWELS="D$
END SUB
15)
Program to print only vowels from given word using SUB
DECLARE SUB DISPLAY(N)
CLS
INPUT"ENTER ANY WORD";N$
CALL DISPLAY(N$)
END

SUB DISPLAY(N$)
FOR I= 1 TO LEN(N$)
B$= MID$(N$,I,1)
C$= UCASE$(B$)
IF C$="A" OR C$="E" OR C$="I" OR C$="O" OR C$="U" THEN D$=D$+B$
NEXT I
PRINT"VOWELS="D$
END SUB
16)

Program to calculate distance using FUNCTION

DECLARE FUNCTION DISTANCE(A,U,T)
CLS
INPUT"ENTER ACCELERATION",A
INPUT"ENTER INITIAL VELOCITY";U
INPUT"ENTER TIME";T
PRINT"DISTANCE TRAVELLED=";DISTANCE(A,U,T)
END

FUNCTION DISTANCE(A,U,T)
S=U*T+1/2*A*T^2
DISTANCE=S
END FUNCTION
17)

Program to print simple interest using FUNCTION

DECLARE FUNCTION SIMPLE(P,T,R)
CLS
INPUT"ENTER PRINCIPLE";P
INPUT"ENTER TIME"T
INPUT"ENTER RATE";R
PRINT"Simple Interest=";SIMPLE(P,T,R)
END

FUNCTION SIMPLE(P,T,R)
S=(P*T*R)/100
SIMPLE=S
END FUNCTION
18)

Program to check whether the given word is palindrome string or not using FUNCTION

DECLARE FUNCTION PAL$(N$)
CLS
INPUT"ENTER ANY WORD";N$
P$=PAL$(N$)
IF N$=P$ THEN
PRINT"The given word is palindrome"
ELSE
PRINT"The given word is not palindrome"
END

FUNCTION PAL$(N$)
FOR I= LEN$(N$) TO 1 STEP -1
B$= MID$(N$,I,1)
C$=C$+B$
NEXT I
PAL$=C$
END FUNCITON
19)

Program to check whether the given no is armstrong number or not using FUNCTION

DECLARE FUNCTION ARM(N)
CLS
INPUT"ENTER ANY NUMBER";N
A=P
P=ARM
IF A=P THEN
PRINT"The given no is armstrong"
ELSE
PRINT"The given no is not armstrong"
END IF
END

FUNCTION ARM(N)
S=0
WHILE N<>0
R=N MOD 10
S=S+R^3
N=N\10
WEND
ARM=S
END FUNCTION
20)

Program to find the factors of a number using FUNCTION

DECLARE FUNCTION FACT(N)
CLS
INPUT"ENTER ANY NUMBER";N
PRINT"FACTOR=";FACT(N)
END

FUNCTION FACT(N)
FOR I= 1 TO N
IF N MOD I=0 THEN
PRINT I
NEXT I
END FUNCTION

Saturday, August 31, 2019

My father


   
 
    My Father


my name is Sonam Sherpa. I live in Chabahil , Lampokhari . I am 15 years old . I study in grade 9. my  father name is mingma  shalaka .  He is 43 years old. he works in Afghanistan. He work so hard. My father is very kind-hearted person and my real hero and best 
friend . He tells me that he discuss his all life  events to me to give experience  and take right  steps in t future.  He w to make me a  good  person in the life and  most importantly  a successful p   He is t person who  always helps  the needy  people in  anywhere  on the  way. He teaches me about how  tob  fit,  healthy, happy  and a peaceful  person all through the life. He is the good adviser in m family, every family member takes advice  from him whenever they get problem. He  is the head of the family and always  takes first seat while eating  food at dining table

Experience of election

          Experience of election commission
On 3rd bhadra students of grade 10 were  taken to the election commission. To learn about the election process. we were told to you arrive in the school by 9:45 and after that . After the the arrival of all student we all line income down on ground. Then we slowly move to bus to get for our destiny. After your inter in bus. Driver started the bus and move from there at 10 .29. on the way we saw many bus  bike at jam. The way where going was not jam. We had so much fun in bus .

murali sir told us to not to behave like monkey . Sir told us many things. We reached over there at 10:45 and one lady welcome us over there and told about end so as many years ago ballot paper box and many more. They separated into two groups section a and section b. Section A  went  to visual lab  and b were playing quiz games about election. In visual how to put to put anything when it was established. Din section B went to play games like true or false etc. They had audio and visual lab over there .

 We had so many phone and many new things of election. One one mam give us long speech about election. That was so boring that half an hour students went to sleep. We were forced to listen speech. I was feeling so bored that I wanted to go to washroom and wash my face. Then then after while speech got over and then we  tooks 15 minutes break. Then mam told about  the ballot machine. Then mam told we will get chance to to use bollat machine. Then mam told US student to stand for Captain post. Three student of our class stand.  First day give some speech about what they will do when they will get the post of the captain. 


everyone was so happy that they are going to use ballot machine for the first time. Everyone was too excited to use ballot machine. We all got line up get ready to vote for 3 candidates. Everyone gave their vote  to the right candidate. We all give them vote  and the winner was simson. You are so happy for our support and love. Then we came in line to our bus. Then we went to bus to go to school. Thank you.



Sunday, August 18, 2019

Drugs



On Shrawan 26,2076. We students of grade 10 attended a class in which we were counseled about the drug and alcohol abuse by police team.This was our second class by police team but this time it was all about  drug abuse.Generally,we were known about drug abuse before too from various books but we actually have come to know about various facts about drugs in more intellectual manner regarding it's causes and intricacies.

The class was really interesting due the use of multimedia.We came to know the types of drugs and it's nature.The class was really informative as the attractive visual representation kept us engaged in learning process about drug abuse.policeman  even shared his story about how he was persuaded to involve in such basic drug abuse  in his childhood.And from his story,we even learnt that  to become cool is also one of the factors of drug abuse.We were also shown some of the pictures which were  all about the consequences one has to face after the excessive usage of drugs which motivated us to stay away from the use of drugs.The presentation had also some videos which indicated that how one neglect his Carrier and family due to the usage of drugs.We were also awared that peer pressure and negligence for family and society ethics are also the causes of drug abuse which ruins our studies,carrier and prestige in the society.

We gain knowledge and ideas from this classwhich  was really informative. I would like to thank our principal sir for providing this class. We learnd that we should not involve in drug and say no to drugs .



Sunday, July 21, 2019

Experience of hike

Hello It's me sonam to share my experience on the hike organized by our school on 20th July. We moved from school around 7:30 am.
 

We have been organizing mini trek from  

Changu Narayan Temple to Nagarkot. This is the shortest trek around Kathmandu Valley and thus it does not require high level of physical fitness. Trek from    

Changu Narayan Templet t

o Nagarkot continues from Chisapani. We will drive from Kathmandu to Sundarijal and then take short hike . From Sundarijal, we will climb the stairs and walk along pipes that carry water to Kathmandu citizens to the entry point of Shivpuri National Park. We will cross the verdant forest and arrive at Tamang village of Mulkharka. Crossing the small Bhanjyang, we will make it .

We reached our first destination around 10 which was the Changu Narayan Temple. We were amazed by the beauty of the temple it is said that the Temple is old than than The USA. It is believed to be made by the king Mandev. Then after 30 minutes we moved on to the Trisuli Dada which was around 45 minutes walk. We enjoyed the scenery of the Kathmandu valley from the top. There were so many buildings but very less trees.

After that we stopped in a place where there was a drinking water we all filled up our bottles washed our face and rest a while while resting we share all the photo we heaved clicked together. Then we went through the road of telkot and walked a quite downhill.

Then we reached the Entrance of the Mohan Pokhari there was a small waterfall then we climed up the way was toward the stone were small the soil was slippery and we had a hard time going up.

Then we rest for sometime waiting for others to gather up then we had our tiffing all together then we went by playing with water went down. To the small water fall by this time the rain was going on so going down was more difficult then climbing we nearly slipped.

We reached our first destination around 10 which was the Changu Narayan Temple. We were amazed by the beauty of the temple it is said that the Temple is old than than The USA. 



Then we rest for sometime waiting for others to gather up then we had our tiffing all together then we went by playing with water went down. To the small water fall by this time the ,rain was going on so going down was more difficult then climbing we nearly slipped. But we enjoyed the difficult times as we were enjoying such a walking experience.


Monday, June 17, 2019

experience

Sericultural Development Division


We all students of Class 10 were visited  sericultural development Division .It was related to Chapter of science subject .We were taken to khopasi , kavre to learn about silkworm and its farming .We moved to khopasi on 10 am and we reached on 12 :25 .Our principal Rajan sir and our science teacher Ramesh sir went with us for guaidence. I learn many things about silkworm and its cultivation.

It took us more than 2 hours to reach the center. We were guided by the manager of the center to observe the place. There we were able to see the silk moth in their different stages. We also saw the machines required for the rearing of silk worm and the machines required for the production of the silk. We then visited the area where mulberry plants were planted. There were 21 varieties of mulberry available there. We were notified that canva 2 of those varieties was the best for silk worm. There was a smoker where the cocoons were kept to produce silk. 


Silkworm is very useful for human beings and silk thread is obtained from the cocoon. Silk is used to prepare beautiful and durable clothes like sari,tie,etc. and it is also used to prepare parachute, special type of type forcats, the outer covering of telephone wire,etc.  


We learnd many thing about silk worm and sericulture from this visit .I would like to thank our science sir Ramesh sir and our principal rajan sir for providing this.

Saturday, May 18, 2019

Cyber crime

We recently got a class on cyber crime. cyber crime includes of misuse of internet. So one police man came in our school and taught about cuber crime.

He teach us about cyber crime and many more. The class was about 2 hours.  The visual presentation had content about crime, security, crimes, their effects and preventive measures.

He warned us we should not to misuse the internet.We should not share our password even to the closest ones to assure security to our data. 

We should not download the files which are not verified.We should verify any app of link before clicking or using it. We should not keep in touch with bad peers to avoid any dangers. 

On the conclusion I like the class a lot because it taught if we had any problem then we should inform to parents or police.

Sunday, May 12, 2019

DRAMA EXPERIENCE

Aadhi    ko     Manoram   Nitra

      On 9th may our school took us to see a wonderful drama named "Aadhi ko Manoram Nitra" it was priced per person 150 rupees as we were in group this was the discounted price. The drama was educational based as in this drama we learned that why if a boy and a girl have a nice relationship and they share things they are in relation which is a wrong concept as they can be best friends and next thing we saw was that teenagers should not fall in love as love can disturb the studies and which is a very bad thing in the young age so teenagers should focus on the ways to improve the study and over come the various obstacles in their way but not to choose the partner they want to spend there life to as they are young  for this. As now a days teenagers have many friends form which some are bad where as some are good for them but they should know that they should not fall in any type of addiction through peer pressure they get from there friends like they may ask u to smoke but u should be able to say no because the addiction for every things cause various health related problems which empty the money of your family they have earned to make you a good and successful man in the future. It may also cause various conflict in your family. 


Sunday, January 20, 2019

Experince of pokhara


Tour to pokhara  


By far the easiest way to reach Chitwan is  leave the Thamel end of Kantipath in Kathmandu at around 7am. From Pokhara, tourist bus    depart from the tourist bus stand at 7.30am.
Image may contain: 7 people, including Sonam Cerpa Cerpa, tree and outdoor
Image may contain: night, sky, outdoor, water and naturePokhara is a city on Phewa Lake, in central Nepal. It’s known as a gateway to the Annapurna Circuit, a popular trail in the Himalayas. Tal Barahi Temple, a 2-story pagoda, sits on an island in the lake. On the eastern shore, the Lakeside district has yoga centers and restaurants. In the city’s south, the International Mountain Museum has exhibits on the history of mountaineering and the people of the Himalayas. Pokhara is considered the tourism capital of Nepal, being a base for trekkers undertaking the Annapurna Circuit through the Annapurna Conservation Area region of the Annapurna ranges in the Himalayas. The city is also home to a large number of the elite Gurkha soldiers. This lakeside city has spectacular scenery, adventure activities, and a variety of accommodation and food choices. It's a great place to relax with a view of the nearby snowy mountains. Pokhara is the gateway to maybe the most famous trek in the world, and certainly one the most spectacular ones. Spend anywhere between 16-28 days circling this Hamalayan peak, visiting Manang, Marpha and many other beautiful villages along the trek.
        
Image may contain: 10 people, including Deepak Shrestha and Sonam Cerpa Cerpa, people smiling, people standing and outdoor
Chitwan District Nepali  is one of 77 districts of Nepal, and is located in the southwestern part of Province No. 3 with Bharatpur, the fourth largest city of Nepal, as its district headquarters.
Palpa District Nepali a part of Province No. 5, is one of the seventy-seven districts of Nepal, a landlocked country of South Asia. The district, with Tansen Municipality as its headquarters, covers an area of 1,373  and has a population  of 261,180.
Butwal officially Butwal Sub-Metropolitan is one of the twin cities of rapidly growing Butwal-Bhairahawa urban agglomeration in Nepal. It lies in Province No. 5, Rupandehi District and also the interim capital of province 5 of Nepal. It is also home to the administrative headquarters of Lumbini Zone. Geographically, Butwal is at the intersection of Nepal's two different National Highways, Mahendra Highway and Siddhartha Highway. It connects western Nepal with the capital Kathmandu through highway and air links (via airport at Siddharthanagar). It is one of the fastest-growing cities in Nepal for education, infrastructure, highway, marketing, health and safety, communication, trade and banking sectors. It has highway connections to the Indian border at Sunauli and to the hilly towns in Tansen and Pokhara valley, and holds the title of being "The Best City in Nepal" five times in a row.Image may contain: 12 people, including Mahendra Limbu, Sonam Cerpa Cerpa and Deepak Shrestha, people smiling, people standing
Lumbinī is a Buddhist pilgrimage site in the Rupandehi District of Province No. 5 in Nepal. It is the place where, according to Buddhist tradition, Queen Mahamayadevi gave birth to Siddhartha Gautama in 563 BCE. Gautama, who achieved Enlightenment some time around 528 BCE, became the Buddha and founded Buddhism. Lumbini has a number of older temples, including the Mayadevi Temple, and various new temples, funded by Buddhist organisations from various countries, have been completed or are still under construction. Many monuments, monasteries and a museum, and the Lumbini International Research Institute are also within the holy site. Also, there is the Puskarini, or Holy Pond, where the Buddha's mother took the ritual dip prior to his birth and where he had his first bath. At other sites near Lumbini, earlier Buddhas were, according to tradition, born, then achieved ultimate Enlightenment and finally relinquished their earthly forms.Image may contain: 18 people, including Sonam Cerpa Cerpa, Deepak Shrestha and Rajan Acharya, people smiling, people standing and outdoor