Page 108 - TechPluse_C6_Flipbook
P. 108

8.    INPUT "Enter your age: ", age

                        if age >= 18 then
                           PRINT "You are eligible to vote."
                        else
                           PRINT "You are not eligible to vote."
                        end if


                    Lab Session                                                                           Interdisciplinary



                    Write a program in BASIC-256 to:
                    1.   calculate the area of a circle with a radius of 5 unit. [Hint: Area = 3.14*radius*radius]
                    2.   perform all the arithmetic operations between the two numbers.
                    3.  calculate the square root of a number input by the user.
                    4.  calculate the perimeter of a rectangle.




                  Teacher's Note

                    1.  Discuss about basic fundamental concepts of BASIC-256 with the students.
                    2.  Explain different types of operators in BASIC-256 to the students.
                    3.  Go through all the topics covered in this chapter.













































               106      Premium Edition-VI
   103   104   105   106   107   108   109   110   111   112   113