Write an algorithm that asks for the age of a child and allows you to inform about its category knowing that the categories are as follows: - "Kid from 6 to 7 years old" - "pupil from 8 to 9 years old" - "kid of 10 to 11 years old "-" cadet after 12 years ". 

******** In Algorithm ********
Algorithm Variables age :real Begin
write("Enter your age :")
read(age)
if( age < 6 )
write(" your age < 6")
if( age >= 6 and age <= 7)
write(" you are kid") if( age >= 8 and age <= 9 )
write(" you are pupil ") if( age >= 10 and age <= 11)
write(" you are kid of ")
if ( age >= 12 ) then
write(" you are Cadet ")
End


Result ==> Enter your age : 13 you are Cadet

******** In C ********

#include <stdio.h> int main() { float age; printf(" Enter your age :"); scanf("%f",&age); if( age < 6 ) printf("your age < 6"); if( age >= 6 && age <= 7) printf(" you are kid "); if( age >= 8 && age <= 9 ) printf(" you are pupil "); if( age >= 10 && age <= 11) printf(" you are kid of "); if( age >= 12 ) printf(" you are Cadet "); return 0; }

******** In C++ ********

#include <iostream> using namespace std; int main() { float age; cout<<" Enter your age :"; cin>>age;
if( age < 6 ) cout<<" your age < 6"; if( age >= 6 && age <= 7) cout<<" you are kid "; if( age >= 8 && age <= 9 ) cout<<" you are pupil "; if( age >= 10 && age <= 11) cout<<" you are kid of "; if( age >= 12 ) cout<<" you are Cadet "; return 0; }

******** En Python ********

age = float(input("Enter your age :")) if age >=12 : print("you are Cadet") elif age >=10 and age <=11 : print("you are kid of") elif age >=8 and age <=9 : print("you are pupil") elif age >=6 and age <=7 : print("you are kid") else: print("your age < 6")

******** En JAVA ********

import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner (System.in);
System.out.print("Enter your  age:");
float age = sc.nextFloat();
  if( age<6 )
  System.out.print("your age is <  6 ");
  if( age >= 6  &&  age <= 7)
  System.out.print(" you  are kid");
  if( age >= 8  &&  age <= 9 )
  System.out.print("you are pupil");
  if( age >= 10  &&  age <= 11)
  System.out.print(" you  are kid of");
  if( age >= 12 )
System.out.print("you are Cadet");
}
}

********* En C# *******

using System;
public class Ex11 {
public static void Main(string[] args)
{ float age;
Console.Write(" Enter your  age:");
age = int.Parse(System.Console.ReadLine());
if( age < 6)
  Console.WriteLine("your age < 6");

  
if( age >= 6  &&  age <= 7)
  Console.WriteLine(" you are kid");
  if( age >= 8  &&  age <= 9 )
  Console.WriteLine(" you are you are pupil");

  if( age >= 10  &&  age <= 11)
  Console.WriteLine("you are kid of");

  if( age >= 12 )
  Console.WriteLine(" you are Cadet");
    }
}