Write a program which asks the user to enter their age

Assignment Help Computer Engineering
Reference no: EM132173790

Using python

Problem  : Write a program which asks the user to enter their age and outputs if they are an infant, a child, a teenager or an adult.

Use the following rules:

1) ages 1 or less means the person is an infant

2) ages older than 1 but younger then thirteen means the person is a child

3) ages at least thirteen but younger than twenty means the person is a teenager 4) ages twenty and over means the person is an adult

Sample program output:

Please your age: 14 You are a teenager

Reference no: EM132173790

Questions Cloud

Find the probability of selecting a hershey milk chocolate : A bag of Hershey's Assorted Miniature candy bars contains 18 Hershey Milk Chocolate, 9 Mr. Goodbar, 9 Krackel, and 8 Hershey's Special Dark chocolate bars.
Calculate the first number raised to the second number : Write a program which asks the user for two numbers and calculates the first number raised to the second number.
Create a function that can normalize the input data by : Write a function that can find the numbers which are divisible by 7 but are not a multiple of 5.
Define parameters and state the null and alternative : Define parameters and state the null and alternative hypotheses: In 2013, it is known that two-thirds (about 67%) of people aged 50-64 were on Facebook
Write a program which asks the user to enter their age : Write a program which asks the user to enter their age and outputs if they are an infant, a child, a teenager or an adult.
Create the following methods for the rectangle class : Create the following methods for the rectangle class method to allow a rectangle object to be printed with labels.
Set up hypotheses to test this factorial design : a. Set up hypotheses to test this Factorial Design. b. Perform the analysis. c. Show your ANOVA table.
Find the mean temperature : Find th e mean temperature. Find the standard deviation of the temperature. Find the probability that the temperature is less than 100 degrees.
Create a function that will test whether the complex numbers : Create a function that will determine if within a given number of iterations (maxiter) if a given complex number is in or out of the Mandelbrot Set.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd