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, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 22.06.2019 19:40
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
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
Mathematics, 24.09.2020 15:01
Questions on the website: 13722361