subject

You've just been named the new director of the United States Mint. For some reason, you've been authorized to do whatever you want with our coinage. You want to simplify our coins using the following criteria: 1. There should be only three denominations of coins. You can keep any three existing denominations (for example, 1, 5, and 10; or 1, 10, and 25) or come up with new ones (for example, 1, 8, and 20). 2. Assume that in any transaction, the number of cents given as change is equally likely to be any of the hundred quantities from 0 to 99, and always uses the minimum number of coins necessary. Your goal is to minimize the average number of coins that have to be given as change. For this part of the problem, write a Python program to answer the following question: If you decided to keep 1, 10, and 25 cent coins, what would be the average number of coins given as change

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:00
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x,y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documentation/point2d.html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
You know the right answer?
You've just been named the new director of the United States Mint. For some reason, you've been auth...
Questions
question
Biology, 18.07.2019 20:00
question
Biology, 18.07.2019 20:00
Questions on the website: 13722360