Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Program 4-1 (p. 162) 2. In the Spotlight: Designing a Count-Controlled Loop with the for Statement Program 4-9 (p. 174-176) Programming Problems For the

1. Program 4-1 (p. 162)

2. In the Spotlight: Designing a Count-Controlled Loop with the for Statement Program 4-9 (p. 174-176) Programming Problems

For the programming Problems: You must also submit an IPO for each programming exercise along with the .py files. The System Development LifeCycle and Creating an IPO Video in this module describes the process.

3. Contoso Travel Contoso needs a program to calculate how many miles employees have driven. The program will get the following input from the user, vehicle speed and number of driving hours. The program will calculate and display the hour and miles driven each hour.

*You must use a loop in this program Distance = speed * time Example output for 3 hours traveled at 50 miles per hour Hour Distance

1 50

2 100

3 150

4. Contoso payroll Contoso is thinking of trying out a new payroll strategy for its temporary employees. The strategy is to pay one penny the first day, two pennies the second day, and keep doubling the pennies every day. Create a program that will get as input number of days in which to calculate pay and then displays the day and the pennies paid for each day. Also display a total pay. *You must use a loop. For example

Day Pay

1 1

2 2

3 4

4 8

Total pay is .15

PLEASE REPLY IN PYTHON AND I NEED A IPO FOR QUESTION 3 AND 4 THANK YOU.

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

Identify how culture affects appropriate leadership behavior

Answered: 1 week ago