Q2: a- write a program to pass a one dimensional array (which consists of 10 positive integer numbers) as a parameter to a function; inside the function eliminate every occurrence of number 5 from the array and keep the rest numbers in the same array after adjusting the array locations (as shown in the following figures); then display the shortened array elements in reverse order. Note: use only array don't use pointer or function. 5 7 5 5 3 5 5 3 9 2. 2.
Q2: a- write a program to pass a one dimensional array (which consists of 10 positive integer numbers) as a parameter to a function; inside the function eliminate every occurrence of number 5 from the array and keep the rest numbers in the same array after adjusting the array locations (as shown in the following figures); then display the shortened array elements in reverse order. Note: use only array don't use pointer or function. 5 7 5 5 3 5 5 3 9 2. 2.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 6PP: (Numerical) a. Define an array with a maximum of 20 integer values, and fill the array with numbers...
Related questions
Question
Write in c++ ....
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,