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
MakcuM [25]
3 years ago
5

Using only the sequential operations described in Section 2.2.2, write an algorithm that gets two values: the price for item A a

nd the quantity purchased. The algorithm should then print the total cost and the total cost plus an 8% sales tax.
Engineering
1 answer:
suter [353]3 years ago
7 0

Answer:

total_cost = cost + tax

Explanation:

Step1) Let the 2 variable for take input from user e.g price and quantity

var price ;

var quantity ;

var cost ;

var tax ;

var total_cost ;

Step2) take input from user quantity of item 'A'

step3) cost = price * quantity

Step4) tax = 0.08 * cost

Step5) total_cost = cost + tax

Step6) print the total_cost

You might be interested in
A bridge to be fabricated of steel girders is designed to be 500 m long and 12 m wide at ambient temperature (assumed 20°C). Exp
Volgvan

Answer:

a) 22.5number

b) 22.22 m length

Explanation:

Given data:

Bridge length = 500 m

width of bridge = 12 m

Maximum temperature = 40 degree C

minimum temperature  = - 35 degree C

Maximum expansion can be determined as

\Delta L = L \alpha (T_{max} - T_{min})

where , \alpha is expansion coefficient = 12\times 10^{-6} degree C

SO, \Delta L = 500\times 12\times 10^{-6}\times ( 40 - (-35))

\Delta L = 0.45 m = 450 mm

number of minimum expansion joints is calculated as

n = \frac{450}{20} = 22.5

b) length of each bridge

Length = \frac{500}{22.5} = 22.22 m

8 0
3 years ago
What is one of the most common ways workers get hurt around machines
-BARSIC- [3]

Answer:

if their body parts stuck in a machine,if machine expl

Explanation:

ode.

4 0
3 years ago
Provide an argument justifying the following claim: The average (as defined here) of two Java ints i and j is representable as a
ahrayia [7]

Answer:

public static int average(int j, int k) {

return (int)(( (long)(i) + (long)(j) ) /2 );

}

Explanation:

The above code returns the average of two integer variables

Line 1 of the code declares a method along with 2 variables

Method declared: average of integer data type

Variables: j and k of type integer, respectively

Line 2 calculates the average of the two variables and returns the value of the average.

The first of two integers to average is j

The second of two integers to average is k

The last parameter ensures average using (j+k)/2

3 0
3 years ago
The two boxcars A and B have a weight of 20 000 Ib and 30 000 Ib, respectively. If they coast freely down the incline when the b
Tpy6a [65]

Answer:

Answer for the question :

"the two boxcars A and B have a weight of 20 000 Ib and 30 000 Ib, respectively. If they coast freely down the incline when the brakes are applied to all the wheels of car A causing it to skid, determine the force in the coupling C between the two cars. The coefficient of kinetic friction between the wheels of A and the tracks is μk=0.5. The wheels of car B are free to roll. Neglect their mass in calculation."

is explained in the attachment.

Explanation:

Download pdf
3 0
3 years ago
Read 2 more answers
You can help build a safe work environment by using your knowledge of violence prevention strategies to spot what?
Ostrovityanka [42]

Answer:

warning signs

Explanation:

give directions on your surroundings

4 0
3 years ago
Other questions:
  • Biologists use a sequence of letters A, C, T, and G to model a genome. A gene isa substring of a genome that starts after a trip
    5·1 answer
  • Air modeled as an ideal gas enters a well-insulated diffuser operating at steady state at 270 K with a velocity of 180 m/s and e
    11·1 answer
  • What's a disadvantage of highest MERV-rated filters?
    10·2 answers
  • Give a reason why fighter aircraft use mid-wing design.
    11·1 answer
  • 5 lb of propane is contained in a closed, rigid tank initially at 80 lbf/in^2, 110 degrees Fahrenheit. Heat transfer occurs unti
    5·1 answer
  • Consider two different types of motors. Motor A has a characteristic life of 4100 hours (based on a MTTF of 4650 hours) and a sh
    10·1 answer
  • Ayuda con este problema de empuje y principio de arquimedes.
    6·1 answer
  • What is the function of engineering
    6·1 answer
  • . (20 pts) A horizontal cylindrical pipe (k = 10 W/m·K) has an outer diameter of 15 cm and a wall thickness of 5 cm. The pipe is
    14·1 answer
  • What is the tolerance of number 4?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!