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.
B when new hazards are introduced into the workplace
Answer:
Here is some that I know. The code is below:
#accepting input hex_num=input() #checking if it is a number if(hex_num>='0' and hex_num<='9'): #printing that number print(hex_num) #checking
Explanation:
I hope this helps
I will help with as many as I can! :)
-
16. Slogans
17. Website Design and Development Process
18. Planning
19. (This question is the same as question 18 so I am at a loss here, sorry)
20. Confuse users, believing it is a hyperlink.
I apologize for the wait. I was trying to double check my sources. Also, I apologize in advance if something is wrong.