Find Jobs
Hire Freelancers

Age-O-Meter #2

$10-15 USD

Completed
Posted over 21 years ago

$10-15 USD

Paid on delivery
Modify your Age-O-Meter program so that it loops until one of the following conditions occurs: the sentinel value of -99 is entered by the user a total of five valid ages processed The sentinal value must be defined as a manifest constant and it must be included in the prompt. If a negative age other than the sentinel value is entered, then print an error message to the standard error stream and re-prompt the user to enter an age. Prior to terminating the program, print the following: number of valid ages entered the sum of all the valid ages entered the average of the valid ages entered Be sure to protect against a divide-by-zero. Example Output Enter an age (-99 to exit): -5 -5 is not a valid age. Enter an age (-99 to exit): 1 You are 1 year old and you are a baby. Enter an age (-99 to exit): 44 You are 44 years old and you are in prime time. Enter an age (-99 to exit): -99 # ages entered: 2 # of total years: 45 average age entered: 22.500000 ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. ## Platform Windows XP
Project ID: 2881165

About the project

5 proposals
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$3 USD in 14 days
5.0 (2 reviews)
0.4
0.4
5 freelancers are bidding on average $6 USD for this job
User Avatar
See private message.
$3.40 USD in 14 days
5.0 (65 reviews)
4.7
4.7
User Avatar
See private message.
$8.50 USD in 14 days
4.9 (24 reviews)
4.0
4.0
User Avatar
See private message.
$6.80 USD in 14 days
4.9 (20 reviews)
3.3
3.3
User Avatar
See private message.
$10.20 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of FRANCE
France
5.0
27
Member since Oct 13, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.