TORONTO KIDS COMPUTER CLUB | Aurora Tuesday 18:30 Python Homework 20.06.09.
17630
post-template-default,single,single-post,postid-17630,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Aurora Tuesday 18:30 Python Homework 20.06.09.

10 Jun Aurora Tuesday 18:30 Python Homework 20.06.09.

Question:

Write a function to calculate the total value of some change—quarters, dimes, nickels, and pennies. The function should return the total value of the coins. Then write a program that calls the function. The output should look like this when it runs:

Sample input:
quarters: 3
dimes: 6
nickels: 7

Sample output:
total is $1.70

Class review:

No Comments

Sorry, the comment form is closed at this time.