Answer:
Projects that require spreadsheet organization and/or calculations between data
Explanation:
That is why Excel is a spreadsheet program
The best assumption to make is that there is a hidden partition and the drive needs to be further searched.
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;
}
Answer:
false
Explanation:
because we're playing it on a mobile phone and a laptop than the hard disk. the hard disk is so old to use it nowadays.
Answer:
a)
for(x=0;x<20;x=x+2)
cout<< x << ' ';
cout<< endl ;
<u>Output</u>
0 2 4 6 8 10 12 14 16 18
In this code we are initialing x with 0, check if it is less than 20, then printing the value 0.
Then we increment x value with 2 and check and print again until the x value tends to be equal or more than 20.
<u>C++ program for verifying</u>
#include <iostream>
using namespace std;
int main()
{
int x;
for( x=0;x<20;x=x+2)
cout<< x << ' ';
cout<< endl ;
return 0;
}
<u>Output</u>
0 2 4 6 8 10 12 14 16 18
(You can check on any ide for confirmation)
b)
i=10;
for (;i>0; i =i/2;)
cout<< i;
This code will produce error expected ‘)’ before ‘;’ token
for(;i>0; i =i/2;)
because for loop consist three parameters and in this loop there are 4 parameters.
If we remove semicolon after i/2,
for(;i>0; i =i/2)
then it will produce an output.
10 5 2 1
<u>C++ program for verifying</u>
#include <iostream>
using namespace std;
int main() {
int i=10;
for(;i>0; i =i/2;)
cout<< i;
return 0;
}
<u>Output</u>
Error-expected ‘)’ before ‘;’ token
for(;i>0; i =i/2;)