Computer Science, asked by naniupadhyaya, 8 months ago

Write a program in qbasic to display the TSA of a room using SUB procedure ​

Answers

Answered by mshibli
9

Answer:

DECLARE SUB VOC (R,H)

DECLARE SUB VOH (R)

CLS

INPUT " ENTER RADIUS " ; R

INPUT " ENTER HEIGHT " ; H

CALL VOC (R,H)

CALL VOH (R)

END

SUB VOC (R,H)

C= ( 22 / 7 ) * R^2 * H

PRINT " VOLUME OF CYLINDER = " ; C

END SUB

SUB VOH (R)

H = (2/3) * (22/7) *R^3

PRINT "VOLUME OF HEMISPHERE = " ; H

END SUB

I purple you

forever stay gold

love

Answered by jisoo86
1

Answer:

I purple u army

Explanation:

2017 · FUNCTION VOC (R,H) VOC = (22/7) * R^2 * H. 2) WAP TO CONVERT NC INTO USD . DECLARE FUNCTION USD (NC) FUNCTION USD (NC) USD = (NC / 109) 3) WAP TO CALCULATE AREA OF SPHERE . DECLARE FUNCTION AREA (R) FUNCTION AREA (R) 4) WAP TO CONVERT USD INTO NC. FUNCTION NC (USD) 5) WAP TO CALCULATE THE AREA OF VOLUME OF BOX

Similar questions