subject

A farmer sells tomatoes. For some reason, the farm obeys mechanical laws of fate. If he sells at least a dozen tomatoes, he receives two watermelons.
If he sells exactly two dozen tomatoes, he receives four more watermleons.
On the days that he sells less than a dozen tomatoes, the farmer will get a single apple.
Write a Python Code that uses if/else statements that accounts for all of these possible scenarios.
Use the variables tomatoes, watermelons, and apples in each statement, but be careful not to re-define them (that is, they are provided to you already).

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:50
Python write an expression that executes the loop body as long as the user enters a non-negative number. note: if the submitted code has an infinite loop, the system will stop running the code after a few seconds and report "program end never reached." the system doesn't print the test case that caused the reported message. sample outputs with inputs: 9 5 2 -1
Answers: 3
question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Researchers measured the data speeds for a particular smartphone carrier at 50 airports. the highest speed measured was 78.1 mbps. the complete list of 50 data speeds has a mean of x overbarequals16.11 mbps and a standard deviation of sequals18.65 mbps. a. what is the difference between carrier's highest data speed and the mean of all 50 data speeds? b. how many standard deviations is that [the difference found in part (a)]? c. convert the carrier's highest data speed to a z score. d. if we consider data speeds that convert to z scores between minus2 and 2 to be neither significantly low nor significantly high, is the carrier's highest data speed significant? a. the difference is nothing mbps.
Answers: 3
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
You know the right answer?
A farmer sells tomatoes. For some reason, the farm obeys mechanical laws of fate. If he sells at le...
Questions
question
Physics, 08.07.2019 23:30
question
English, 08.07.2019 23:30
question
Mathematics, 08.07.2019 23:30
Questions on the website: 13722363