Monday 4 November 2019

WAP to display string concatenation using string operation.
CLS
INPUT " Enter first name "; N$
INPUT " Enter last name "; L$
PRINT " N$+L$
END
WAP to calculate simple interest from the supplied principle, time , and rate.
CLS
INPUT " Enter principle  ";P
INPUT " Enter time "; T
INPUT " Enter rate "; R
I = P * T * R / 100
PRINT " Simple interest ="; I
END
WAP that calculates volume of cylinder from the supplied radius and height.
CLS
INPUT " Enter radius ";R
INPUT " Enter height "; H
V = 22/7*R^2*H
PRINT " Volume of cylinder =";V
END
WAP to accept time in hours and display display it in seconds with an appropriate message.
CLS
INPUT " Enter time in hours ";H
S = H * 60 * 60
PRINT " Time in seconds ="; S
END
WAP that asks  the length of broad in feet and calculates its equivalent length in inches.
CLS
INPUT " Enter length in feet "; F
I = F * 12
PRINT " length in inches ="; I
END
WAP that asks Nepal I currency and convert into its equivalent dollar.
CLS
INPUT " Enter Nepalese currency "; N
D = N/85
PRINT " Dollar value =";D
END
WAP that accepts a radius of a circle and display its area and circumference.
CLS
INPUT " Enter radius "; R
A = 22/7 * R^2
C = 2 * 22/7 * R
PRINT " Area of circle ";C
PRINT " Area of circumference";C
END
A man bought a computer at Rs.22300 and sold it at Rs 24,500. WAP to calculate his profit percent.
CLS
LET CP = 22300
LET SP = 24500
P = SP - CP
PP = P/C * 100
PRINT "Profit percentage ="; PP

  • END
A salesman sold 5 television at the rate of Rs. 19500 each . WAP to calculate total amount.
CLS
LET  T = 5
LET  R = 19500
TA = T * R
PRINT " Total amount ="; TA
END

WAP that asks base and height of a triangle and calculate its area.
CLS
INPUT " Enter base";B
INPUT " Enter height";H
A = 1/2 * (B * H)
PRINT " Area of triangle=";A
END
There are 17girls and 21 boys in class. WAP to find percentage of boys and girls.
CLS
LET G = 17
LET B = 21
T = G+B
GP = G/T *100
BP = B/T * 100
PRINT " Girls percentage =";GP
PRINT " Boys percentage ="; BP
END
A rectangular  box is 17m long ,5m wide and 3m talk. WAP to calculate its area and volume.
CLS
LET L = 17
LET B = 5
LET H = 3
A = L*B
V = L * B * H
PRINT "Area of box="; A
PRINT "Volume of box=";V
END
WAP that asks your marks in English,Nepal I,computer and science and calculate your total marks and percentage.
CLS
INPUT "Enter marks in English=";E
INPUT "Enter marks in Nepali=";N
INPUT "Enter marks in Computer=";C
INPUT "Enter marks in Science=";S
T=E+N+C+S
P=T/4
PRINT "Total marks =";T
PRINT "Total percentage =";P
END
Write a program in basic to find product and difference of any two constant numbers.
CLS
Let A =50
Let B = 60
P = A*B
D = A-B
PRINT "Product of two number=";P
PRINT "Product of two number=";D
END