Question

f) If amount1 is greater than 10 and amount2 is less than 100, display the greater...

f) If amount1 is greater than 10 and amount2 is less than 100, display the greater of amount1 and amount2 . Flowchart Code Fragments (python source code, not Screenshot)

Homework Answers

Answer #1

amt1=int(input("Enter amt 1 ")) # input 1
amt2=int(input("Enter amt 2")) # input 2
if(amt1>10 and amt2<100): # given Condition
if (amt1== amt2):
print(" both are equal")
elif(amt1>ant2):
print (" amt1 is large:)
else :
print (" amt2 is large:")

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Which is more likely, observing a score less than 100, but greater than 80 sampled at...
Which is more likely, observing a score less than 100, but greater than 80 sampled at random from a normal distribution with a mean of 72 and a standard deviation of σ = 20, or a score less than 6 sampled at random from a normal distribution with a mean of 5 and an unknown standard deviation of σ, and why?
For X~N(100, 20) - 40 is greater than or equal to__ 60 is greater than or...
For X~N(100, 20) - 40 is greater than or equal to__ 60 is greater than or equal to__ of values. 80 is less than or equal to__ of values.
6. (a) Prove by contrapositive: If the product of two natural numbers is greater than 100,...
6. (a) Prove by contrapositive: If the product of two natural numbers is greater than 100, then at least one of the numbers is greater than 10. (b) Prove or disprove: If the product of two rational numbers is greater than 100, then at least one of the numbers is greater than 10.
If the range of y = f(x) is y is less than or equal to 2,...
If the range of y = f(x) is y is less than or equal to 2, what is the range of y = -f(x-4) + 1? Could you please explain why it is y is greater than or equal to -1 INSTEAD OF y is less than or equal to -1?
is the boiling point of a 2.5 m aqueous sugar solution greater than, less than, or...
is the boiling point of a 2.5 m aqueous sugar solution greater than, less than, or the same as the boiling of aqueous sodium chloride solution? Greater than Less than The same as Impossible to determine
Is the value of US imports greater or less than exports?
Is the value of US imports greater or less than exports?
The cumulative distribution function for a random variable X is F(x)= 0 if x less than...
The cumulative distribution function for a random variable X is F(x)= 0 if x less than or equal 0, or F(x)=sinx if 0 is less than x is less than or equal to pi/2 , or F(x)= 1, if x is greater than pi/2 . (a) find P(0.1 less than X less than 0.2. (b) find E(x)
1. Will the pH of the following compounds be less than 7, greater than 7, or...
1. Will the pH of the following compounds be less than 7, greater than 7, or approximately equal to 7? A) ammonium chloride B) barium fluoride C) potassium nitrate D) sodium bromide 2. Will the pH of the following compounds be less than 7, greater than 7, or approximately equal to 7? A) ammonium iodide B) barium nitrite C) barium bromide D) ammonium chloride
Suppose f is continuous for x is greater than or equal to 0, f'(x) exists for...
Suppose f is continuous for x is greater than or equal to 0, f'(x) exists for x greater than 0, f(0)=0, f' is monotonically increasing. For x greater than 0, put g(x) = f(x)/x and prove that g is monotonically increasing.
10. Describe the working principle of thermocouple sensors (K-type). (less than 100 words) 11. Describe the...
10. Describe the working principle of thermocouple sensors (K-type). (less than 100 words) 11. Describe the working principle of optical mouse. (less than 100 words)\ NEED BOTH
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT