DECLARE FUNCTION AGE$ (A)
CLS
INPUT "ENTER AGE OF A PERSON:"; A
PRINT "THE PERSON IS ="; AGE$ (A)
END
FUNCTION AGE$ (A)
IF A > = 16 THEN P$ = "VALID TO VOTE" ELSE P$ = "NOT VALID TO VOTE"
AGE$ = P$
END FUNCTION
Questions
Quick Access
Exam Capsule
MCQ
Articles
Institutes
Notices
Top Topics
Write function procedure to input age of a person and check whether the person is valid to vote or not. The condition for validity is age >= 16.
DECLARE FUNCTION AGE$ (A)
CLS
INPUT "ENTER AGE OF A PERSON:"; A
PRINT "THE PERSON IS ="; AGE$ (A)
END
FUNCTION AGE$ (A)
IF A > = 16 THEN P$ = "VALID TO VOTE" ELSE P$ = "NOT VALID TO VOTE"
AGE$ = P$
END FUNCTION
Who is a system analyst? What are the characteristics of system analysts? 1
What are the different stages of the system development life cycle (SDLC) 1
What do you understand about AI? What are the negative and positive aspects of AI in society? 1
How does an AI application work? Can a computer really think with the aid of AI? 1
PathshalaNepal.com is a Registered Company of E. Pathshala Pvt Ltd Nepal. Registration number : 289280
© 2020. All right Reversed.E. Pathshala Pvt Ltd