Posts

Showing posts from October, 2019

Computer dashain homework

1)write a program in QBasic to find product and different of any words constant number. CLS LETS  A= 50 LETS  B= 60 P= A*B D=A-B PRINT"PRODUCT OF TWO NUMBER=";P PRINT"DIFFERENCE OF TWO NUMBER=";D END 2)write a program that asks your marks in english,nepali,  computer and science and calculate your total marks and percentage. CLS INPUT"ENTER MARKS IN ENGLISH=";E INPUT"ENTER MARKS IN NEPALI=";N INPUT"ENETR MARKS IN COMPUTER=";C INPUT"ENTER MARKS IN SCIENCE=";S T=E+N+C+S P=T/4 PRINT"TOTAL MARKS=";T PRINT"PERCENTAGE=";P END 3)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 4)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 5)CLS INPUT"ENTER BASE=";B INPUT"ENTER HEIGHT=";H A=1/2*(B*H) PRINT"AREA OF TRIANGLE=";A END 6)CLS LET T=5 LET R=1