Computer Science, asked by disharohangupta, 4 months ago

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 anindyaadhikari13
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:-

  1. Rounded Rectangle:-Used for Start/Stop Box.
  2. Parallelogram:- Used for taking Input/Output.
  3. Square:- Used for processing and calculations.
Attachments:
Similar questions