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
Fibonacci sequence has many applications in Computer Science. Write a program to generate Fibonacci numbers as many as desired.
VikaD [51]

Answer:

The Python Code for Fibonacci Sequence is :

# Function for nth Fibonacci number  

def Fibonacci(n):  

if n<0:  

 print("Incorrect input")  

# First Fibonacci number is 0  

elif n==0:  

 return 0

# Second Fibonacci number is 1  

elif n==1:  

 return 1

else:  

 return Fibonacci(n-1)+Fibonacci(n-2)  

# Driver Program  

print(Fibonacci(9))  

Explanation:

The Fibonacci numbers are the numbers in the following integer sequence.

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ……..

In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation

Fn = Fn-1 + Fn-2

with seed values

F0 = 0 and F1 = 1.

8 0
3 years ago
Read 2 more answers
At what times should you use your headlights?
SVETLANKA909090 [29]

Answer:

Headlights are required to be used 1/2 hour after sunset to 1/2 hour before sunrise, when windshield wipers are being used, when visibility is less than 1000 feet, or when there is insufficient light or adverse weather.

Explanation:

hope this helps

8 0
3 years ago
Read 2 more answers
A reversible power cycle R and an irreversible power cycle I operate between the same hot and cold thermal reservoirs. Cycle I h
anygoal [31]

Answer: Attached below is the missing diagram

answer :

A)   1) Wr > WI,     2) Qc' > Qc

B)   1) QH' > QH,   2) Qc' > Qc

Explanation:

  л = w / QH = 1 - Qc / QH  and  QH = w + Qc

<u>A) each cycle receives same amount of energy by heat transfer</u>

<u>(</u> Given that ; Л1 = 1/3 ЛR )

<em>1) develops greater bet work </em>

WR develops greater work ( i.e. Wr > WI )

<em>2) discharges greater energy by heat transfer</em>

 Qc' > Qc

solution attached below

<u>B) If Each cycle develops the same net work </u>

<em>1) Receives greater net energy by heat transfer from hot reservoir</em>

QH' > QH   ( solution is attached below )

<em>2) discharges greater energy  by heat transfer to the cold reservoir</em>

Qc' > Qc

solution attached below

4 0
3 years ago
Initially, a pump pressure of __________ pounds per square inch should be used to maintain a sprinkler or standpipe system.
jasenka [17]

<u>Answer:</u>

<u>of 150 pounds per square inch</u>

Explanation:

Note that the unit for measuring water pressure is called <u> pounds per square inch (psi)</u>

In the case of sprinklers and standpipe systems, a pressure <u>of 150 pounds per square inch</u> was used initially.

6 0
3 years ago
Anyone help me please ?
Degger [83]

Answer:

I can help but I need to know what it looking for

5 0
3 years ago
Other questions:
  • A pipe of 10 cm inner diameter is used to send crude oil over distance of 400 meters. The entire pipe was laid horizontal. The v
    5·1 answer
  • Calculate the electroosmotic velocity of an aqueous solution through a glass capillary 5 cm long with a 0.5 mm internal diameter
    11·1 answer
  • Plz help me
    12·1 answer
  • What is the definition of a tolerance on a dimension typically found on technical drawings?
    7·1 answer
  • Write a method printShampooInstructions(), with int parameter numCycles, and void return type. If numCycles is less than 1, prin
    15·1 answer
  • The grade is a measure of quality and it captures concentration levels (i.e., how pure a certain fraction is). If grade captures
    13·1 answer
  • Problem 89:A given load is driven by a 480 V six-pole 150 hp three-phase synchronous motor with the following load and motor dat
    11·1 answer
  • What are the searching algorithms used by search engines?
    11·1 answer
  • Which of the following maintenance items helps to ensure the vehicles engine lasts as long as possible?
    6·1 answer
  • When cutting a FBD through an axial member, assume that the internal force is tension and draw the force arrow _______ the cut s
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!