Show Bid Request
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.
Bid Request Id: 8933
|
|
|
Posted by: |
jc0000 (15 ratings)
(Software buyer rating 8.8)
|
Non-action Ratio: |
Very Good - 15.38%
|
Posted: |
Feb 16, 2002 11:49:09 PM EDT
|
Bidding Closes: |
Feb 18, 2002 12:00:00 PM EDT
|
Viewed (by coders): |
570 times
|
Deadline: |
2/18/2002
TIME EXPIRED
|
|
|
|
Description:
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 str.size() - 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):
miller.cs: a.out 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
Must be 100% finished and received by buyer on:
Feb 18, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
must have by monday morning. 8:00 am central time. i fell behind. didn't have to do over weekend.thanks
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$17 (USD)
|
Feb 17, 2002 12:55:23 AM EDT
|
10
(Excellent)
|
|
|
I can do this coding for you. I am a whiz at C/C++, and I don't need library functions to do any of it. I will make sure you get an A and give lots of comments in my code. I'll have it for you before your deadline. |
|
|
|
|
N/A
|
Feb 17, 2002 2:29:37 AM EDT
|
10
(Excellent)
|
|
|
I have completed coding this assignment for you. If you accept my previous bid, you can have the code within minutes. |
|
|
|
|
|