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
OSHA requires safe work practices when working around brake shoes and clutches that contain asbestos.
Nataly_w [17]

Answer:

true

Explanation:

4 0
3 years ago
What are the characteristic features of stress corrosion cracks?
Oduvanchick [21]

Answer and Explanation:

The crack formation growth that takes place in an environment corrosive.

Stress corrosion cracks can be defined as the spontaneous failures of the metal alloy as a result of the combined action of corrosion and high tensile stress.

Some of the characteristic features of stress corrosion cracks are:

  • These occur at high temperatures.
  • Occurrence of failures in metals mechanically.
  • Occurrence of sudden and unexpected failures under tensile stress.
  • The rate of work hardening of the metal alloy is high.
  • Time
  • An environment that is specific for stress corrosion cracking.
5 0
3 years ago
This question is 100 points<br> I NEED HELP!!!
Mamont248 [21]

Answer:

hey if u repost this i can answer it u and u dont have to waste this much points but its super blury and not even able to read a single word

8 0
3 years ago
Read 2 more answers
What is one of the most common ways workers get hurt around machines
-BARSIC- [3]

Answer:

if their body parts stuck in a machine,if machine expl

Explanation:

ode.

4 0
3 years ago
(True/False) Unix is written in the C language. *<br> True<br> O False
Katarina [22]

Answer:

false

Explanation:

8 0
2 years ago
Read 2 more answers
Other questions:
  • In what situation you would prefer to use a successive approximation ADC over flash ADC?
    13·1 answer
  • Steam flows at steady state through a converging, insulated nozzle, 25 cm long and with an inlet diameter of 5 cm. At the nozzle
    11·1 answer
  • Please select the word from the list that best fits the definition I love horses and want to be a veterinarian
    12·2 answers
  • Hydrogen gas (density = 1.165 kg/m^3 ) is stored at 25°C in a permeable cylindrical container which has an outer diameter of 0.2
    11·1 answer
  • A waste treatment pond is 50m long and 25m wide, and has an average depth of 2m.The density of the waste is 75.3 lbm/ft3. Calcul
    12·1 answer
  • Which of the following is not necessary a reason to machine a brake drum?
    8·1 answer
  • Which is an alloy made up of iron and carbon and has high compressive and tensile strength?
    6·1 answer
  • ?Why the efficiency of Class A amplifier is very poor​
    11·1 answer
  • The hot-wire anemometer.' A hot-wire anemome ter is essentially a fine wire, usually made of platinum,which is heated electrical
    6·1 answer
  • A jet of water 75m in diameter,issues with a velocity of 30m/s and impinge on a stationary plate which distort its forward motio
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!