Friday, October 4, 2019

Qbasic program to print area of rectangle

CLS
INPUT "Enter the length"; L
INPUT "Enter the breadth"; B
A = L*B
PRINT "Area of rectangle="; A
END

Qbasic to print area of circle

CLS
INPUT "Enter the radius"; R
A = 22/7*R^2
PRINT "Area of circle="; A
End

Qbasic to print area of trangLe

ClS
INPUT "Enter base"; B
INPUT "Enter height"; H
A = 1/2*B*H
PRINT "Area of triangle="; A
END

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

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...