TORONTO KIDS COMPUTER CLUB | PMCA Sunday 10:00 Practice -06.
17642
post-template-default,single,single-post,postid-17642,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

PMCA Sunday 10:00 Practice -06.

10 Jun PMCA Sunday 10:00 Practice -06.

Question:
A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team.

Sample input 1:
Gender: f
Age: 10

Sample output 1:
Welcome to the team

Sample input 2:
Gender: m
Age: 10

Sample output 2:
You can not play
No Comments

Sorry, the comment form is closed at this time.