Find Jobs
Hire Freelancers

C++ array and print even function

$10-15 USD

In Progress
Posted over 22 years ago

$10-15 USD

Paid on delivery
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. ## Deadline information Today
Project ID: 2837561

About the project

22 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.
$7 USD in 14 days
4.7 (32 reviews)
3.3
3.3
22 freelancers are bidding on average $9 USD for this job
User Avatar
See private message.
$10.20 USD in 14 days
5.0 (137 reviews)
7.0
7.0
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (193 reviews)
5.5
5.5
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (2 reviews)
5.4
5.4
User Avatar
See private message.
$12.75 USD in 14 days
4.7 (41 reviews)
4.7
4.7
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (47 reviews)
4.5
4.5
User Avatar
See private message.
$8.50 USD in 14 days
4.5 (33 reviews)
4.2
4.2
User Avatar
See private message.
$11.05 USD in 14 days
5.0 (13 reviews)
4.0
4.0
User Avatar
See private message.
$12.75 USD in 14 days
4.9 (18 reviews)
3.9
3.9
User Avatar
See private message.
$10.20 USD in 14 days
5.0 (25 reviews)
3.7
3.7
User Avatar
See private message.
$12.75 USD in 14 days
4.4 (12 reviews)
3.5
3.5
User Avatar
See private message.
$5.95 USD in 14 days
4.8 (21 reviews)
3.2
3.2
User Avatar
See private message.
$5.95 USD in 14 days
4.5 (15 reviews)
2.7
2.7
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (3 reviews)
0.8
0.8
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$12.75 USD in 14 days
0.0 (0 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.
$8.50 USD in 14 days
0.0 (1 review)
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.
$8.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$3.40 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
2.9
3
Member since Jan 19, 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.