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
Marta_Voda [28]
4 years ago
7

Create a Python program that will produce the following output:

Engineering
1 answer:
Aloiza [94]4 years ago
6 0

Answer:

def main ():

   sentence = input("Please enter a sentence:")

   print("Original Sentence:",sentence)

   # start at the third character

   for i in range(2,  len(sentence), 3):

       # access the string by index  

       print("Every third letter:", sentence[i])

Explanation:

def helps define the sentence ( input)

in order to start printing from third letter we start the range from 2 and keep the step 3 . The range i is in square parenthesis to show the range and access string.

You might be interested in
Water at a pressure of 3 bars enters a short horizontal convergent channel at 3.5 m/s. The upstream and downstream diameters of
earnstyle [38]

Answer:

The pressure reduces to 2.588 bars.

Explanation:

According to Bernoulli's theorem for ideal flow we have

\frac{P}{\gamma _{w}}+\frac{V^{2}}{2g}+z=constant

Since the losses are neglected thus applying this theorm between upper and lower porion we have

\frac{P_{u}}{\gamma _{w}}+\frac{V-{u}^{2}}{2g}+z_{u}=\frac{P_{L}}{\gamma _{w}}+\frac{V{L}^{2}}{2g}+z_{L}

Now by continuity equation we have

A_{u}v_{u}=A_{L}v_{L}\\\\\therefore v_{L}=\frac{A_{u}}{A_{L}}\times v_{u}\\\\v_{L}=\frac{d^{2}_{u}}{d^{2}_{L}}\times v_{u}\\\\\therefore v_{L}=\frac{2500}{900}\times 3.5\\\\\therefore v_{L}=9.72m/s

Applying the values in the Bernoulli's equation we get

\frac{P_{L}}{\gamma _{w}}=\frac{300000}{\gamma _{w}}+\frac{3.5^{2}}{2g}-\frac{9.72^{2}}{2g}(\because z_{L}=z_{u})\\\\\frac{P_{L}}{\gamma _{w}}=26.38m\\\\\therefore P_{L}=258885.8Pa\\\\\therefore P_{L}=2.588bars

6 0
3 years ago
B. Is the “Loading Time” of any online application a functional or a non-functional requirement? Can the requirement engineers s
Oksi-84 [34.3K]

Answer:

non-functional requirement,

Yes they can.

The application loading time is determined by testing system under various scenarios

Explanation:

non-functional requirement are requirements needed to justify application behavior.

functional requirements are requirements needed to justify what the application will do.

The loading time can be stated with some accuracy level after testing the system.

4 0
3 years ago
Draw the ipo chart for a program that reads a number from the user and display the square of that number ???Anyone please
kompoz [17]

Answer:

See attachment for chart

Explanation:

The IPO chart implements he following algorithm

The expressions in bracket are typical examples

<u>Input</u>

Input Number (5, 4.2 or -1.2) --- This will be passed to the Processing module

<u>Processing</u>

Assign variable to the input number (x)

Calculate the square (x = 5 * 5)

Display the result (25) ----> This will be passed to the output module

<u>Output</u>

Display 25

5 0
3 years ago
A thick aluminum block initially at 26.5°C is subjected to constant heat flux of 4000 W/m2 by an electric resistance heater whos
Yanka [14]

Given Information:

Initial temperature of aluminum block = 26.5°C

Heat flux = 4000 w/m²

Time = 2112 seconds

Time = 30 minutes = 30*60 = 1800 seconds

Required Information:

Rise in surface temperature = ?

Answer:

Rise in surface temperature = 8.6 °C after 2112 seconds

Rise in surface temperature = 8 °C after 30 minutes

Explanation:

The surface temperature of the aluminum block is given by

T_{surface} = T_{initial} + \frac{q}{k} \sqrt{\frac{4\alpha t}{\pi} }

Where q is the heat flux supplied to aluminum block, k is the conductivity of pure aluminum and α is the diffusivity of pure aluminum.

After t = 2112 sec:

T_{surface} = 26.5 + \frac{4000}{237} \sqrt{\frac{4(9.71\times 10^{-5}) (2112)}{\pi} }\\\\T_{surface} = 26.5 + \frac{4000}{237} (0.51098)\\\\T_{surface} = 26.5 + 8.6\\\\T_{surface} = 35.1\\\\

The rise in the surface temperature is

Rise = 35.1 - 26.5 = 8.6 °C

Therefore, the surface temperature of the block will rise by 8.6 °C after 2112 seconds.

After t = 30 mins:

T_{surface} = 26.5 + \frac{4000}{237} \sqrt{\frac{4(9.71\times 10^{-5}) (1800)}{\pi} }\\\\T_{surface} = 26.5 + \frac{4000}{237} (0.4717)\\\\T_{surface} = 26.5 + 7.96\\\\T_{surface} = 34.5\\\\

The rise in the surface temperature is

Rise = 34.5 - 26.5 = 8 °C

Therefore, the surface temperature of the block will rise by 8 °C after 30 minutes.

5 0
3 years ago
To compute the energy used by a motor, multiply the power that it draws by the time of operation. Con- sider a motor that draws
ehidna [41]

Answer:

E=52000Hp.h

E=38724920Wh

E=1.028x10^11 ftlb

Explanation:

To solve this problem you must multiply the engine power by the time factor expressed in h / year, to find this value you must perform the conventional unit conversion procedure.

Finally, when you have the result Hp h / year you convert it to Ftlb and Wh

E=(12.5hp)(\frac{16h}{day} )(\frac{5 days}{week} )(\frac{52week}{year} )\\

E=52000Hp.h

E=52000Hp.h(\frac{744.71Wh}{Hp.h} )\\

E=38724920Wh

E=52000Hph(\frac{1977378.4  ft lb}{1Hph}

E=1.028x10^11 ftlb

3 0
3 years ago
Other questions:
  • With 64 KB of memory and 8 bits in each memory location, how wide should the address bus be to access all 64 KB of memory? (k =
    11·1 answer
  • Identify each statement as referring to a series or parallel circuit.
    15·1 answer
  • With increases in magnification, which of the following occur? a. The field of view decreases. b. The ambient illumination decre
    9·1 answer
  • An aluminium alloy tube has a length of 750 mm at a temperature of 223°C. What will be its length at 23°C if its coefficient of
    7·1 answer
  • How do batteries and other types of power sources make physical computing systems more mobile?
    15·2 answers
  • Consider five wireless stations A,B,C,D,E. Station
    5·2 answers
  • Phân tích phương pháp gia công plasma
    10·1 answer
  • A series of end-milling cuts is currently used to produce an aluminum part that is an aircraft component. The purpose of the mac
    14·1 answer
  • You installed a new 40 gallon water heater with a 54,000 BTUh burner. The underground water temperature coming into the house is
    9·1 answer
  • Physical properties of minerals
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!