Question: Intro to Python Q#2 John is an IT graduate working as an intern for ABC company. He receives a weekly payment for his work. Your

Intro to Python

Q#2 John is an IT graduate working as an intern for ABC company. He receives a weekly payment for his work. Your job is to write a program that asks the user about John's payment amount, and then collect the total weeks that John has worked for the company. The program should then use the loop structure to create a table showing the total amount that John received from the company at the end of each week.

Here is an example:

input: What's the amount of John's weekly payment: 300 How many weeks John worked for the company: 5

output: Week Total Salary ---------------------------------------------- 1 $300 2 $600 3 $900 4 $1200 5 $1500

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!