Answer:
Complete the main method as follows:
int num;
cin>>num;
int i = 0;
while(num!=0){
array[i] = num;
cin>>num;
i++;
}
Complete the printArray function as follows:
void printArray(int array[]){
int i =0;
while(array[i]!=0){
cout<<array[i]<<" ";
i++;
}}
Explanation:
<u>Main method</u>
This declares a variable that gets input from the user
int num;
This gets input from the user
cin>>num;
This initializes a count variable to 0. It represents the index of the current array element
int i = 0;
while(num!=0){
This inserts the inputted number to the array
array[i] = num;
This gets another input
cin>>num;
The counter is incremented by 1
i++;
}
The above loop is repeated until the users enters 0
<u>printArray method</u>
This declares the array
void printArray(int array[]){
This initializes a counter variable to 0
int i =0;
This is repeated until array element is 0
while(array[i]!=0){
Print array element
cout<<array[i]<<" ";
Increase counter by 1
i++;
}}
<em>See attachment for complete program</em>
Answer:
In my opinion, the answer is increased flexibility.
Explanation:
When one user performs the query to perform analysis and distribution of recordings as they relate to other categories. This is the advantage of increased flexibility. Data is also flexible in that case because features and variables are recorded before evaluation.
Answer:
The FDIC is meant to ensure public confidence in the U.S. financial system. While it may seem like insuring your funds is a purely personal benefit, the FDIC also mitigates potential negative effects on the economy and financial system when a bank fails.
Explanation:
Mechanical energy converts chemical energy into rotational or linear motion.
In 2018, the rules changed and Olympic organizers allowed the use of <u>vocal music</u> in performances for the first time.
<h3>What is an
Olympic Charter? </h3>
An Olympic Charter can be defined as the fundamental rules, regulations and principles which governs the Olympic Games, and they must be adopted by the International Olympic Committee (IOC) as guidelines for hosting and organizing the Olympic Games.
In Pyeongchang 2018, the rules changed and Olympic organizers allowed the use of <u>vocal music</u> in performances for the first time for figure skaters.
Read more on Olympics here: brainly.com/question/18765613
#SPJ1