0% found this document useful (0 votes)
9 views

QBASIC Program

The document discusses programming concepts and algorithms. It includes questions about using nested if/then/else statements to calculate student scores and grades, using for, do, and while loops to print outputs, and designing a flowchart to calculate the area and perimeter of a rectangle. The flowchart algorithm takes length and breadth values as input, calculates the area as length times breadth and perimeter as 2 times the sum of length and breadth, and prints the outputs.

Uploaded by

xqc6bwrjgb
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

QBASIC Program

The document discusses programming concepts and algorithms. It includes questions about using nested if/then/else statements to calculate student scores and grades, using for, do, and while loops to print outputs, and designing a flowchart to calculate the area and perimeter of a rectangle. The flowchart algorithm takes length and breadth values as input, calculates the area as length times breadth and perimeter as 2 times the sum of length and breadth, and prints the outputs.

Uploaded by

xqc6bwrjgb
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Question 2: Write a program that will compute the scores and grades of student using the NESTED IF,

THEN and ELSE STATEMENT and print the output. Page 9


Question 5: Write a programs that will implement FOR, DO and WHILE LOOPs, print out there
various output Page 10
ii) Write and also design flowchart to find out the area and perimeter of rectangle

Page 4

Algorithm

Step 1: Start Start


Input
Value of L, B
Step 2: Input Side Length and Breadth say L, B AREA = L x B

Perimeters = 2 x (L+ B)
Step 3: Area L x B
Print AREA of PERIMETER

Step 4: PERIMETER = 2 x (L +B) Start

Step 5: Display AREA, PERIMETER

Step 6: Stop

Design Using PowerPoint

You might also like