Answer:
1. cout << "Num: " << songNum << endl;
2. cout << songNum << endl;
3. cout << songNum <<" songs" << endl;
Explanation:
//Full Code
#include <iostream>
using namespace std;
int main ()
{
int songNum;
songNum = 5;
cout << "Num: " << songNum << endl;
cout << songNum << endl;
cout << songNum <<" songs" << endl;
return 0;
}
1. The error in the first cout statement is that variable songnum is not declared.
C++ is a case sensitive programme language; it treats upper case and lower case characters differently.
Variable songNum was declared; not songnum.
2. Cout us used to print a Variable that has already been declared.
The error arises in int songNum in the second cout statement.
3. When printing more than one variables or values, they must be separated with <<
Circle because it’s round and we all love round things
Answer:
Part 1: It would be a straight line, current will be directly proportional to the voltage.
Part 2: The current would taper off and will have negligible increase after the voltage reaches a certain value. Graph attached.
Explanation:
For the first part, voltage and current have a linear relationship as dictated by the Ohm's law.
V=I*R
where V is the voltage, I is the current, and R is the resistance. As the Voltage increase, current is bound to increase too, given that the resistance remains constant.
In the second part, resistance is not constant. As an element heats up, it consumes more current because the free sea of electrons inside are moving more rapidly, disrupting the flow of charge. So, as the voltage increase, the current does increase, but so does the resistance. Leaving less room for the current to increase. This rise in temperature is shown in the graph attached, as current tapers.
Answer:
<em>Both Tech A and Tech B are correct.</em>
<em>Explanation:</em>
<em>The Hall effect sen sensor are used to control displacements and rotations of various body components of the vehicles, engine vibrations , and the ignition system</em>
<em>The optical-type sensor converts rays of light into electronic signals. It measures the quantity physically of which the translates to a form that is understandable or readable by an instrument. An optical sensor is larger part of a system that integrates light sources, a device for measuring and the optical sensor, which therefore is usually connected to an electrical trigger.</em>
Answer with Explanation:
The modulus of elasticity has an profound effect on the mechanical design of any machine part as explained below:
1) Effect on the stiffness of the member: The ability of any member of a machine to resist any force depends on the stiffness of the member. For a member with large modulus of elasticity the stiffness is more and hence in cases when the member has to resist a direct load the member with more modulus of elasticity resists the force better.
2)Effect on the deflection of the member: The deflection caused by a force in a member is inversely proportional to the modulus of elasticity of the member thus in machine parts in which we need to resist the deflections caused by the load we can use materials with greater modulus of elasticity.
3) Effect to resistance of shear and torque: Modulus of rigidity of a material is found to be larger if the modulus of elasticity of the material is more hence for a material with larger modulus of elasticity the resistance it offer's to shear forces and the torques is more.
While designing a machine element since the above factors are important to consider thus we conclude that modulus of elasticity has a profound impact on machine design.