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 satellite orbits the Earth every 2 hours at an average distance from the Earth's centre of 8000km. (i) What is the average ang
AlexFokin [52]

Answer:

i)ω=3600 rad/s

ii)V=7059.44 m/s

iii)F=1245.8 N

Explanation:

i)

We know that angular speed given as

\omega =\dfrac{d\theta}{dt}

We know that for one revolution

θ=2π

Given that time t= 2 hr

So

ω=θ/t

ω=2π/2 = π rad/hr

ω=3600 rad/s

ii)

Average speed V

V=\sqrt{\dfrac{GM}{R}}

Where M is the mass of earth.

R is the distance

G is the constant.

Now by putting the values

V=\sqrt{\dfrac{GM}{R}}

V=\sqrt{\dfrac{6.667\times 10^{-11}\times 5.98\times 10^{24}}{8000\times 10^3}}

V=7059.44 m/s

iii)

We know that centripetal fore given as

F=\dfrac{mV^2}{R}

Here given that m= 200 kg

R= 8000 km

so now by putting the values

F=\dfrac{mV^2}{R}

F=\dfrac{200\times 7059.44^2}{8000\times 10^3}

F=1245.8 N

3 0
3 years ago
A bakery wants to determine how many trays of doughnuts it should prepare each day. Demand is normal with a mean of 15 trays and
shutvik [7]

The number of trays that should be prepared if the owner wants a service level of at least 95% is; 7 trays

<h3>How to utilize z-score statistics?</h3>

We are given;

Mean; μ = 15

Standard Deviation; σ = 5

We are told that the distribution of demand score is a bell shaped distribution that is a normal distribution.

Formula for z-score is;

z = (x' - μ)/σ

We want to find the value of x such that the probability is 0.95;

P(X > x) = P(z > (x - 15)/5) = 0.95

⇒ 1 -  P(z ≤ (x - 15)/5) = 0.95

Thus;

P(z ≤ (x - 15)/5) = 1 - 0.95

P(z ≤ (x - 15)/5) = 0.05

The value of z from the z-table of 0.05 is -1.645

Thus;

(x - 15)/5 = -1.645

x ≈ 7

Complete Question is;

A bakery wants to determine how many trays of doughnuts it should prepare each day. Demand is normal with a mean of 15 trays and standard deviation of 5 trays. If the owner wants a service level of at least 95%, how many trays should he prepare (rounded to the nearest whole tray)? Assume doughnuts have no salvage value after the day is complete. 6 5 4 7 unable to determine with the above information.

Read more about Z-score at; brainly.com/question/25638875

#SPJ1

4 0
1 year ago
An FPC 4 m2 in area is tested during the night to measure the overall heat loss coefficient. Water at 60 C circulates through th
sp2606 [1]

Answer:

<em> - 14.943 W/m^2K  ( negative sign indicates cooling ) </em>

Explanation:

Given data:

Area of FPC = 4 m^2

temp of water = 60°C

flow rate = 0.06 l/s

ambient temperature = 8°C

exit temperature = 49°C

<u>Calculate the overall heat loss coefficient </u>

Note : heat lost by water = heat loss through convection

m*Cp*dT  = h*A * ( T - To )

∴ dT / T - To = h*A / m*Cp  ( integrate the relation )

In ( \frac{49-8}{60-8} ) =  h* 4 / ( 0.06 * 10^-3 * 1000 * 4180 )

In ( 41 / 52 ) = 0.0159*h

hence h = - 0.2376 / 0.0159

              = - 14.943  W/m^2K  ( heat loss coefficient )

7 0
2 years ago
A manometer containing a fluid with a density of 60 lbm/ft3 is attached to a tank filled with air. If the gage pressure of the a
8090 [49]

Answer:

The fluid level difference in the manometer arm = 22.56 ft.

Explanation:

Assumption: The fluid in the manometer is incompressible, that is, its density is constant.

The fluid level difference between the two arms of the manometer gives the gage pressure of the air in the tank.

And P(gage) = ρgh

ρ = density of the manometer fluid = 60 lbm/ft³

g = acceleration due to gravity = 32.2 ft/s²

ρg = 60 × 32.2 = 1932 lbm/ft²s²

ρg = 1932 lbm/ft²s² × 1lbf.s²/32.2lbm.ft = 60 lbf/ft³

h = fluid level difference between the two arms of the manometer = ?

P(gage) = 9.4 psig = 9.4 × 144 = 1353.6 lbf/ft²

1353.6 = ρg × h = 60 lbf/ft³ × h

h = 1353.6/60 = 22.56 ft

A diagrammatic representation of this setup is presented in the attached image.

Hope this helps!

5 0
3 years ago
The Stefan-Boltzmann law can be employed to estimate the rate of radiation of energy H from a surface, as in
Mazyrski [523]

Explanation:

A.

H = Aeσ^4

Using the stefan Boltzmann law

When we differentiate

dH/dT = 4AeσT³

dH/dT = 4(0.15)(0.9)(5.67)(10^-8)(650)³

= 8.4085

Exact error = 8.4085x20

= 168.17

H(650) = 0.15(0.9)(5.67)(10^-8)(650)⁴

= 1366.376watts

B.

Verifying values

H(T+ΔT) = 0.15(0.9)(5.67)(10)^-8(670)⁴

= 1542.468

H(T+ΔT) = 0.15(0.9)(5.67)(10^-8)(630)⁴

= 1205.8104

Error = 1542.468-1205.8104/2

= 168.329

ΔT = 40

H(T+ΔT) = 0.15(0.9)(5.67)(10)^-8(690)⁴

= 1735.05

H(T-ΔT) = 0.15(0.9)(5.67)(10^-8)(610)⁴

= 1735.05-1059.83/2

= 675.22/2

= 337.61

5 0
3 years ago
Other questions:
  • What is EL Niño?
    9·1 answer
  • A thick steel slab ( 7800 kg/m3, 480 J/kg·K, 50 W/m·K) is initially at 300°C and is cooled by water jets impinging on one of its
    14·2 answers
  • For a copper-silver alloy of composition 25 wt% Ag-75 wt% Cu and at 775°C (1425°F) do the following:
    15·1 answer
  • What is pneumatic troubleshooting
    6·1 answer
  • is sampled at a rate of to produce the sampled vector and then quantized. Assume, as usual, the minimum voltage of the dynamic r
    9·1 answer
  • 1. Asphyxiation is a hazard posed by Compressed Natural Gas (CNG) vehicles and can be detected when you notice
    7·1 answer
  • Question 3 (5 points)
    7·1 answer
  • Problem 89:A given load is driven by a 480 V six-pole 150 hp three-phase synchronous motor with the following load and motor dat
    11·1 answer
  • 1. Explain the term engine<br>compression​
    10·2 answers
  • Which option identifies the free resource Judi can use in the following scenario?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!