Find Jobs
Hire Freelancers

Asterisk Histogram

$30-5000 USD

Completed
Posted almost 20 years ago

$30-5000 USD

Paid on delivery
Write a **main** function to input a sequence of numbers and draw a histogram-type graph of them: 1. Loop to read integers, one per line, from **cin**, until you hit the end of the data ( for my progam, that means until the integer you read is negative). As you read each integer: a. Check the value of the integer - if the value is less than zero, exit the loop normally. If it is greater than 100, write an informative error message to **cerr** and exit the program**. ** b. Calculate how many asterisks you'll need to use to graph the integer, figuring tha zero asterisks represents a valve of 0, one asterisk represents a valve of either 1 or 2, two asterisks either 3 or 4,..., and 50 asterisks either 99 or 100. [login to view URL] a line to **cout** containing the integer value, a flag character, and the correct number of asterisks to represent the integer you just read: * Use a field width of 5 for writing the (right-justified) integer. * Put exactly one space before and after the flag character, which should be the digit '2' if the number is a "perfect square", see if the square root of the number is a whole number.) * Left-justify the span of asterisks after that. 2. When you read the termination negative value from **cin**, write a text line to **cout** that says you're done. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Microsoft Visual C++, Windows XP
Project ID: 3291132

About the project

7 proposals
Remote project
Active 20 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.
$5 USD in 7 days
5.0 (15 reviews)
2.5
2.5
7 freelancers are bidding on average $11 USD for this job
User Avatar
See private message.
$25.50 USD in 7 days
4.9 (212 reviews)
5.8
5.8
User Avatar
See private message.
$12.75 USD in 7 days
5.0 (220 reviews)
5.1
5.1
User Avatar
See private message.
$11.05 USD in 7 days
5.0 (30 reviews)
4.3
4.3
User Avatar
See private message.
$9.35 USD in 7 days
4.9 (16 reviews)
4.6
4.6
User Avatar
See private message.
$8.50 USD in 7 days
5.0 (5 reviews)
0.6
0.6
User Avatar
See private message.
$6.80 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
14
Member since Jul 21, 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.