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");
}
Answer:
a)
, b)
, c) 
Explanation:
a) The tank can be modelled by the Principle of Mass Conservation:

The mass flow rate exiting the tank is:



b) An expression for the specific enthalpy at outlet is derived from the First Law of Thermodynamics:


Properties of water are obtained from tables:



The specific enthalpy at outlet is:


c) After a quick interpolation from data availables on water tables, the final temperature is:

Answer:
0.9104
Explanation:
Suitable technology can tell you the probability.
P(-1.5≤Z≤2) ≈ 0.9104
__
A phone app gives the probability as 0.9104426667829628.