[SOLVED] 程序代写代做代考 Programming Exercise 4-7

30 $

File Name: 程序代写代做代考_Programming_Exercise_4-7.zip
File Size: 461.58 KB

SKU: 4844454078 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Programming Exercise 4-7

# Declare variables for the number of pennies

# per day, the number of days, and the total

# number of pennies.

dayPennies = 1

numDays = 0

total = 0.0

# Get number of days from the user.

numDays = int(input(‘Enter the number of days: ‘))

# Display table showing salary for each day.

print (‘DaytPennies’)

print (‘————————-‘)

for day in range(1, numDays + 1):

print(day, ‘t$’, float(dayPennies / 100))

total += dayPennies

dayPennies *= 2

# Display total pay.

print(‘The total salary for’, numDays,

‘days is: $’,float(total/100))

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 程序代写代做代考 Programming Exercise 4-7
30 $