Answer:
The solution code is written in C++.
- unsigned int SumOfDigits(int n){
- int sum = 0;
- sum += n % 10;
- n = n / 10;
-
- while(n != 0){
- sum += n % 10;
- n = n / 10;
- }
-
- return sum;
- }
Explanation:
Firstly, define a function with name <em>SumOfDigits()</em> that take one input integer, <em>n</em> and return an unsigned summation integer (Line 1). Next, we declare a variable sum to hold the value of summation of all the integer digits. Let's initialize it with zero (Line 2).
We can get the first digit from the integer by calculating the remainder of n after dividing it by 10 using modulus operator (%) and the remainder obtained is added to the sum variable (Line 3). Next, we divide the integer n by 10 (Line 4). This will discard the last digit of integer n (from the right).
We just need to repeat the process from Line 3-4 using a while loop so long as the current integer n is not zero (Line 6-8). We shall be able to take out the individual digit and add it to variable<em> sum</em>.
At the end, return the <em>sum</em> as output (Line 11).
Answer:
Considering the guidelines of this exercise.
The pieces produced per month are 504 000
The productivity ratio is 75%
Explanation:
To understand this answer we need to analyze the problem. First of all, we can only produce 2 batches of production by the press because we require 3 hours to set it up. So if we rest those 6 hours from the 8 of the shift we get 6, leaving 2 for an incomplete bath. So multiplying 2 batches per day of production by press we obtain 40 batches per day. So, considering we work in this factory for 21 days per month well that makes 40 x 21 making 840 then we multiply the batches for the pieces 840 x 600 obtaining 504000 pieces produced per month. To obtain the productivity ratio we need to divide the standard labor hours meaning 6 by the amount of time worked meaning 8. Obtaining 75% efficiency.
Answer:
56.47%
Explanation:
Determine the efficiency of the Engine
Given data : T1 (k) = 325, P1 (kpa) = 185,
V1 (cm^3) = 410 , r = 8, T3(k) = 3420
speed ( RPM) = 4800
USING THIS FORMULA
efficiency ( <em>n </em>) =
= 1 - = 1 - (1/8^1.4-1 )
= 0.5647 = 56.47%
Answer:
To be able to develop as a human and give back to the community. To ensure that people have safe food and water to drink, clean fuel and energy sources, and in general a safe enviornment to live in.
Explanation: