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
Svetllana [295]
3 years ago
12

Explain the four criteria for proving the correctness of a logical pretest loop construct of the form "while B do S end". And pr

ove the correctness of the following:
while B do S end
Engineering
1 answer:
evablogger [386]3 years ago
6 0

Answer:

Check the explanation

Explanation:

The loop invariant has to satisfy some amount of requirements to be of good use. Another complex factor as to why a loop is the question of loop termination. A loop that doesn’t terminate can’t invariably be correct, and in fact the computation in whatever form amounts to nothing. The total axiomatic description of a while construct will have to involve all of the following to be true, in which I is the loop invariant:

P => I

{I and B} S {I}

(I and (not B)) => Q

Then the loop terminates

You might be interested in
a cubical box 20-cm on a side is contructed from 1.2 cm thick concrete panels. A 100-W light bulb is sealed inside the box. What
Flura [38]

Answer:

Temperature on the inside ofthe box

Explanation:

The power of the light bulb is the rate of heat conduction of the bulb, dq/dt = 100 W

The thickness of the wall, L = 1.2 cm = 0.012m

Length of the cube's side, x = 20cm = 0.2 m

The area of the cubical box, A = 6x²

A = 6 * 0.2² = 6 * 0.04

A = 0.24 m²

Temperature of the surrounding, T_0 = 20^0 C = 273 + 20 = 293 K

Temperature of the inside of the box, T_{in} = ?

Coefficient of thermal conductivity, k = 0.8 W/m-K

The formula for the rate of heat conduction is given by:

dq/dt = \frac{kA(T_{in} - T_0)}{L} \\\\100 = \frac{0.8*0.24(T_{in} - 293)}{0.012}\\\\T_{in} - 293 = \frac{100 * 0.012}{0.8*0.24} \\\\T_{in} - 293 = 6.25\\\\T_{in} = 293 + 6.25\\\\T_{in} = 299.25 K\\\\T_{in} = 299.25 - 273\\\\T_{in} = 26.25^0 C

5 0
4 years ago
A 3-oz serving of roasted, skinless chicken breast contains 140 Cal, 27 g of protein, 3 g of fat, 13 mg of calcium, and 64 mg of
Art [367]

Answer:

Explanation:

  • a) Given C [ cal pro fat calc sod]

              [140 27 3  13  64]

  • P = [cal pro fat calc sod]

     [180 4 11 24 662]

  • B = [cal pro fat calc sod]

      [50  5    1  82   20]

To find C+2P+3B = [140 27 3  13  64] + 2[180 4 11 24 662] + 3[50  5    1  82   20]

= [650  54  28  307  1448]

The entries represent skinless chicken breast , One-half cup of potato salad and One broccoli spear.

7 0
3 years ago
Insulated Gas Turbine Air enters an adiabatic gas turbine at 1050 K and 1 MPa and leaves at 400 kPa. Kinetic and potential energ
EleoNora [17]

Answer:A certain vehicle loses 3.5% of its value each year. If the vehicle has an initial value of $11,168, construct a model that represents the value of the vehicle after a certain number of years. Use your model to compute the value of the vehicle at the end of 6 years.

A certain vehicle loses 3.5% of its value each year. If the vehicle has an initial value of $11,168, construct a model that represents the value of the vehicle after a certain number of years. Use your model to compute the value of the vehicle at the end of 6 years.

Explanation:A certain vehicle loses 3.5% of its value each year. If the vehicle has an initial value of $11,168, construct a model that represents the value of the vehicle after a certain number of years. Use your model to compute the value of the vehicle at the end of 6 years.

4 0
3 years ago
Mary wants to study the codes that provide regulations to safeguard against fires and explosions arising from the storage and ha
MrRa [10]
I believe the answer you’re looking for is A. International Fire Code
6 0
3 years ago
Read 2 more answers
The goal of a command enconomy is to
Svetllana [295]

Answer:

manage country economies in which is help responsible by a government in place.

Explanation:

5 0
4 years ago
Other questions:
  • Tin atoms are introduced into a FCC copper crystal, producing an alloy with a lattice pa- rameter of 3.7589 x 10-8 cm and a dens
    8·1 answer
  • Water is the working fluid in an ideal Rankine cycle. The condenser pressure is 8 kPa, and saturated vapor enters the turbine at
    10·1 answer
  • g What property of flip-flops distinguishes them from latches? A. Flip-flops will never change state more than once per clock cy
    13·1 answer
  • You test the lighting for the first time none of the new lights work, but the old ones do. What should you do first?
    13·2 answers
  • Which is a reason that teen might choose to focus on a friendship and not a romantic relationship
    13·2 answers
  • An air conditioning performance check requires the use of a
    10·1 answer
  • Suppose the cylinder had a mass of 20 kg and started at a height of 2,000 m. If the initial temperature of the water was 25 °C,
    8·2 answers
  • Ok there........................................................................
    12·1 answer
  • Best known for his invention of the pressure-ignited heat engine that bears his name,
    5·1 answer
  • For a steel alloy it has been determined that a carburizing heat treatment of 11.3 h duration will raise the carbon concentratio
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!