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
LiRa [457]
3 years ago
6

(C++)

Computers and Technology
1 answer:
LenKa [72]3 years ago
6 0

Answer:

Divide the number with 100 first(number %(modulus) 100) u get x1 number of dollars bills. Then you new numbr will be (number - (x1 *(times) 100))

Then you repeat for 50 sam e as above until the 1 dollar bill.

Explanation:

You might be interested in
The birthday problem is as follows: given a group of n people in a room, what is the probability that two or more of them have t
Julli [10]

Answer:

import random

def calc_birthday_probability(num_people):

   num_tries = 1e6

   num_duplicates = 0

   tries = 0

   while tries < num_tries:

       total_birthday = {}

       for i in range(1, 366):

           total_birthday[i] = 0

       for count in range(num_people):

           birthday = random.randint(1, 365)

           if total_birthday[birthday] != 0:

               num_duplicates += 1

               break

           total_birthday[birthday] += 1

       tries += 1

   return num_duplicates/num_tries

def main():

   num_people = 10

   p = calc_birthday_probability (num_people)

   print(p)

   num_people = 20

   p = calc_birthday_probability (num_people)

   print(p)

   return

if __name__ == "__main__":

   random.seed(2020)

   main()

Explanation:

  • Run the loop until the value of tries is less than num_tries to do number of trials.
  • Run the loop to create the desired number of birthdays by generating random numbers.
  • Increase  the num_duplicates  variable by 1, if the birthday has  already occurred.
  • Lastly define and then call the main function.

4 0
4 years ago
The physical layer of the OSI model is not foundational to any of the other layers. True or False
galina1969 [7]

Answer:

False.

Explanation:

OSI model stands for Open Systems Interconnection. The seven layers of OSI model architecture starts from the Hardware Layers (Layers in Hardware Systems) to Software Layers (Layers in Software Systems) and includes the following;

1. Physical Layer

2. Data link Layer

3. Network Layer

4. Transport Layer

5. Session Layer

6. Presentation Layer

7. Application Layer

Each layer has its unique functionality which is responsible for the proper functioning of the communication services.

The physical layer of the OSI model is the first layer of the OSI model and it is foundational to any of the other layers because it determines the means of transmitting (sending) raw bits from one network node to another and the electrical specification of network equipments.

5 0
3 years ago
What is branching in Python​
timama [110]

Answer:

Branching is where a program decides whether to do something or not.

6 0
3 years ago
It is a single strand of metal capable of transmitting power or data from one area to<br> another
Lera25 [3.4K]

Answer: A wire

Explanation:

8 0
3 years ago
What are ways to switch windows in Excel? Check all that apply. On the status bar, click the Windows button, and then click the
yulyashka [42]

On the status bar,Windows button, and then click the file name.click to display the Excel jump list, and then click the file name. On the View tab, in the Window group, click Switch Windows, and then click the file name. and also hint you can do alt tab  but alt first and then tab

8 0
3 years ago
Other questions:
  • Which mode of IPSec should you use to assure the integrity and confidentiality of data within the same LAN?a. AH promiscuous mod
    6·1 answer
  • In a microsoft word document, what is the amount of space that appears between paragraphs called?
    14·1 answer
  • There are several different formats for storing images. They are prints, slides, negatives, and digital. Which is the best forma
    8·1 answer
  • Where can i watch twilight breaking Dawn 2 full movie. In the internet where can i wath it for free
    14·1 answer
  • Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006. A boolean variable named recalled has be
    8·1 answer
  • I have a PTCL Router. When I reset it it stops working. So if I backup its settings and use them after reset will my PTCL Work
    13·2 answers
  • 7.3 A hydraulic lift has a mechanical advantage of 6. If the load weighs 780 N, calculate
    13·1 answer
  • The following shared data structures must be declared as global variables such that they are shared by all threads
    7·1 answer
  • 1. It is one way to attain one's holistic health condition.​
    9·1 answer
  • Images that are made up of pixels and cannot be resized without losing quality?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!