Answer:
The code will be:
#include <stdio.h>
#include <stdlib.h>
main () {
double weight, shippingCharge, rate, segments;
int distance;
printf("Enter the weight: \n");
scanf("%lf", &weight);
printf("Enter the distance: \n");
scanf("%i", &distance);
if (weight <= 10) {
printf("Rate is $3.00 \n");
rate = 3;
} else {
printf("Rate is $5.00 \n");
rate = 5;
}
if (distance % 500 == 0) {
segments = distance / 500;
} else {
segments = distance / 500 + 1;
}
shippingCharge = rate * segments;
if (distance >1000) {
shippingCharge = shippingCharge + 10;
}
printf("Your shipping charge is $%lf\n", shippingCharge);
system ("pause");
}
Explanation:
An XOR gate (sometimes referred to by its extended name, Exclusive OR gate) is a digital logic gate with two or more inputs and one output that performs exclusive disjunction. The output of an XOR gate is true only when exactly one of its inputs is true.
This is not a valid question. Please try again.
Answer:
-50.005 KJ
Explanation:
Mass flow rate = 0.147 KJ per kg
mass= 10 kg
Δh= 50 m
Δv= 15 m/s
W= 10×0.147= 1.47 KJ
Δu= -5 kJ/kg
ΔKE + ΔPE+ ΔU= Q-W
0.5×m×(30^2- 15^2)+ mgΔh+mΔu= Q-W
Q= W+ 0.5×m×(30^2- 15^2) +mgΔh+mΔu
= 1.47 +0.5×1/100×(30^2- 15^2)-9.7×50/1000-50
= 1.47 +3.375-4.8450-50
Q=-50.005 KJ
Explanation:
Yes Diesel engine have problem of knocking.
We know that knocking is phenomenon in which suddenly large amount of power generates this large amount of power will cause the failure of diesel engine.
Actually when one set of fuel inject inside the cylinder to burn with already compressed air (in general up to 10-15 bar) then this fuel does not burn complete and accumulate inside the cylinder.After that second set of fuel inject inside the cylinder then that one set of fuel burns with second set of fuel and produces large amount of sudden power for engine and causes the breaks in the crank or connecting rod of engine.it leads to damage the engine.