C++ array and print even function

This project was awarded to odysseyvw for $7 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Project Budget
Total Bids
Project 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


Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online