SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 305 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 06 Nov 2017 My Price 7.00

.asks user for an amount of money in dollars and cents

For Python

 

1.asks user for an amount of money in dollars and cents (use input function)

2.Your code should print back the amount entered by the user

3.you should put your program in a file called change.py

4.Your program should list the monetary equivalent of the amount entered in 100 dollar bills, 50 dollar bills, 20 dollar bills, 10 dollar bills, 5 dollar bills, 1 dollar bills, 25 cent coins, 10 cent coins, 5 cent coins, and 1 cent coins.

5.Your program should report the maximum number of 100 dollar bills you can use, then the maximum number of 50 dollar bills, 20 dollar bills, etc.

6. Code cannot be more than 20 lines.

7. Write the pattern only once in a function and apply it to all the different denominations.

 

Here is an example:

% change.py

enter amount: 589.66

589.66

5 100 dollar bills

1 50 dollar bills

1 20 dollar bills

1 10 dollar bills

1 5 dollar bills

4 1 dollar bills

2 25 cent coins

1 10 cent coins

1 5 cent coins

1 1 cent coins

Answers

(5)
Status NEW Posted 06 Nov 2017 01:11 PM My Price 7.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)