1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
3241004551 [841]
3 years ago
14

Global Courier Services will ship your package based on how much it weighs and how far you are sending the package. Packages abo

ve 100 pounds will not be shipped. You need to write a program in C that calculates the shipping charge.
Engineering
1 answer:
denis23 [38]3 years ago
8 0

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");

}

You might be interested in
a cubical box 20-cm on a side is contructed from 1.2 cm thick concrete panels. A 100-W light bulb is sealed inside the box. What
Flura [38]

Answer:

Temperature on the inside ofthe box

Explanation:

The power of the light bulb is the rate of heat conduction of the bulb, dq/dt = 100 W

The thickness of the wall, L = 1.2 cm = 0.012m

Length of the cube's side, x = 20cm = 0.2 m

The area of the cubical box, A = 6x²

A = 6 * 0.2² = 6 * 0.04

A = 0.24 m²

Temperature of the surrounding, T_0 = 20^0 C = 273 + 20 = 293 K

Temperature of the inside of the box, T_{in} = ?

Coefficient of thermal conductivity, k = 0.8 W/m-K

The formula for the rate of heat conduction is given by:

dq/dt = \frac{kA(T_{in} - T_0)}{L} \\\\100 = \frac{0.8*0.24(T_{in} - 293)}{0.012}\\\\T_{in} - 293 = \frac{100 * 0.012}{0.8*0.24} \\\\T_{in} - 293 = 6.25\\\\T_{in} = 293 + 6.25\\\\T_{in} = 299.25 K\\\\T_{in} = 299.25 - 273\\\\T_{in} = 26.25^0 C

5 0
4 years ago
A tensile test is performed on a metal specimen, and it is found that a true
alexdok [17]

Answer:

600 mpa

Explanation:

It's smart for a equation then you reperfuce

5 0
3 years ago
Why is logging done during drilling?
Solnce55 [7]

Answer:

Logging while drilling (LWD) is a technique of conveying well logging tools into the well borehole downhole as part of the bottom hole assembly (BHA). ... In these situations, the LWD measurement ensures that some measurement of the subsurface is captured in the event that wireline operations are not possible

8 0
3 years ago
A long, circular aluminum rod is attached at one end to a heated wall and transfers heat by convection to a cold fluid.
Trava [24]

Answer:

a. Heat removal rate will increase

b. Heat removal rate will decrease

Explanation:

Given that

One end of rod is connected to the furnace and rod is long.So this rod can be treated as infinite long fin.

We know that heat transfer in fin given as follows

Q_{fin}=\sqrt{hPKA}\ \Delta T

We know that area

A=\dfrac{\pi}{4}d^2

Now when diameter will triples then :

A_f=\dfrac{\pi}{4}{\left (3d \right )}^2

A_f=9A

Q'_{fin}=\sqrt{9hPKA}\ \Delta T

Q'_{fin}=3\sqrt{hPKA}\ \Delta T

Q'_{fin}=3Q

So the new heat transfer will increase by 3 times.

Now when copper rod will replace by aluminium rod :

As we know that thermal conductivity(K) of Aluminium is low as compare to Copper .It means that heat transfer will decreases.

3 0
3 years ago
The weatherman states that the current temperature is 95 F and the dew point is 74 F. What is the current relative humidity?
spayn [35]

Answer:

Current Relative Humidity is 29.623

Given:

Current Temperature, T_{c} = 95 F = 35^{\circ}C

Dew point temperature, T_{d} = 74 F = 23.34^{\circ}C

Solution:

Now, in order to calculate the Relative Humidity, RH, we use the given formula:

T_{d} =100( \frac{\frac{aT_{c}}{b + T}b + lnRH}{a - \frac{aT_{c}}{b + T} + lnRH})

where

a = 17.625

b = 237.7

Now, using the above formula and given values:

23.34 = (237.7\frac{\frac{17.625\times 35}{ 237.7 + 35} + lnRH}{17.625 - \frac{17.625\times 35}{237.7 + 35} + lnRH})

23.34(17.625 - 2.26 + lnRH) = (237.7\times 2.26 + lnRH)

358.62 + 23.34lnRH) = (537.20 + lnRH)

358.62 + 23.34lnRH) = (537.20 + lnRH)

On solving the above eqn, we get:

RH = 29.623

3 0
3 years ago
Other questions:
  • These tadpoles are confined to a limited environment. What are they all competing for in that environment
    12·2 answers
  • Air at 38°C and 97% relative humidity is to be cooled to 14°C and fed into a plant area at a rate of 510m3/min. (a) Calculate th
    11·1 answer
  • According to fire regulations in a town, the pressure drop in a commercial steel, horizontal pipe must not exceed 2.0 psi per 25
    5·1 answer
  • Three point charges, each with q = 3 nC, are located at the corners of a triangle in the x-y plane, with one corner at the origi
    15·1 answer
  • Payment to beneficiaries who were named by<br> the insured person
    12·1 answer
  • Random question, does anyone here use Lego, do not answer unless that is a yes
    15·2 answers
  • What are the risks of biohacking? Do you think the risks of biohacking outweigh the advantages? Why or why not?
    5·1 answer
  • Can you solve this question​
    11·2 answers
  • Which statement is true about the future of space travel?
    15·1 answer
  • Write a SELECT statement that returns these four columns:
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!