C++ array and print even function

Closed

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.

## Deadline information

Today

Skills: C Programming, Engineering, MySQL, PHP, Software Architecture, Software Testing

See more: function prints numbers parameters, programming loop, programming keyboard, programming function, programming array, numbers function, number function, mind programming, mind array, loop programming, int size c, integers form 1, integers and, get c programming done, get c programming, function programming, function of numbers, function numbers, function number, function in programming, functional programming example, for loop in c programming, for loop c programming, c programming get, c programming function

Project ID: #2837561

Awarded to:

odysseyvw

See private message.

$7 USD in 14 days
(32 Reviews)
3.3

22 freelancers are bidding on average $9 for this job

oleg21

See private message.

$10.2 USD in 14 days
(137 Reviews)
7.0
Quadville

See private message.

$8.5 USD in 14 days
(193 Reviews)
5.5
markmanyen

See private message.

$8.5 USD in 14 days
(2 Reviews)
5.4
leepwo

See private message.

$12.75 USD in 14 days
(41 Reviews)
4.7
ziran

See private message.

$12.75 USD in 14 days
(47 Reviews)
4.5
vw132761vw

See private message.

$8.5 USD in 14 days
(33 Reviews)
4.2
bryanbvw

See private message.

$11.05 USD in 14 days
(13 Reviews)
4.0
javabeevw

See private message.

$12.75 USD in 14 days
(18 Reviews)
3.9
iodra

See private message.

$10.2 USD in 14 days
(25 Reviews)
3.7
realgoodteam

See private message.

$12.75 USD in 14 days
(12 Reviews)
3.5
karthickvw

See private message.

$5.95 USD in 14 days
(21 Reviews)
3.2
dannynoest

See private message.

$5.95 USD in 14 days
(15 Reviews)
2.7
royrodgers

See private message.

$8.5 USD in 14 days
(3 Reviews)
0.8
orcavw

See private message.

$8.5 USD in 14 days
(0 Reviews)
0.0
hamsterofdeath

See private message.

$12.75 USD in 14 days
(0 Reviews)
0.0
nikzvw

See private message.

$8.5 USD in 14 days
(0 Reviews)
0.0
jowensvw

See private message.

$3.4 USD in 14 days
(0 Reviews)
0.0
vaati

See private message.

$8.5 USD in 14 days
(0 Reviews)
0.0
vw248273vw

See private message.

$8.5 USD in 14 days
(0 Reviews)
0.0
vw179483vw

See private message.

$8.5 USD in 14 days
(1 Review)
0.0