Question: Soru 1: - Write a code that asks the user for age and gender. - When reguesting age, check that the number entered is an
Soru 1: - Write a code that asks the user for age and gender. - When reguesting age, check that the number entered is an integer greater than zero. o If an inappropriate value is entered, the program will keep. prompting for a new number until the correct value is entered. - Gender should be requested by one of the characters "E" or "K". o Again, if no suitable entry is made, the program will keep prompting for a new value until the correct entry is entered. - If the entered age is less than 18 print "boy" If o and gender is E. print "girl" if o and gender is K. - If the entered age is between [18.65] print "dad" if o and gender is E. print "mother" if o and gender is K. - If the entered age is 65 and over 65 print "grandfather" if o and gender is E. print "grandma" if o and gender is K. Do with javascript
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
