## Write an Algorithm and program to enter the length & breadth of a room and calculate and print its area and perimeter.

Solution: Aim of Experiment: To calculate the and print the area and perimeter of a room. system Requirement: Software: O/S: Win 98 or Above Application: Qbasic software Hardware: Processor: PIV or Above RAM: 64 MB or Above Algorithm: Step 1: Start Step 2: Assign the value of length and breath Step 3: Calculate the area and perimeter using formula area=lxb and perimeter=4πr2 Step 4: Print area and perimeter Step 5: Stop Flowchart: Draw the flowchart… Source Code: CLS PRINT “****Calculate the Area and perimeter of room****” PRINT “######################################” LET pi=3.14 INPUT “Enter the length :”, l INPUT “Enter the Breath :”, b         area = l * b PRINT “Area=”, area INPUT “Enter the Radius”, r         perimeter = 4 * pi * (r * r) PRINT “Perimeter=”, perimeter END 6. Output: Enter the Length: 5 Enter the Breath: 6 Area=30 Enter the Radius: 3 Perimeter = 113.04 7. Conclusion:  Likewise using above source code and formula we can find out the Area and or perimeter of a room in… View All ….“Write an Algorithm and program to enter the length & breadth of a room and calculate and print its area and perimeter.”

## WAP to check the given number is armstrong or not

#Write a Qbasic Program to check either given number is armstrong or not? Solution: CLS INPUT “ENTER A NUMBER”; N S = N WHILE N <> 0 A = N MOD 10 R = R + A ^ 3 N = FIX(Na / 10) WEND IF S = R THEN PRINT “THE GIVEN NUMBER IS ARMSTRONG” ELSE PRINT “IT IS NOT ARMSTRONG” END IF END  You can also see on videos भिडियाे साभार ः टेक्निकल स्कूल च्यानल id=SSICEpCGsAY