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
You are in charge of ordering the concrete for a basement wall concrete pour. The wall forms are all set up and ready. The wall
choli [55]

Answer:

189.15cy

Explanation:

To understand this problem we need to understand as well the form.

It is clear that there is four wall, two short and two long.

The two long are \rightarrow 120ft5in+2(10ft)

The two long are \rightarrow 122ft1in=122.08ft

The two shors are \rightarrow 86ft4.5in = 86.375ft

The height and the thickness are 14ft and 0.83ft respectively.

So we only calculate the Quantity of concrete,

Q_c = [(2*122.08)+(2*86-375)]*14*0.833\\Q_c=4864.02ft^3

That in cubic yards is equal to 180.15 (1cy=27ft^3)

Hence, we need order 5% plus that represent with the quantity

Q_{ordered}=1.05*180.15=189.15cy

8 0
3 years ago
A liquid refrigerant (sg=1,2) is flowing at a weight flow rate of 20,9 N/h. Refrigerant flashes into a vapor and its specific we
Iteru [2.4K]

Answer:

Explanation:

volume of 20.9 N

= 20.9 / 11.5 m³

= 1.8174 m³

In one hour 1.8174 m³ flows

in one second volume flowing = 1.8174 / 60 x 60

= 5 x 10⁻⁴ m³

Rate of volume flow = 5 x 10⁻⁴ m³ / s .

5 0
3 years ago
The input and output signals of a system is related by the following equation: fraction numerator d squared y over denominator d
Colt1911 [192]

Answer:

Explanation:

The given equation is :

\frac{d^{2}y }{dx^{2} } + sin(3y) \frac{dy}{dt} + y = t\frac{df}{dt} + f

5 0
3 years ago
A cylindrical brass rod has a length of 5.00cm extending from a holder and a diameter of 4.50mm. Its Young's modulus is 98.0GPa.
Galina-37 [17]

Answer:

elongation of the brass rod is 0.01956 mm

Explanation:

given data

length = 5 cm = 50 mm

diameter = 4.50 mm

Young's modulus = 98.0 GPa

load = 610 N

to find out

what will be the elongation of the brass rod in mm

solution

we know here change in length formula that is express as

δ = \frac{PL}{AE}    ................1

here δ is change in length and P is applied load  and A id cross section area and E is Young's modulus and L is length

so all value in equation 1

δ = \frac{PL}{AE}  

δ = \frac{610*50}{\frac{\pi}{4} * 4.50^2 * 98*10^3}  

δ = 0.01956 mm

so elongation of the brass rod is 0.01956 mm

7 0
3 years ago
When buttons or switches are pressed by humans for arbitrary periods of time, we need to convert a signal level to a pulse. In t
ddd [48]

Answer:

The FSM uses the states along with the generation at the P output on each of the positive edges of the CLK. The memory stores the previous state in the machine and the decoder generates a P output based on the previous state.

Explanation:

The code is in the image.

6 0
3 years ago
Other questions:
  • the ____ method is the safest turning technique to use as it does not expose your hands to the airbags deployment area
    15·1 answer
  • Which conditions are required for nuclear fusion to begin
    8·1 answer
  • A block is sliding on a level surface of varying materials, and so its effective coefficient of friction is variable, 0.1t, wher
    6·1 answer
  • Can someone please do this for me? I’m so behind on other work for different classes and this one is due today! please I’d appre
    11·1 answer
  • Consider a CMOS inverter which has ideal transistors with the following characteristics: PMOS transistor: W/L = 2; Mobility (up)
    13·1 answer
  • An AC generator supplies an rms voltage of 120 V at 50.0 Hz. It is connected in series with a 0.650 H inductor, a 4.80 μF capaci
    6·1 answer
  • Let CFG G be the following grammar.
    7·2 answers
  • Tech A says that it is best to use a knife or other type of sharp tool to cut away the insulation when
    7·1 answer
  • Task Three :Write a C++ program to read temperature
    15·1 answer
  • A common boundary-crossing problem for engineers is when their home country' values come into sharp contrast with the host count
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!