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
Universal Containers uses the Case object to track service tickets. They have implemented Case teams to allow multiple support r
inna [77]

Answer:

Universal Containers uses the Case object to track service tickets. They have implemented Case teams to allow multiple support representatives to manage the Cases. Which two "Filter by owner" options would the user see while creating a list view on the Case object?

Choose 2 answers

A. My Case Teams

B. Roles

C. Public Groups

D. Queue

Correct answer is option A and D

A) My case teams &

D) Queue

Explanation:

Since a case team was implemented to allow multiple support representatives manage the case, the two filter by owner options the user will see are; my case teams and queue.

Queue entails choosing a specific case queue to look at for your view. Which in this case the user will see because the case isn't handled by one person.

In my case teams, cases are filtered to look at only cases where you’re on the case team.

6 0
3 years ago
Hydrogen peroxide, H2O2, enters a gas generator at 25 Celsius, 500 kPa, at the rate of 0.1 kg/s and is decomposed to steam and o
Blizzard [7]

Take a look at the pictures that should help you out.

8 0
3 years ago
A wide-sense stationary process X(t) is the input to a linear system whose impulse response is h(t)=2e^(-7t), t≥0.
zimovet [89]

Answer:

The power spectral density of Y(t) is Syy(w) = \frac{32}{(4+w^2)(16+w^2)}

Explanation:

4 0
3 years ago
Technician A says that the most efficient method of EVAP system leak detection is introducing smoke under low pressure from a ma
Inessa05 [86]

Answer:

does anyone know this answer???

Explanation:

3 0
3 years ago
The Molybdenum with an atomic radius 0.1363 nm and atomic weight 95.95 has a BCC unit cell structure. Calculate its theoretical
Nookie1986 [14]

Solution:

Given :

atomic radius, r = 0.1363nm = 0.1363×10⁻⁹m

atomic wieght, M = 95.96

Cell structure is BCC (Body Centred Cubic)

For BCC, we know that no. of atoms per unit cell, z = 2

and atomic radius, r =\frac{a\sqrt{3} }{4}

so, a = \frac{4r}{\sqrt{3}}

m = mass of each atom in a unit cell

mass of an atom = \frac{M}{N_{A} },

where, N_{A} is Avagadro Number = 6.02×10^{23}

volume of unit cell = a^{3}

density, ρ = \frac{mass of unit cell}{volume of unit cell}

density, ρ = \frac{z\times M}{a^{3}\times N_{A}}

ρ = \frac{2\times 95.95}{(\frac{4\times 0.1363\times 10^{-9}}{\sqrt{3}})^{3}\times (6.23\times 10^{23})}

ρ = 10.215gm/cm^{3}

5 0
3 years ago
Other questions:
  • Answer true or false 3.Individual people decide what will be produced in a command<br> oconomy
    13·2 answers
  • The type of current that flows from the electrode across the arc to the work is called what?
    5·1 answer
  • A 12-ft circular steel rod with a diameter of 1.5-in is in tension due to a pulling force of 70-lb. Calculate the stress in the
    15·1 answer
  • what is an example of an innovative solution to an engineering problem? Explain briefly why you chose this answer.
    14·1 answer
  • . Bơm kiểu piston tác dụng đơn có áp suất p=0,64 Mpa và lưu lượng Q=3,5 l/s. Xác định tốc độ quay của trục bơm và công suất của
    7·1 answer
  • Entor" by
    9·1 answer
  • My teacher wants me to build a perpetual motion machine and present it. I know they don't exist, and SHE knows they don't exist
    12·2 answers
  • At what distance from the Earth’s surface is a 10,000 kg satellite if its potential energy is equal to –5.58 x 1011 J? (choose t
    5·1 answer
  • 2. What is the Function of the Camshaft in an Internal Combustion Engine?
    13·1 answer
  • What happens to the duty cycle for a GMAW Gun when 75Ar/25COzgas
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!