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:
laser
Explanation:
These are well known printer types now. Let's review how they work to determine in which does heat plays a role.
inkjet: inkjet printers are printer throwing ink at the paper in the form of little drops. No heat involved here.
impact: That's the oldest technology, where a printing head is moving left and right to punch a printing ribbon and transfer ink onto the paper. No heat involved.
3D: 3D printers don't usually use paper... as they use other materials to create a 3D representation of a model. Heat is involved in the melting of the material before it's placed on the building model. But no paper involved here.
laser: laser printers are working very much like a photocopier machine... memorizing the pattern to be printed, then transferring it onto paper... using heat.
D. A window the rest are incorrect
HTML stands for Hyper Text Markup Language. It is the most commonly language used for <span>creating web pages and web applications. </span>
<span>The correct HTML element for playing video files is <video>.
</span>
To show a video in HTML, use the <video> element:
Example:<span><video<span> width="320" height="240" controls</span>></span>
<span><source<span> src="video 1.mp4" type="video/mp4"</span>></span>
<span><source<span> src="movie.ogg" type="video/ogg"</span>></span>
<span></video<span>></span></span>