Answer:
Following are the program in C++ language :
#include <iostream> // header file
using namespace std; // using namespace
int main() // main method
{
int amount,total=0; // two int variable declaration
cout<<" enter amount:";
cin>>amount; // read input amount first time
total=total+amount; // first calculation
cout<<" enter amount:";
cin>>amount; //read input amount second time
total=total+amount;// second calculation
cout<<" enter amount:";
cin>>amount;// read input amount third time
total=total+amount;// third calculation
cout<<"total:"<<total; // display total
return 0;
}
Output:
enter amount:12
enter amount:12
enter amount:12
total:36
Explanation:
Following are the explanation of program which is mention above
- Declared the two variable total and amount of int type .
- Initialize the variable total to "0".
- Read the 3 input in "amount" variable in one by one by using cin function and adding their value to the "total "variable .
- Finally display the total.
Answer:
import java.util.Scanner;
public class num2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter Name");
String name = in.next();
System.out.println("Enter Age");
int age = in.nextInt();
System.out.println("The age of "+name +" is "+age);
}
}
Explanation:
Java programming language is used to write the code.
The scanner class is used to prompt and receive values for name and age which are stored in the appropriate variables.
The key idea here is using string concatenation in the output statement in order to print the desired output
Ergonomic injuries are caused by ergonomic risk factors like
awkward or sustained postures, strain, contact pressure, exposure to vibration
and exposure to heat or cold. Over time, a combination of these factors may
lead to injury, pain, and disability. Ergonomic injuries which can directly or
indirectly be related to work environment can affect the nerves, tissues,
muscles, tendons, and joints. For instance, on average, an employee may spend
about 6-8 hours on the computer.
<span>The
symptoms that computer users may exhibit when they experience these musculoskeletal
disorders include pain in the shoulders, upper or lower back and the
neck. Others include discomfort when making certain movements, loss of
coordination, general feeling of cramping, weakness of muscle function, and a
sharp burning stabbing pain in the
wrists.</span>