Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write a short python program L Problem 1 Filename: age.py Prompt the user for their age in years. Report back to them how much

image text in transcribed

please write a short python program

L Problem 1 Filename: age.py Prompt the user for their age in years. Report back to them how much that is in: months, days, and hours. All of your data should be integers. There's no need to account for leap years or other special cases -- you can assume 365 days per year. For full credit under the documentation category, write two test cases in a comment at the top of your file, like this but with your own examples. Do this before you start coding -- that way you know if your program works! # Input: 1 year # Output: 12 months, 365 days, 8760 hours # Input: 42 years # Output: 504 months, 15330 days, 367920 hours Here's an example of what happens when I run my program (your text/formatting doesn't need to look exactly like ours though): Enter your age, in years. 42 42 years is... 504 months 15330 days 367920 hours

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

Describe the components of a job description.

Answered: 1 week ago

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago