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
In the last 5 meters of braking, you lose ___ of your speed.
expeople1 [14]

Answer:

answer is

a)

3/4

Explanation:

In the last 5 meters of braking, you lose 3/4 of your speed.

5 0
3 years ago
What are the benefits of NSTP CWTS?​
geniusboy [140]

Explanation:

The purpose of this program is to recognize the Youth's vital role in nation- building, promote consciousness among youth and develop their physical, moral, spiritual, intellectual and social well-being. It shall inculcate in the youth patriotism, nationalism, and advance their involvement in public and civic affairs.

8 0
3 years ago
An inventor claims to have devised a cyclical power engine that operates with a fuel whose temperature is 750 °C and radiates wa
Phantasy [73]

Answer:

Yes

Explanation:

Given Data

Temprature of source=750°c=1023k

Temprature of sink =0°c=273k

Work produced=3.3KW

Heat Rejected=4.4KW

Efficiency of heat engine(η)=\frac{Work produced}{Heat supplied}

and

Heat Supplied {\left (Q_s\right)}=Work Produced(W)+Heat rejected\left ( Q_r \right )

{Q_s}=3.3+4.4=7.7KW

η=\frac{3.3}{7.7}

η=42.85%

Also the maximum efficiency of a heat engine operating between two different Tempratures i.e. Source & Sink

η=1-\frac{T_ {sink}}{T_ {source}}

η=1-\frac{273}{1023}

η=73.31%

Therefore our Engine Efficiency is less than the maximum efficiency hence the given claim is valid.

5 0
3 years ago
Name the seven physical qualities for which standards have been developed.
SIZIF [17.4K]

Answer:

HUMAN DEVELOPMENT

MOTOR BEHAVIOR

EXERCISE SCIENCE

MEASUREMENT AND EVALUATION

HISTORY AND PHILOSOPHY

UNIQUE ATTRIBUTES OF LEARNERS

CURRICULUM THEORY AND DEVELOPMENT

Explanation:

6 0
3 years ago
A piston-cylinder device contains 0.1 m3 of liquid water and 0.9 m² of water vapor in equilibrium at 800 kPa. Heat is transferre
docker41 [41]

Answer:

Initial temperature = 170. 414 °C

Total mass = 94.478 Kg

Final volumen = 33.1181 m^3

Diagram  = see picture.

Explanation:

We can consider this system as a close system, because there is not information about any output or input of water, so the mass in the system is constant.  

The information tells us that the system is in equilibrium with two phases: liquid and steam. When a system is a two phases region (equilibrium) the temperature and pressure keep constant until the change is completed (either condensation or evaporation). Since we know that we are in a two-phase region and we know the pressure of the system, we can check the thermodynamics tables to know the temperature, because there is a unique temperature in which with this pressure (800 kPa) the system can be in two-phases region (reach the equilibrium condition).  

For water in equilibrium at 800 kPa the temperature of saturation is 170.414 °C which is the initial temperature of the system.  

to calculate the total mass of the system, we need to estimate the mass of steam and liquid water and add them. To get these values we use the specific volume for both, liquid and steam for the initial condition. We can get them from the thermodynamics tables.

For the condition of 800 kPa and 170.414 °C using the thermodynamics tables we get:

Vg (Specific Volume of Saturated Steam) = 0.240328 m^3/kg

Vf (Specific Volume of Saturated Liquid) = 0.00111479 m^3/kg

if you divide the volume of liquid and steam provided in the statement by the specific volume of saturated liquid and steam, we can obtain the value of mass of vapor and liquid in the system.

Steam mass = *0.9 m^3 / 0.240328 m^3/kg = 3.74488 Kg

Liquid mass = 0.1 m^3 /0.00111479 m^3/kg = 89.70299 Kg  

Total mass of the system = 3.74488 Kg + 89.70299 Kg = 93,4478 Kg

If we keep the pressure constant increasing the temperature the system will experience a phase-change (see the diagram) going from two-phase region to superheated steam. When we check for properties for the condition of P= 800 kPa and T= 350°C we see that is in the region of superheated steam, so we don’t have liquid water in this condition.  

If we want to get the final volume of the water (steam) in the system, we need to get the specific volume for this condition from the thermodynamics tables.  

Specific Volume of Superheated Steam at 800 kPa and 350°C = 0.354411 m^3/kg

We already know that this a close system so the mass in it keeps constant during the process.

 

If we multiply the mass of the system by the specific volume in the final condition, we can get the final volume for the system.  

Final volume = 93.4478 Kg * 0.354411 m^3/kg = 33.1189 m^3

You can the P-v diagram for this system in the picture.  

For the initial condition you can calculate the quality of the steam (measure of the proportion of steam on the mixture) to see how far the point is from for the condition on all the mix is steam. Is a value between 0 and 1, where 0 is saturated liquid and 1 is saturated steam.  

Quality of steam = mass of steam / total mass of the system

Quality of steam = 3.74488 Kg /93.4478 Kg = 0,040 this value is usually present as a percentage so is 4%.  

Since this a low value we can say that we are very close the saturated liquid point in the diagram.  

6 0
3 years ago
Other questions:
  • The difference between ideal voltage source and the ideal current source​
    7·2 answers
  • How much work is performed if a 400 lb weight is lifted 10 ft ?
    8·1 answer
  • Which utility program reads an assembly language source file and produces an object file?
    6·1 answer
  • What is a business cycle? a period of economic growth followed by economic contraction the amount of time it takes a business to
    13·2 answers
  • A kernel-level thread wishes to acquire a mutex lock declared as global in the process. True or False: the function call used be
    6·1 answer
  • A lighthouse built at sea level is 170ft high from its top , the angle of depression of a buoy is 29 degrees . Find the distance
    10·1 answer
  • Which actions would the maintenance and operations crews carry out as a building is completed and preparing to open to the publi
    8·2 answers
  • Select the correct answer.
    6·1 answer
  • What are the materials and tools used to build a headgear?​
    5·1 answer
  • The first thing you should do is develop a ____________________ to determine what vehicle you can afford.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!