Answer:
The program to this question as follows:
Program:
//header file iostream
#include<iostream> //including file for use basic function
//using name space
using namespace std;
//main method
int main() //defining main method
{
int a[3][3]; //defining two dimension array
int x,y,sum=0; //defining variables
cout<<"Enter array elements: "<<endl; //message
for(x=0;x<3;x++) // for row
{
for(y=0;y<3;y++) //for column
{
cin>>a[x][y]; //input values from user.
}
}
//loop for calculting sum.
for(x=0;x<3;x++)
{
for(y=0;y<3;y++)
{
sum=sum+a[x][y];//add all elements
}
}
cout<<"Sum: "<<sum; //print sum.
return 0;
}
Output:
Enter array elements:
1
2
3
4
5
6
7
8
9
Sum: 45
Explanation:
In the above C++ programming language code first, a header file is included then the main method is declared, inside a main method 2D array that is "a[][]", and an integer variable is defined that are "i, j, and sum". In the next line for loop is used, this loop is used two times that can be described as follows:
- The first time it is used for inserting elements from user ends.
- The second time, it uses the sum variable to add all array elements. and in the last print function that is "cout" is used for print sum variable value.
Answer:
File manager
Explanation:
From the list of options 1 to 4, only option (2) is correct
Explaining the options one after the other
- Web browser: It lets users access the internet
- File Manager: Used to create and manage files/folders
- User Interface: Means which the user of a computer interacts with the computer
- File Reader: Used to read the content of a file. e.g. Adobe reader for pdf files, Notepad for text files, etc.
Having explained the options one after the other, <em>the file manager </em>is the answer to this question.
Answer:
#include<iostream>
using namespace std;
int main(){
//initialize
int a, b,c;
//print the message
cout<<"Enter the three sides of the triangle: "<<endl;
//store in the variables
cin>>a>>b>>c;
//if-else statement for checking the conditions
if(a == b && b == c && a == c){
cout<<"\nThe triangle is equilateral";
}else if(a != b && b != c && a != c ){
cout<<"\nThe triangle is scalene";
}else{
cout<<"\nThe triangle is isosceles";
}
return 0;
}
Explanation:
Create the main function and declare the three variables for the length of the sides of the triangle.
print the message on the screen for the user. Then the user enters the values and its store in the variables a, b, and c.
use the if-else statement for checking the conditions.
Equilateral triangle: all sides of the triangle are equal.
if condition true, print the equilateral triangle.
Scalene triangle: all sides of the triangle are not equal.
if condition true, print the Scalene triangle.
if both conditions is not true, then, the program moves to else part and print isosceles.
Answer with Explanation:
Ang "maikling kuwento" ay isang uri ng<em> kathang-isip</em> na may pagkapareho sa nobela. Ito'y may buong tema ngunit mas maikli kaysa sa nobela at mas madali rin itong matapos basahin. Hango ito sa mga tunay na pangyayari sa buhay ng tao. Binubuo ito ng limang elemento: <em>tauhan, tagpuan, hidwaan, tema at plot. </em>Ito'y may balak na pukawin ang damdamin ng nagbabasa ayon sa kalagayan ng mga tauhan sa kuwento at ito'y nag bibigay ng mabuting aral.
Si <em>Edgar Allan Poe</em> ang tinaguriang<em> "Ama ng Maikling Kuwento." </em>
Answer:
=A1<=A14
Explanation:
complex formula in excel is which contain more than 1 mathematical operators . An order of mathematical operations are important to understand
there are different type of operators
- Arithmetic operators
- Comparison operators
- Text operators
- Operators reference
here Comparison operator is an example of complex formula . Comparison operator returns TRUE/FALSE it is use to compare two values
= Equal to
< Less than
> Greater than
>= Greater than or Equal to
<= Less than or Equal to