Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
int A[3][3],B[3][3],res[3][3],i,j;
srand(time(0));//for seed.
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
int val=rand()%100+1;//generating random values in range 1 to 100.
int val2=rand()%100+1;
A[i][j]=val;
B[i][j]=val2;
}
cout<<endl;
}
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
res[i][j]=0.5*A[i][j]+3*B[i][j];//storing the result in matrix res.
}
}
cout<<"Matrix A is"<<endl;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<A[i][j]<<" ";//printing matrix A..
}
cout<<endl;
}
cout<<"Matrix B is"<<endl;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<B[i][j]<<" ";//printing matrix B..
}
cout<<endl;
}
cout<<"The result is"<<endl;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<res[i][j]<<" ";//printing the result..
}
cout<<endl;
}
return 0;
}
Output:-
Matrix A is
13 95 83
88 7 14
24 22 100
Matrix B is
11 13 95
48 35 20
68 100 18
The result is
39.5 86.5 326.5
188 108.5 67
216 311 104
Explanation:
I have created 2 matrices A and B and storing random numbers int the matrices A and B.Then after that storing the result in res matrix of type double to store decimal values also.Then printing the res matrix.
Answer: Generally, there is an increase in power with a V8 engine.
Explanation:
A V8 engine has a bigger engine that cars with a V4 or V6 engines. They can go faster and gain speed at a faster rate than the other cars. They are not good on gas and use more gas than other cars with smaller engines.
Two things that are great about having a V8 engine is the torque and the power output. One of the most powerful engines with a V8 is a Dodge Challenger SRT. These engines are usually in bigger trucks and sports cars.
Answer:
attenuation
Explanation:
Based on the information provided within the question it can be said that the phenomenon that is being described in this scenario is known as attenuation. In the context of physics, this refers to the gradual loss of intensity of something when traveling through a medium. Which in this case would be the data signals travelling through the cables.
Answer:
Single quotes; Double quotes
Explanation:
Character literals is a type of literal in Java programming used for denoting constant valued character. Examples are 'g', '6', 'A' '+' etc.
String literals is a type of literal in Java programming used for representing or displaying of a sequence of characters or string values. Examples are "Hello Brainly user"
In Java programming, Character literals are enclosed in single quotes, string literals are enclosed in double quotes.