Show Bid Request
Array Question
Bid Request Id: 42982
|
|
|
Posted by: |
Paora (1 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Buyer Security Verifications: |
Good
|
Approved on: |
Jan 9, 2003 9:02:14 PM EDT
|
Bidding Closes: |
Jan 14, 2003 9:15:04 PM EDT
|
Viewed (by coders): |
343 times
|
Deadline: |
1/15/2003
TIME EXPIRED
|
|
|
|
Description:
I've been given the following three programs and need the "Code here" spaces filled in.
Program 1
#include<iostream.h>
void display(int size,int* a)
{
"Code here"
}
void addArrays(int size,int* a,int* b,int* sum)
{
"Code here"
}
int powerArray(int size,int* a,int power)
{
"Code here"
}
int main()
{
int arr1[]={1,2,3,4};
int arr2[]={10,20,30,40};
display(4,arr1);
int* ans=new int[4];
addArrays(4,arr1,arr2,ans);
dipslay(4,ans);
ans=powerArray(4,arr1,2);
display(4,ans);
return 0;
}
If correct this should display the following:
1
2
3
4
11
22
33
44
1
4
9
16
Program 2
#include<iostream.h>
int stringLength(char* source)
{
"Code here"
}
char* stringCopy(char* source)
{
"Code here"
}
char* stringAttach(char* str1,char* str2)
{
"Code here"
}
int main()
{
char* str1 = "Hello!";
char* str2 = "How are you?";
cout<<"\nlength of ("<<srt1<<") is:"<<stringLength(str1);
char* str3=stringCopy(str2);
cout<<"\n str3="<<str3;
str3=stringAttach(str1,str2);
cout<<"\n str1+str2="<<str3;
return 0;
}
If correct this should display:
length of(Hello!) is:7
str3=How are you?
str1+str2=Hello! How are you?
Program 3
#include<iostream.h>
class Time
{
private:
int hour,minute,second;
public:
Time(int h,int m,int s);
void display();
void tick();
void addSecond(int s);
};
Time::Time(int h,int m,int s)
{
if((h>=0 && h<24)
&&(m>=0 && m<60)
&&(s>=0 && s<60))
{hour=h;minute=m;second=s;}
else hour=minute=second=0;
}
void Time::display()
{
"Code here"
}
void Time::tick()
{
"Code here"
}
void Time::addSecond(int s)
{
"Code here"
}
int main()
{
Time t1=Time(23,59,59);
t1.tick();
t1.dipslay();
t1.addSecond();
t1.display();
return 1;
}
If correct this will dipslay:
Time(hh:mm:ss)=00:00:00
Time(hh:mm:ss)=01:00:00
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Complete ownership and distribution copyrights to all work purchased.
Platform:
Windows 2000 I'm using Borland C++ Builder 6 to compile and run these programs.
Must be 100% finished and received by buyer on:
Jan 15, 2003 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.
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 |
|
|
|
$15 (USD)
|
Jan 9, 2003 9:53:03 PM EDT
|
9.59
(Excellent)
|
|
|
I can do this with in 20 minutes with lot Of comments . I am sure that you will get good grade ,
Please accept soon So that you can get nice code early.
PS: See my ratings and The assignements I have done so far In C/C++
regards jobi
|
|
|
|
This bid was accepted by the buyer!
|
$12 (USD)
|
Jan 9, 2003 10:08:23 PM EDT
|
9.59
(Excellent)
|
|
|
I have completetd the first program in 2 minutes . and giving you free See the attachment The source code also is there
And the next 2 will be completed after you accept my bid
I can do the rest for 12 dollars
Reagards
|
|
Attached File
|
|
|
|
N/A
|
Jan 10, 2003 1:23:32 AM EDT
|
9.59
(Excellent)
|
|
|
Hope you did see my old comments and program. I am expecting a reply from you with any of your suggestions
|
|
|
|
|
|