Færdiggjort

Age-O-Meter

Write an interactive program prompts the user to enter their age and then tells them how they fit on the CSC100/CIS162 Age-O-Meter.

If a negative age is entered, then print an error message to the standard error stream and exit the program using EXIT_FAILURE.

The CSC100/CIS162 Age-O-Meter is scaled as follows:

0..2 baby

3..12 kid

13..19 teenager

20..29 young adult

30..39 adult

40..81 prime time

82..99 old

100 or greater is ancient

Your program should print one line to the standard output stream ever time it is executed with valid input.

Example Output

The program prompt is Enter an age:. For documentation purposes, user inputs are display in italics.

Enter an age: -5

-5 is not a valid age.

Enter an age: 1

You are 1 year old and you are a baby.

Enter an age: 2

You are 2 years old and you are a baby.

Enter an age: 14

You are 14 years old and you are a teenager.

Enter an age: 44

You are 44 years old and you are in prime time.

Enter an age: 110

You are 110 years old and you are ancient.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

## Platform

windows XP

Evner: C programmering, PHP

Se mere: stream programming, prime no 1, n 1 prime, kid programming, is one a prime, is 2 prime, is 1 a prime, functional programming example, 2 is prime, 29 prime, 1 is prime no, young and adult, o, meter, age, write user documentation, php interactive line, php print error, meter programming, interactive programming

Om arbejdsgiveren:
( 27 bedømmelser ) France

Projekt ID: #2877754

Tildelt til:

notusinganymore

See private message.

$5 USD in 14 dage
(27 bedømmelser)
3.2

5 freelancere byder i gennemsnit $8 på dette job

alokgarg

See private message.

$6.8 USD in 14 dage
(69 bedømmelser)
4.2
realgoodteam

See private message.

$12.75 USD in 14 dage
(12 bedømmelser)
3.5
fabianjones

See private message.

$11.05 USD in 14 dage
(20 bedømmelser)
3.3
balaji99

See private message.

$3.4 USD in 14 dage
(51 bedømmelser)
3.2