A farmer plants a lettuce seed every 14 days in the field. Write a Python program that asks the user to enter how many days have passed since the farmer started then displays: 1)    The number of lettuce seeds that have been planted in the field 2)    The number of days remaining until the next seed is planted Assume the user inputs only non-negative numbers. Note: If 20 days have passed, the farmer has planted 2 lettuce seeds and will plant the next seed in 8 more days. And output format would be in this format: Lettuce Seeds planted: 2 Next seed is planted in 8 day(s)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter4: Control Structures I (selection)
Section: Chapter Questions
Problem 20PE: The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a...
icon
Related questions
Question

A farmer plants a lettuce seed every 14 days in the field. Write a Python program that asks the user to enter how many days have passed since the farmer started then displays:

1)    The number of lettuce seeds that have been planted in the field

2)    The number of days remaining until the next seed is planted

Assume the user inputs only non-negative numbers.

Note: If 20 days have passed, the farmer has planted 2 lettuce seeds and will plant the next seed in 8 more days.

And output format would be in this format:

Lettuce Seeds planted: 2

Next seed is planted in 8 day(s)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage