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
Which traits are common in all four career pathways of the Information Technology field? Check all that apply.
Komok [63]

Answer:

Accuracy and attention to detail, Problem solving and critical thinking skills, Knowledge of programming language .

Explanation:

It is a technological area in which a person learns how to develop computer hardware, including PCs, laptops, tablets, processing, networking, and other hardware parts. Another field of study in IT is Management Information Systems (MIS).

The IT industry's career paths can be categorized equally in the two primary field’s hardware and software areas  

In hardware, there is Production, maintenance, research and development, and strategic planning.

In software, there is manufacturing, development, programming, software testing, and maintenance and support under software.  

Computer operations, administration of databases, sales / marketing and data centre management are connected areas.

7 0
2 years ago
A 1000 W iron utilizes a resistance wire which is 20 inches long and has a diameter of 0.08 inches. Determine the rate of heat g
SSSSS [86.1K]

Answer:

The rate of heat generation in the wire per unit volume is 5.79×10^7 Btu/hrft^3

Heat flux is 9.67×10^7 Btu/hrft^2

Explanation:

Rate of heat generation = 1000 W = 1000/0.29307 = 3412.15 Btu/hr

Area (A) = πD^2/4

Diameter (D) = 0.08 inches = 0.08 in × 3.2808 ft/39.37 in = 0.0067 ft

A = 3.142×0.0067^2/4 = 3.53×10^-5 ft^2

Volume (V) = A × Length

L = 20 inches = 20 in × 3.2808 ft/39.37 in = 1.67 ft

V = 3.53×10^-5 × 1.67 = 5.8951×10^-5 ft^3

Rate of heat generation in the wire per unit volume = 3412.15 Btu/hr ÷ 5.8951×10^-5 ft^3 = 5.79×10^7 Btu/hrft^3

Heat flux = 3412.15 Btu/hr ÷ 3.53×10^-5 ft^2 = 9.67×10^7 Btu/hrft^2

3 0
3 years ago
The Energy Losses Associated with Valves and Fittings: a)- are generally associated with a K factor b)- are generally associated
madam [21]

Answer:

a)Are generally associated with factor.

Explanation:

We know that losses are two types

1.Major loss  :Due to friction of pipe surface

2.Minor loss  :Due to change in the direction of flow

As we know that when any hindrance is produced during the flow of fluid then it leads to generate the energy losses.If flow is along uniform diameter pipe then there will not be any loss but if any valve and fitting placed is the path of fluid flow due to this direction of fluid flow changes and  it produce losses in the energy.

Lot' of experimental data tell us that loss in the energy due to valve and fitting are generally associated with K factor.These losses are given as

Losses=K\dfrac{V^2}{2g}

8 0
3 years ago
Which part of a machine control unit interacts with the machine tools through electric signals?=]
FrozenT [24]

Answer:

control loop unit

Explanation:

Edmentum/Plato

4 0
3 years ago
Determine an expression in standard form for the voltage gain VoVs. Hv(jω)=Vo(jω)Vi(jω)=R2R111+jωCR2 Hv(jω)=Vo(jω)Vi(jω)=−R2R111
IceJOKER [234]

Answer:

Applying Kirchhoff's current law at inverting terminal

Explanation:

Detailed explanation is given in the attached document.

5 0
3 years ago
Other questions:
  • Why should engineers avoid obvious patterns?
    13·2 answers
  • Whenever you are around construction sites, you should A speed up so you get through it quicker and avoid falling rocks B maneuv
    10·1 answer
  • Define volume flow rate Q of air flowing in a duct of area A with average velocity V
    12·1 answer
  • A solid steel shaft has to transmit 100 kW at 160 RPM. Taking allowable shear stress at 70 Mpa, find the suitable diameter of th
    15·1 answer
  • Might give brainliest
    8·1 answer
  • Both equilibrium equations and constitutive models are needed to solve statically indeterminate problems. a)- True b)-False
    13·1 answer
  • ... is an actual sequence of interactions (i.e., an instance) describing one specific situation; a ... is a general sequence of
    9·1 answer
  • How much memory can a 32 -bit processor support ?
    13·1 answer
  • An atom that gained an electron is called​
    10·2 answers
  • In a typical American building, most modern lighting systems must use what voltage?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!