Computer Science, asked by ishan0208, 5 months ago

Write a program in Basic-256 to accept the birth year of a person and check whether s/he is eligible

to vote or not. A person is eligible to vote only when s/he is 18 years or more.

Guidelines:

 Write an algorithm for the above problem.

 Open Basic-256 application.

 Use Input statement to accept birth year from the user and save it in the numeric variable.

 Calculate age = current year - birth year.

 Use the “if - else” condition to check whether age is greater than or equal to 18 and display
appropriate messages​

Answers

Answered by nitesh5a
0

Answer:

hwhwhwhehhhdjdjwkwheb r rhrjdjdndfvhrjeke

wjwjehbsbsjwvrgehehiwoapqlamndbdhehehehehehhehekaksrbbenqkwjhdhe

Answered by harshitha22279
3

Answer:

DIM currentyear AS INTEGER

DIM birthyear AS INTEGER

DIM calculateage AS INTEGER

currentyear = 2020

INPUT "please enter the year you was born?"; birthyear

calculateage = currentyear - birthyear

IF calculateage >= 18 THEN

PRINT "You are eligible to vote."

ELSE

PRINT "you are not eligible to vote."

END IF

Similar questions
Math, 10 months ago