Find Jobs
Hire Freelancers

program which allows the user to type a social security number in xxx-yy-zzzz format, reads it into a string object, converts the string object into its numeric equivalent integer representation via an int object and then displays the result.

$12-17 USD

Completed
Posted over 22 years ago

$12-17 USD

Paid on delivery
Your program need not worry about improper input, if it crashes or behaves oddly due to bad input that's ok, for now. Your program must use the getline function to read the user's input. Your program must parse (break up) the input string into three substrings representing xxx, yy, and zzzz respectively. Your program must then convert each of these substrings into their equivalent integer forms. You may not use any library or member functions that do these conversions for you. You may find the fact that given any character digit d in the range of 0 to 9, then d - '0' is its integer equivalent. Also given any string str and integer ind, in the range of 0 to [login to view URL]() - 1, then str[ind] is the character, within the string, at location ind. Example: Given string str = "Hello"; then str[1] is e. Your program must then use the three integer values from the previous step to construct the final integer version of the social security number. At each step along the way your program must produce reasonably formatted output, displaying the results of that step (see sample output for clues as to what is reasonable). Sample Run(s): [login to view URL]: [login to view URL] Please enter social security number xxx-xx-xxxx : 123-45-6789 The original input string is String version = 123-45-678 The three extracted substrings are ------------------------------------- Substring one = 123 Substring two = 45 Substring three = 6789 ------------------------------------- The three converted integer values are -------------------------------------- Integer value one = 123 Integer value two = 45 Integer value three = 6789 -------------------------------------- The final converted integer is -------------------------------------- Integer version = 123456789 -------------------------------------- ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Platform unix ## Deadline information must have by monday morning. 8:00 am central time. i fell behind. didn't have to do over [login to view URL]
Project ID: 2839147

About the project

16 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.
$14 USD in 14 days
5.0 (13 reviews)
3.1
3.1
16 freelancers are bidding on average $10 USD for this job
User Avatar
See private message.
$14.45 USD in 14 days
4.5 (22 reviews)
5.8
5.8
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (2 reviews)
5.4
5.4
User Avatar
See private message.
$8.50 USD in 14 days
4.4 (72 reviews)
5.5
5.5
User Avatar
See private message.
$6.80 USD in 14 days
5.0 (60 reviews)
5.0
5.0
User Avatar
See private message.
$14.45 USD in 14 days
4.7 (48 reviews)
4.3
4.3
User Avatar
See private message.
$6.80 USD in 14 days
4.7 (18 reviews)
4.0
4.0
User Avatar
See private message.
$10.20 USD in 14 days
4.5 (17 reviews)
3.3
3.3
User Avatar
See private message.
$7.65 USD in 14 days
4.7 (32 reviews)
3.3
3.3
User Avatar
See private message.
$11.05 USD in 14 days
4.4 (6 reviews)
1.6
1.6
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$14.45 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$6.80 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (2 reviews)
0.0
0.0
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$14.45 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
New Berlin, United States
4.7
26
Member since Feb 17, 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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.