Você está na página 1de 2

1 A program to find the area of a circle Print" The volume of box =" ;Volume

CLS End
LET pie = 3.14
6 Display square and square root of an input
INPUT "Enter radius of circle"; r
number.
a = pie * r ^ 2
PRINT "The area of the circle is"; a CLS
END INPUT “ENTER ANY NUMBER”; N
S=N^2
2 Write a program to find out the simple Sq = N ^ (1 / 2)
Interest. PRINT “SQUARE OF NUMBER ”; S
Cls PRINT “SQUARE ROOT OF NUMBER ”; Sq
Input " Enter the Principal"; P END
Input " Enter the Rate"; R
Input " Enter the Time"; T 7 Wap that asks to input temp in Fahrenheit
Let I = P*T*R/100 and calculate its temp in Celsius.
Print " The simple Interest = "; I CLS
End INPUT “ENTER TEMPERATURE IN
FARENHEIT”; F
3 Write a program to enter any two numbers C = (F – 32) * (5 / 9)
their Sum, Product and the Difference. PRINT “TEMPERATURE IN CELCIUS=”; C
CLS END
Input "Enter any number" ;A
Input "Enter any number" ;B 8. Wap that asks to input temp in Celsius and
calculate its temp in Fahrenheit.
Let Sum = A+B
CLS
Let Difference= A-B INPUT “ENTER TEMPERATURE IN Celsius”;
Let Product = A*B C
Print" the sum =" ;Sum F = (9/5)*C+32
Print" the Difference =" ;Difference PRINT “TEMPERATURE IN
Print" the Product =" ; Product FAHRENHEIT=”; F
End END
4 Wap to that ask to input the name of the item 9. Write a program to enter any three
and no of item u want to buy then calculate the numbers,sum and the average.
price you have to pay for them. Cls
Input " Enter any number" ;A
Cls Input " Enter any number" ;B
input” enter the item name”; i$ Input " Enter any number" ;C
input “the number of item you want to buy” ; n Let Sum = A+B+C
p= i * n Let Average =Sum/3
print “the price to pay=” ;p Print" The sum=" ;Sum
end Print" The Average is " ;Average
End
5. Write a program to find the volume of the
box. 10 Write a program to input student's name,
Cls marks obtained in four different subjects, find
Input " enter the length " ;l the total and average marks.
Input " enter the breadth " ;b cls
Input " enter the height " ;h Input" Enter the name " ;N$
Let Volume= l*b*h Input" Enter the marks in English" ;E
Input" Enter the marks in Maths" ;M 15 WAP to Calculate distance.
Input" Enter the marks in Science" ;S [S=UT+1/2(AT2)]
Input" Enter the marks in Nepali" ;N
Let S=E+M+S+N REM CALCULATE DISTANCE
Let A=S/4 CLS
Print " The name of the student is" ;N$ INPUT “ENTER INITIAL VELOCITY”; U
Print " The total marks is" ;S INPUT “ENTER TIME”; T
Print " The Average marks" ;A INPUT “ENTER ACCELARATION”; A
End S=U*T+1/2*A*T^2
PRINT “DISTANCE TRAVELLED = “; S
11 Write a program to convert the distance to END
kilometer to meter.
Cls
16 WAP CALCULATE POTENTIAL
Input" Enter the kilometer"; K
Let M=K*1000 ENERGY OF BODY
Print " The miles = "; M CLS
End LET G=9.8
INPUT “ENTER MASS”; M
12 Write a program to enter the Nepalese INPUT “ENTER HEIGHT”; H
currency and covert it to Indian Currency. P=M*G*H
CLS PRINT “POTENTIAL ENERGY OF BODY”; P
Input “Enter the Nepalese currency”; N END
Let I = N * 1.6
Print “the Indian currency=”; I 17 WAP TO CALCULATE KINETIC
End
ENERGY
CLS
INPUT “ ENTER MASS”; M
13 Write a program to enter any number and
INPUT “ENTER VELOCITY”; V
find out whether it is negative or positive. P = 1/2(M *V^2)
CLS PRINT “POTENTIAL ENERGY OF BODY”; P
Input “Enter the number”; N END
If N>0 Then
Print “ The number is positive” 18 Write a program to enter your name, city,
Else country, age and print them.
Print “The number is negative” CLS
EndIf Input " Enter the name ";N$
End Input " Enter the city";C$
Input " Enter the country";CO$
14.Display total surface area of cuboid / box. Input " Enter the age";A
Print " The name is ";N$
CLS Print " The city is ";C$
INPUT “ENTER LENGTH”; L Print " The country is ";CO$
INPUT “ENTER BREADTH”; B Print " The age is ";A
INPUT “ENTER HEIGHT”; H End
T= 2 * (L * B + B * H + H * L)
PRINT “TOTAL SURFACE AREA OF
CUBOID“; T
END

Você também pode gostar