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
The speed of an aircraft is given to be 260 m/s in air. If the speed of sound at that location is 330 m/s, the flight of the air
navik [9.2K]

Answer:

Ma=\frac{260}{330} \\Ma=0.7878

So, Ma < 1  Flow is Subsonic

Explanation:

Mach Number:

Mach Number is the ratio of speed of the object to the speed of the sound. It is used to categorize the speed of the object on the basis of mach number as sonic, supersonic and hyper sonic. (It is a unit less quantity)

Mach < 1       Subsonic

Mach > 1       Supersonic

Ma= Speed of the object/Speed of the sound

Ma=\frac{260}{330} \\Ma=0.7878

So, Ma < 1 Flow is Subsonic

8 0
4 years ago
Can i join three 12 volts batteriesto give me 24 volts output​
bulgar [2K]

Answer:

YES

Explanation:

If we connect batteries in series then the output voltage is the sum of the individual voltage of each battery i.e if you connect three 12 volts batteries in series then their output voltage will be 12+12+12=36 volts, but the current rating of the batteries in series will be same of the individual battery rating in 'mah'.

But when we connect the batteries in parallel their voltage is not added  but their current rating in mah is addition of their individual rating.

So, If you want 24 volts from three 12 volts battery then you can connect two of them in series and the other one in parallel with them this will give 24 volts and the current will be addition of the two series batteries and the third which is in parallel with them. You can use this configuration if current value is not a big factor.

8 0
3 years ago
The acceleration (in m/s^2) of a linear slider (undergoing rectilinear motion) within a If the machine can be expressed in terms
Inga [223]

Answer:

47.91 sec

Explanation:

it is given that \alpha =\frac{1}{4v^{2}}

at t=0 velocity =0 ( as it is given that it is starting from rest )

we have to find time at which velocity will be 3.3 \frac{m}{sec^{2}}

we know that \alpha =\frac{dv}{dt}=\frac{1}{4v^{2}}

4v^{2}dv=dt

integrating both side

\frac{4v^{3}}{3}=t+c---------------eqn 1

at t=o it is given that v=0 putting these value in eqn 1 c=0

so \frac{4v^{3}}{3}=t

when v=  3.3 \frac{m}{sec^{2}}

t=\frac{4}{3}\times 3.3^{3}

=47.91 sec

6 0
4 years ago
It is given that 50 kg/sec of air at 288.2k is iesntropically compressed from 1 to 12 atm. Assuming a calorically perfect gas, d
denis23 [38]

The exit temperature is 586.18K and  compressor input power is 14973.53kW

Data;

  • Mass = 50kg/s
  • T = 288.2K
  • P1 = 1atm
  • P2 = 12 atm

<h3>Exit Temperature </h3>

The exit temperature of the gas can be calculated isentropically as

\frac{T_2}{T_1} = (\frac{P_2}{P_1})^\frac{y-1}{y}\\ y = 1.4\\ C_p= 1.005 Kj/kg.K\\

Let's substitute the values into the formula

\frac{T_2}{T_1} = (\frac{P_2}{P_1})^\frac{y-1}{y} \\\frac{T_2}{288.2} = (\frac{12}{1})^\frac{1.4-1}{1.4} \\ T_2 = 586.18K

The exit temperature is 586.18K

<h3>The Compressor input power</h3>

The compressor input power is calculated as

P= mC_p(T_2-T_1)\\P = 50*1.005*(586.18-288.2)\\P= 14973.53kW

The compressor input power is 14973.53kW

Learn more on exit temperature and compressor input power here;

brainly.com/question/16699941

brainly.com/question/10121263

6 0
2 years ago
Consider a 2-shell-passes and 8-tube-passes shell-and-tube heat exchanger. What is the primary reason for using many tube passes
Maru [420]

Answer:

See explanation

Explanation:

Solution:-

- The shell and tube heat exchanger are designated by the order of tube and shell passes.

- A single tube pass: The fluid enters from inlet, exchange of heat, the fluid exits.

- A multiple tube pass: The fluid enters from inlet, exchange of heat, U bend of the fluid, exchange of heat, .... ( nth order of pass ), and then exits.

- By increasing the number of passes we have increased the "retention time" of a specific volume of tube fluid; hence, providing sufficient time for the fluid to exchange heat with the shell fluid.

- By making more U-turns we are allowing greater length for the fluid flow to develop with " constriction and turns " into turbulence. This turbulence usually at the final passes allows mixing of fluid and increases the heat transfer coefficient by:

                                U ∝ v^( 0.8 )    .... ( turbulence )

- The higher the velocity of the fluids the greater the heat transfer coefficient. The increase in the heat transfer coefficient will allow less heat energy carried by either of the fluids to be wasted ; hence, reduced losses.

Thereby, increases the thermal efficiency of the heat exchanger ( higher NTU units ).

5 0
3 years ago
Other questions:
  • Nc3
    12·1 answer
  • What are the challenges posed by strategic information systems, and how should they be addressed?
    10·1 answer
  • Looking back, I was sure that I was going to die that November afternoon. Tornado watches in Alabama are as common as eggs are f
    15·2 answers
  • A local surf report provides the height of the wave from the trough to the crest of the wave. How does this relate to the wave’s
    11·1 answer
  • One employee was climbing a metal ladder to hand an electric drill to the journeyman installer on a scaffold about five feet abo
    9·1 answer
  • Which of the following devices is a simple machine?
    11·2 answers
  • Waste that is generated by a business is called a _____________.
    14·2 answers
  • 3. What is special about beryllium-copper alloy tools?
    6·2 answers
  • Technician A says that fuel filler caps with pressure and vacuum vents are used with EVAP system fuel tanks. Technician B says t
    5·1 answer
  • If a condenser has high head pressure and a higher than normal temperature, a technician could ____.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!