Answer:
The program in C++ is as follows:
#include <iostream>
using namespace std;
int perimeter(int side1, int side2, int side3){
return side1+side2+side3;
}
struct Triangle {
int side1; int side2; int side3;
};
int main(void) {
int side1, side2, side3;
cout<<"Sides of the triangle: ";
cin>>side1>>side2>>side3;
struct Triangle T;
T.side1 = side1;
T.side2 = side2;
T.side3 = side3;
cout << "Perimeter: " << perimeter(T.side1,T.side2,T.side3) << endl;
return 0;
}
Explanation:
See attachment for complete code where comments are as explanation
Explanation:
I think it is 7, but I could be wrong..... sorry
Answer:
cell address is the exact location of a particular cell of ms-excle
Explanation:
A1 refers to first row and first column.
A2 refers to second row first column.
i.e.
in 'A1' : 'A' indicate column { A= first column, B= second
column, C= third column. and soon.....}
'1' indicate row { 1 = first row, 2 = second row, 3= third row..... soon .......}
Answer:
alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
newList = []
N = 3
for i in range(N):
newList.append(alphabets[i] * 3)
print(newList)
Explanation:
- Initialize the alphabets.
- Use a for loop to append three alphabets to new list.
- Finally print the new list.
<span>
C. The net charge does not change. The charge remains neutral and thus,
polarization takes effect. Polarization simply means electrons and protons are separated into opposites. To best explain this, we can use a rubber balloon that has been rubbed against animal fur. Assume is has been negatively charged, bring it close to the object and make sure that these two do not touch. Electrons within the object will experience a repulsive force.
</span>
Since repulsion will be greatest for those
electrons nearest the balloon, many of them will be induced into moving away
from the rubber balloon. By default, electrons are free to move from atom to
atom and thus there will be a mass migration of balloons side of the object to
the opposite side of the object. <span>This will leave more atoms on the rubber
balloon’s side of the object with a shortage of electrons and will be
positively charged and vice versa. </span>Overall, the object will become
electrically neutral.