Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JYTHON PLS PROBLEM 3: Too Much Rice Function Name: rice() Parameters: - rice - an int representing the number of grains of rice you start
JYTHON PLS
PROBLEM 3: Too Much Rice Function Name: rice() Parameters: - rice - an int representing the number of grains of rice you start with - day - an int represent the number of days Return Value: None Description: You are a rice farmer and grow rice. Every day, the amount of rice you have grows exponentially. Calculate how much rice you have after a given number of days. You can NOT use the ** operator in this function. Doing so will result in full loss of credit for the problem. Instead, you must use a while loop! Test Cases: rice (2,1) You have 4 grains of rice. rice (5,2) You have 125 grains of rice. rice (3,3) You have 81 grains of rice Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started