Answer:
Vb.Net
msgbox ("Press "q" twice to quit", msgboxstyle.information)
if char.q = keypress and keypress.count = 2 then
End
End if
Explanation:
Answer:
#include<iostream>
Using namespace std;
int main()
{
int n, qty;
double price, amount;
cout<<"Number of items ";
cin>>n;
cout<<"ITEM<<"\t"<<"QUANTITY"<<"\t"<<"PRICE"<<"\t"<<"ITEM TOTAL";
for(int i= 1; I<= n; i++)
{
cin>>qty;
cin>>price;
amount = qty * price;
cout<<i<<"\t "<<qty<<"\t"<<price<<"\t"<<amount;
}
}
Explanation
The above program is written in C++ programming language
5 variables are declared and used in the program
n is declared as an integer to represent the total number of items
qty is declared as integer to represent the total quantity of each item
price is declared as double to represent the amount of each individual item
amount is declared as double to represent the total amount of an item; it is gotten by qty * price
i is declared as integer to iterated between each items
The amount of each item is calculated within the iteration and also printed immediately
Answer with Explanation:
Stress is defined as the force acting per unit area on a material.
Mathematically
where
is the stress , is an infinitesimal force that acts on an infinitesimal area
When a body is under stress it's dimensions change and this change in dimensions is known as strain.
Mathematically
where
strain in the object
is the change in any dimension of the body
Now in the above relation of stress, the area involved also changes when the body is loaded as the load produces strain which changes the dimensions of the body.
Now while calculating the stress if we use the original area of the cross section of the body prior to loading the stress that we calculate is the engineering stress and the strain associated with it is the engineering strain.
On the other hand if we use the true cross section of the body when it is loaded the stress that we calculate is the true stress and the strain associated with it is the true strain.
Mathematically they are related as
Thus the true stress is found to be larger than engineering stress.