Question: 1) Build a fruit juice maker - It can produce only apple juice - 1 juice needs 2 apples to make and each apple should
1) Build a fruit juice maker - It can produce only apple juice - 1 juice needs 2 apples to make and each apple should be chopped into 4 pieces - Write two functions, first function is to calculate how many apples needed to make that juice and second function is to chop the apples - Ask the user how many juices he/she needs and pass that value as an argument to the first function - then first function should calculate how many apples are required to make the requested juices and pass that value to the second function - then second function should cut each apple into 4 pieces and returns the total number of chopped pieces value to the first function - then finally first function prints how many pieces of apples took to make this juice.
2) Make a function that gives simple math quiz. The program should display two random numbers that are to be added. The program should allow the student to enter the answer. If the answer is correct, a messsage of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed. Use random module to get the random numbers - don't hard-code the values in your code.
Step by Step Solution
3.28 Rating (148 Votes )
There are 3 Steps involved in it
Here are two Python programs to accomplish the tasks you described 1 Fruit Juice Maker python def ca... View full answer
Get step-by-step solutions from verified subject matter experts
