Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this done in Python 3.8 Objectives: To be able to read data from standard input To be able to write data to standard

I need this done in Python 3.8 image text in transcribed
Objectives: To be able to read data from standard input To be able to write data to standard output To understand simple programming problems and be able to write Python codes that solve them. Problem 1. The number of calories burned per hour by cycling, running, and swimming are 200,475 and 275 respectively. A person loses 1 pound of weight for each 3500 calories burned. Write a program to request the number of hours spent at each activity and then display the number of pounds worked off. Figures below shows possible outcome of the program. Enter number of hours cycling: 2 Enter number of hours running: 3 Enter number of hours swimming: 1 Weight loss: 0.6 pounds Figure (1) Enter future value: 10000 Enter interest rate (as 8): 4 Enter number of years: 6 Present value: $7,903.15 Figure (2) Problem 2. The present value off dollars at interest rater% compounded annually for n years is the amount of money that must be invested now in order to grow to f dollars (called the future value) in n years, where the interest rate is r% per year. The formula for present value is present value =- Calculate the present value of an investment after the user enters the future value, interest rate, and number of years. A possible outcome of the program is shown in Figure (2)

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_2

Step: 3

blur-text-image_3

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxxviii Special Issue On Database And Expert Systems Applications Lncs 11250

Authors: Abdelkader Hameurlain ,Roland Wagner ,Sven Hartmann ,Hui Ma

1st Edition

3662583836, 978-3662583838

More Books

Students also viewed these Databases questions

Question

twins share the same DNA.

Answered: 1 week ago

Question

What advice would you provide to Jennifer?

Answered: 1 week ago

Question

What are the issues of concern for each of the affected parties?

Answered: 1 week ago