Friday, October 4, 2019

Qbasic to print area of 4 walls

CLS
INPUT "Enter the length"; L

INPUT "Enter the breadth"; B
INPUT "Enter the height"; H
A = 2*H*(L+B)
PRINT "Area of four walls="; A
END

Qbasic to print area of square

CLS
INPUT "Ente the length"; L

A = L^2
PRINT "Area of square="; A
END

Qbasic to print volume of box

CLS
INPUT "Enter the length"; L
INPUT "Enter the breadth": B
INPUT "Enter the height"; H
V = L*B*H
PRINT "Volume of box="; V
END 

Qbasic to print volume of cube

CLS
INPUT "Enter the length"; L

V = L^3
PRINT "Volume of cube="; V
END

Qbasic to print volume of cylinder

CLS
INPUT "Enter the radisu"; R

INPUT "Enter the height"; H
V =  22/7*R^2*H
PRINT "Volume of cylinder="; V
END

Qbasic to check no is positive,negative or zero

CLS
INPUT "Enter any number"; N

IF N>0 THEN
PRINT "The number is positive"

ELSEIF N<0 THEN
PRINT " The number is negative"

ELSE
PRINT "The number is zero"

END IF
END

Qbasic to check no is odd or even

CLS
INPUT "Enter any number"; N

IF N MOD 2 = 0 THEN
PRINT "The number is even"

ELSE
PRINT "The number is odd"

END IF
END

Peer to Peer Network

Peer to Peer Network Peer-to-Peer  is a  network model in which each computer can function as both a client and a server. Any computer in th...