Description: For this assignment, you will write a program that removes the odd numbers from an array and replaces them with even numbers. Your array must have 10 elements and be initialized with the following numbers: 42, 9, 23, 101, 99, 22, 13, 5, 77, 28. Requirements: 1. You must use the values provided in your array. 2. Print the original array to the console. 3. Identify any odd values in the array and replace them with even values. 4. Display the updated array to the console. 5. Program must be documented with: a. //Name b. //Date c. //Program Name d. //Program Description Sample Output: The original array is: 42 9 23 101 99 22 13 5 77 28 Your even number array is: 42 18 46 202 198 22 26 10 154 28

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.2: Array Initialization
Problem 3E: (Data processing) Write a program that uses an array declaration statement to initialize the...
icon
Related questions
Question

Just trying to solve this programing assingment could you help please?

CIS 1111 1D Arrays Exercise 1 - 10 points
Description: For this assignment, you will write a program that removes the odd numbers from an array
and replaces them with even numbers. Your array must have 10 elements and be initialized with the
following numbers: 42, 9, 23, 101, 99, 22, 13, 5, 77, 28.
Requirements:
1. You must use the values provided in your array.
2. Print the original array to the console.
3. Identify any odd values in the array and replace them with even values.
4.
Display the updated array to the console.
5. Program must be documented with:
a. //Name
b. //Date
c. //Program Name
d. //Program Description
Sample Output:
The original array is: 42 9 23 101 99 22 13 5 77 28
Your even number array is: 42 18 46 202 198 22 26 10 154 28
Transcribed Image Text:CIS 1111 1D Arrays Exercise 1 - 10 points Description: For this assignment, you will write a program that removes the odd numbers from an array and replaces them with even numbers. Your array must have 10 elements and be initialized with the following numbers: 42, 9, 23, 101, 99, 22, 13, 5, 77, 28. Requirements: 1. You must use the values provided in your array. 2. Print the original array to the console. 3. Identify any odd values in the array and replace them with even values. 4. Display the updated array to the console. 5. Program must be documented with: a. //Name b. //Date c. //Program Name d. //Program Description Sample Output: The original array is: 42 9 23 101 99 22 13 5 77 28 Your even number array is: 42 18 46 202 198 22 26 10 154 28
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning