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
AleksAgata [21]
3 years ago
12

Write a program to input 6 numbers. After each number is input, print the biggest of the numbers entered so far.

Engineering
1 answer:
likoan [24]3 years ago
4 0

Answer:

P<u>rogram:</u>

# Enter Numbers #

number1 = int(input("Enter number: " ))

print("Largest: " + string(number1))

#for num 2 #

number2 = int(input("Enter a number: "))

if number2 > number1:

 print("Largest: " + string(number2))

else:

 print("Largest: " + string(num1))

#for num 3 #

number3 = int(input("Enter a number: "))

print("Largest: " + string(max(number1, number2, number3)))  

#for num 4 #

number4 = int(input("Enter a number: "))

print("Largest: " + string(max(number1, number2, number3, number4)))

#for num 5 #

number5 = int(input("Enter a number: "))

print("Largest: " + string(max(number1, number2, number3, number4, number5)))

#for num 6 #

number6 = int(input("Enter a number: "))

print("Largest: " + string(max(number1, number2, number3, number4, number5, number6)))        

# END #

You might be interested in
The boost converter of Fig. 6-8 has parameter Vs 20 V, D 0.6, R 12.5 , L 10 H, C 40 F, and the switching frequency is 200 kHz. (
mr Goodwill [35]

Answer:

a) the output voltage is 50 V

b)

- the average inductor current is 10 A

- the maximum inductor current is 13 A

- the maximum inductor current is 7 A

c) the output voltage ripple is 0.006 or 0.6%V₀

d) the average current in the diode under ideal components is 4 A

Explanation:

Given the data in the question;

a) the output voltage

V₀ = V_s/( 1 - D )

given that; V_s = 20 V, D = 0.6

we substitute

V₀ = 20 / ( 1 - 0.6 )

V₀ = 20 / 0.4

V₀ = 50 V

Therefore, the output voltage is 50 V

b)

- the average inductor current

I_L = V_s / ( 1 - D )²R

given that R = 12.5 Ω, V_s = 20 V, D = 0.6

we substitute

I_L = 20 / (( 1 - 0.6 )² × 12.5)

I_L = 20 / (( 0.4)² × 12.5)

I_L = 20 / ( 0.16 × 12.5 )

I_L = 20 / 2

I_L = 10 A

Therefore, the average inductor current is 10 A

- the maximum inductor current

I_{Lmax = [V_s / ( 1 - D )²R] + [ V

given that, R = 12.5 Ω, V_s = 20 V, D = 0.6, L = 10 μH, T = 1/200 kHz = 5 hz

we substitute

I_{Lmax = [20 / (( 1 - 0.6 )² × 12.5)] + [ (20 × 0.6 × 5) / (2 × 10) ]

I_{Lmax = [20 / 2 ] + [ 60 / 20 ]    

I_{Lmax = 10 + 3

I_{Lmax = 13 A

Therefore, the maximum inductor current is 13 A

- The minimum inductor current

I_{Lmax = [V_s / ( 1 - D )²R] - [ V

given that, R = 12.5 Ω, V_s = 20 V, D = 0.6, L = 10 μH, T = 1/200 kHz = 5 hz

we substitute

I_{Lmin = [20 / (( 1 - 0.6 )² × 12.5)] - [ (20 × 0.6 × 5) / (2 × 10) ]

I_{Lmin = [20 / 2 ] -[ 60 / 20 ]    

I_{Lmin = 10 - 3

I_{Lmin  = 7 A

Therefore, the maximum inductor current is 7 A

 

c)  the output voltage ripple

ΔV₀/V₀ = D/RCf

given that; R = 12.5 Ω, C = 40 μF = 40 × 10⁻⁶ F, D = 0.6, f = 200 Khz = 2 × 10⁵ Hz

we substitute

ΔV₀/V₀ = 0.6 / (12.5 × (40 × 10⁻⁶) × (2 × 10⁵) )

ΔV₀/V₀ = 0.6 / 100

ΔV₀/V₀ = 0.006 or 0.6%V₀

Therefore, the output voltage ripple is 0.006 or 0.6%V₀

d) the average current in the diode under ideal components;

under ideal components; diode current = output current

hence the diode current will be;

I_D = V₀/R

as V₀ = 50 V and R = 12.5 Ω

we substitute

I_D = 50 / 12.5

I_D = 4 A

Therefore, the average current in the diode under ideal components is 4 A

7 0
3 years ago
Water at 15°C is to be discharged from a reservoir at a rate of 18 L/s using two horizontal cast iron pipes connected in series
love history [14]

Answer:

The required pumping head is 1344.55 m and the pumping power is 236.96 kW

Explanation:

The energy equation is equal to:

\frac{P_{1} }{\gamma } +\frac{V_{1}^{2}  }{2g} +z_{1} =\frac{P_{2} }{\gamma } +\frac{V_{2}^{2}  }{2g} +z_{2}+h_{i} -h_{pump} , if V_{1} =0,z_{2} =0\\h_{pump} =\frac{V_{2}^{2}}{2} +h_{i}-z_{1}

For the pipe 1, the flow velocity is:

V_{1} =\frac{Q}{\frac{\pi D^{2} }{4} }

Q = 18 L/s = 0.018 m³/s

D = 6 cm = 0.06 m

V_{1} =\frac{0.018}{\frac{\pi *0.06^{2} }{4} } =6.366m/s

The Reynold´s number is:

Re=\frac{\rho *V*D}{u} =\frac{999.1*6.366*0.06}{1.138x10^{-3} } =335339.4

\frac{\epsilon }{D} =\frac{0.00026}{0.06} =0.0043

Using the graph of Moody, I will select the f value at 0.0043 and 335339.4, as 0.02941

The head of pipe 1 is:

h_{1} =\frac{V_{1}^{2}  }{2g} (k_{L}+\frac{fL}{D}  )=\frac{6.366^{2} }{2*9.8} *(0.5+\frac{0.0294*20}{0.06} )=21.3m

For the pipe 2, the flow velocity is:

V_{2} =\frac{0.018}{\frac{\pi *0.03^{2} }{4} } =25.46m/s

The Reynold´s number is:

Re=\frac{\rho *V*D}{u} =\frac{999.1*25.46*0.03}{1.138x10^{-3} } =670573.4

\frac{\epsilon }{D} =\frac{0.00026}{0.03} =0.0087

The head of pipe 1 is:

h_{2} =\frac{V_{2}^{2}  }{2g} (k_{L}+\frac{fL}{D}  )=\frac{25.46^{2} }{2*9.8} *(0.5+\frac{0.033*36}{0.03} )=1326.18m

The total head is:

hi = 1326.18 + 21.3 = 1347.48 m

The required pump head is:

h_{pump} =\frac{25.46^{2} }{2*9.8} +1347.48-36=1344.55m

The required pumping power is:

P=Q\rho *g*h_{pump}  =0.018*999.1*9.8*1344.55=236965.16W=236.96kW

8 0
3 years ago
How does sea navigation work?
ahrayia [7]

Answer:

a clock

Explanation:

you use a clock in water

3 0
2 years ago
What is the basic formula for actual mechanical advantage?
slavikrds [6]

Answer:

Mechanical Advantage Formula

The efficiency of a machine is equal to the ratio of its output to its input. It is also equal to the ratio of the actual and theoretical MAs. But, it does not mean that low-efficiency machines are of limited use. An automobile jack, for example, have to overcome a great deal of friction and therefore it has low efficiency. But still, it is extremely valuable because small effort can be applied to lift a great weight.

Also, in another way the mechanical advantage is the force generated by a machine to the force applied to it which is applied in assessing the performance of the machine.

The mechanical advantage formula is:

MA = FBFA

Explanation:

MAmechanical advantageFBthe force of the object

FAthe effort to overcome the force

3 0
3 years ago
If you want to obtain a Class E license before you turn 18, you must______. A. be in compliance with school attendance requireme
Makovka662 [10]

Answer:

The correct option is;

A. be in compliance with school attendance requirements

Explanation:

The requirements to acquire a special restricted driver's license for driver's license for under under 18 that have had a beginner's for up to 180 days include a minimum of 40 hours driving practice 10 of which should be in the dark. The application for the conditional drivers license is to be signed by the parent or guardian and the application is to be accompanied with proof of acceptable school attendance

At 17, after holding the special restricted drivers licence for a year without issues you can obtain the full drivers license.

7 0
3 years ago
Other questions:
  • A series R-L circuit is given. Circuit is connected to an AC voltage generator. a) Derive equations for magnitude and phase of c
    13·1 answer
  • The purpose of the __________ algorithm is to enable two users to exchange a secret key securely that can then be used for subse
    8·1 answer
  • Calculate pressure at the mid-plane of an annular cylinder of iron powder pressed using double-action press. The punch pressure
    12·1 answer
  • The typical Canadian worker is able to produce 100 board feet (a unit of measure) of lumber or 1000 light bulbs per year. The wo
    12·1 answer
  • I need this asap thank you :) plzzzzz When the spring on a mousetrap car is fully unwound, the force acting on the car is _____.
    11·1 answer
  • Using the following data, determine the percentage retained, cumulative percentage retained, and percent passing for each sieve.
    6·1 answer
  • Entor" by
    9·1 answer
  • For a bolted assembly with eight bolts, the stiffness of each bolt is kb = 1.0 MN/mm and the stiffness of the members is km = 2.
    14·1 answer
  • Periodic lubrication and oil changes according to manufacturer’s recommendations extend the life of your vehicle, and allow you
    15·1 answer
  • 3. Which instrument measures the height above the ground?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!