Draw a flowchart and write a Q BASIC program ....Calculate the perimeter and area of a rectangular field.Take length and breadth from user??
Answers
Answered by
7
Question:-
- Draw a flowchart and write a QBASIC program. Calculate the perimeter and area of a rectangular field.Take length and breadth from user.
Program:-
Flowchart is given in the attachment.
I am giving the program here.
CLS
INPUT "ENTER LENGTH: ";L
INPUT "ENTER BREADTH: ";B
P=2*(L+B)
A=L*B
PRINT "PERIMETER IS: "+P
PRINT "AREA IS: "+A
END
Symbols Used in this flowchart:-
- Rounded Rectangle:-Used for Start/Stop Box.
- Parallelogram:- Used for taking Input/Output.
- Square:- Used for processing and calculations.
Attachments:
![](https://hi-static.z-dn.net/files/d10/92a11cf6b760409b2e997401cd1abd48.jpg)
Similar questions