1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
DIA [1.3K]
3 years ago
15

3.27 LAB: Exact change (FOR PYTHON PLEASE)

Computers and Technology
1 answer:
Harlamova29_29 [7]3 years ago
7 0

Answer:

See explaination

Explanation:

if __name__ == '__main__':

total = int(input())

if total <= 0:

print("No Change")

else:

dollars = total // 100

total %= 100

quarters = total // 25

total %= 25

dimes = total // 10

total %= 10

nickels = total // 5

total %= 5

pennies = total

if dollars > 1:

print('%d Dollars' % dollars)

elif dollars == 1:

print('%d Dollar' % dollars)

if quarters > 1:

print('%d Quarters' % quarters)

elif quarters == 1:

print('%d Quarter' % quarters)

if dimes > 1:

print('%d Dimes' % dimes)

elif dimes == 1:

print('%d Dime' % dimes)

if nickels > 1:

print('%d Nickels' % nickels)

elif nickels == 1:

print('%d Nickel' % nickels)

if pennies > 1:

print('%d Pennies' % pennies)

elif pennies == 1:

print('%d Penny' % pennies)

You might be interested in
What does ;-; mean during a text?
zzz [600]

Answer:

Its like an emotionless crying face, mainly used for humor

Explanation:

5 0
3 years ago
Read 2 more answers
Create a dictionary with types as integer and string.
Airida [17]

Answer:

In c#  Dictionary is the collection of keys and value .The dictionary is a generic collection class which is in the System.Collection.Generics namespace. we can represent dictionary like that Dictionary<TKey, TValue> where TKey represent the type of key and TValue is the type of TValue.

Following are the example which represent dictionary as integer and string

using System.Collections.Generic;  // namespace

class Test // class test

{

   static void Main()  // main method

   {

       

       var ob = new Dictionary< int,string>();  // type integer and string

       dictionary.Add( 2,"hello");

       dictionary.Add(143,"hello1);

       // The dictionary has 2 pairs.

       Console.WriteLine("DICTIONARY 1 " + ob.Count);

}

}

Output:

DICTIONARY 1 :2

Explanation:

In this program we create a dictionary generic class which is integer and string type after that we add the elements in the dictionary by   "dictionary.Add method " and finally print the count of dictionary

7 0
3 years ago
On the basic of size, in how many groups do we classify the computers? Name them.<br>.​
Vedmedyk [2.9K]

Answer:

Computer can be classified into four categories based on size namely Micro, Mini, Mainframe and Super computer

Explanation:

8 0
3 years ago
What level of system and network is required for cui
galben [10]

Answer:

CUI will be classified at a “moderate” confidentiality level and follow DoDI 8500.01 and 8510.01 in all DOD systems. Non-DoD systems must provide adequate security with requirements incorporated into all legal documents with non-DoD entities following DoDI 8582.01 guideline

Explanation:

6 0
3 years ago
Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp plz
Tanya [424]

Answer:

i wish i could help you

Explanation:

i wish i could help you

6 0
3 years ago
Other questions:
  • You're working at a large industrial plant and notice a tag similar to the one shown in the figure above. Which of the following
    5·1 answer
  • What country is now the number one source of attack traffic?
    5·1 answer
  • Which of the following is an object-oriented prototype-based language? Java Pike REBOL MATLAB
    9·1 answer
  • To remove text from a specific location and keep it to use again, you should select ___
    6·1 answer
  • Arrays are described as immutable because they are two dimensional. are arranged sequentially. can be reordered. cannot be chang
    11·1 answer
  • Jeremy is working with a team that is creating an application using attributes and associated methods. What type of programming
    8·1 answer
  • Edhesive in JAVA Write a method that takes a String parameter. If the String has a double letter (i.e. contains the same letter
    13·1 answer
  • How did technology change the world
    15·2 answers
  • 7. Explain the steps for formatting a shape ?
    5·1 answer
  • A penetration testing service hired by the company has reported that a backdoor was identified on the network. What action shoul
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!