Show Bid Request
C++ array and print even function
Bid Request Id: 8131
|
|
|
Description:
Please keep these programs simple and only use C++ consructs.
The array:
Write a program that starting with an array of integers int a[ ] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 } if num = 2%==0 num ++ uses a loop to go through the array incrementing the even numbers by one. In this example, the resulting array should be: {1, 3, 3, 5, 5, 7, 7, 9, 9} Bear in mind that your program should work with any array. If, for example, I were to replace the array in your code with any array I chose and recompiled, the resulting array should have all its even numbers incremented. You must write a separate function to print the array. That function will receive as parameters your array and its size, and then will use a loop to send each element to the screen, with a space in between elements: 1 3 3 5 5 7 7 9 9 .
The print even:
Write a program that prints all the even numbers between any two numbers. There should be a function called print_even that takes the initial and ending number as parameters, and prints all the intervening even numbers. Use a for loop to implement this.
Your main function should accept from the keyboard the initial and ending numbers, and then it should call print_even to get the even numbers printed.
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.
Special Conditions / Other:
Today
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!
|
$10 (USD)
|
Jan 28, 2002 8:57:37 PM EDT
|
9
(Superb)
|
|
|
HI, I can do it and give you in 1 hour. select my small bid.
Regards, Odyssey |
|
|
|
|
N/A
|
Jan 28, 2002 9:33:47 PM EDT
|
9
(Superb)
|
|
|
Hi, I have completed your code. Please select my bis so that I can send you the source code for verification.
Regards, Odyssey |
|
|
|
|
|