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 rotor in a compressor stage has a mean blade radius of 0.285 m and an angular rotor velocity of 8500 RPMs. The static temperat
pantera1 [17]

Answer:

0,285 is the answer

Explanation:

6 0
3 years ago
Consider tests of an unswept wing that spans the wind tunnel and whose airfoil section is NACA 23012. Since the wing model spans
Dominik [7]

Answer:

Check the explanation

Explanation:

to know the lift per unit span (N/m) that is expected to be measured when the wing attack angle is 4°

as well as the corresponding section lift coefficient and die moment coefficient .

Kindly check the attached image below to see the step by step explanation to the above question.

3 0
3 years ago
Effects of adding more insulation to a cylinder increases heat transfer area. a)-True b)-False
Xelga [282]

Answer:

a)-True

Hope this helps even tho theres no school right now

3 0
3 years ago
a coil consists of 200 turns of copper wire and has a cross-sectional area of 0.8mm square . The mean length per turn is 80 cm a
Amanda [17]

Answer:

The picture below with the answer. Hope it helps, have a great day/night and stay safe! Length of the coil,

8 0
3 years ago
15 POINTS! Help.
IRISSAK [1]

Answer: it would  overload

Explanation:

4 0
2 years ago
Read 2 more answers
Other questions:
  • To make 1000 containers of ice cream you need: 600 gallons of milk, 275 gallons of cream, and 120 gallons of flavor. Each ingred
    12·1 answer
  • A three-phase, 480 Volt, 120 horsepower, 50 Hertz four-pole induction motor delivers rated output power at a slip of 4%. Determi
    12·2 answers
  • There are a number of requirements that employers must do to protect their workers from caught-in or
    12·1 answer
  • The fan blades suddenly experience an angular acceleration of 2 rad/s2. If the blades are rotating with an initial angular veloc
    10·1 answer
  • 1 kg of saturated steam at 1000 kPa is in a piston-cylinder and the massless cylinder is held in place by pins. The pins are rem
    5·1 answer
  • A light pressure vessel is made of 2024-T3 aluminum alloy tubing with suitable end closures. This cylinder has a 90mm OD, a 1.65
    8·1 answer
  • Water of dynamic viscosity 1.12E-3 N*s/m2 flows in a pipe of 30 mm diameter. Calculate the largest flowrate for which laminar fl
    13·1 answer
  • Which type of load generates a magnetic field?
    12·1 answer
  • ____________ is the organization that oversees environmental compliance.
    14·1 answer
  • What is the best way to collaborate with your team when publishing Instagram Stories from Hootsuite?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!