What?? explain your question
To understand flow of programming logic flow chat technique been used. Once end user starts any learning programming flow chat design been learned and corrected the mistake. After success of flow chat design end user been advice to do programming and tested in computer.
<u>Explanation:</u>
In flow chart design is used for beginner level programming. Some time to make higher level managers to understand this flow chart design is used.
Flow chart has start, procedure, condition, function or procedure and end with stop diagrams.
Flow chart makes end user understand the flow of logics.
Suppose we need to do a process for a procedure, end user has to design with start flow chart symbol and put a procedure flow chart symbol with identification character, then end user has use same identification character and start designing the procedure in the flow chart diagram.
Procedure in flow char design is used to call same procedure number of time, so that repeated coding is avoided.
<span>A shortcut is a used to quickly open a folder, data file, program, or other object. They are very convenient to have and make navigating through a computer extremely easy.</span>
Answer:
#include <iostream>
using namespace std;
void filterEvens(int myArray[]) {
for (int i = 0; i < 8; ++i) {
if(myArray[i]%2==0){
cout<<myArray[i]<<" ";
}
}
}
int main(){
int myArray[8];
for(int i =0;i<8;i++){
cin>>myArray[i];
}
filterEvens(myArray);
return 0;
}
Explanation:
The solution is provided in C++
#include <iostream>
using namespace std;
The function filerEvens is defined here
void filterEvens(int myArray[]) {
This iterates through the elements of the array
for (int i = 0; i < 8; ++i) {
This checks if current element is an even number
if(myArray[i]%2==0){
If yes, this prints the array element
cout<<myArray[i]<<" ";
}
}
}
The main begins here
int main(){
This declares an integer array of 8 elements
int myArray[8];
The following iteration allows input into the array
<em> for(int i =0;i<8;i++){</em>
<em> cin>>myArray[i];</em>
<em> }</em>
This calls the defined function filter Evens
filterEvens(myArray);
return 0;
}