For a certain candy, 15% of the pieces are yellow, 20% are red, 20% are blue, 5% are green, and the rest are brown.
a) If you pick a piece at random, what is the probability that it is brown? it is yellow or blue? it is not green? it is striped?
b) Assume you have an infinite supply of these candy pieces from which to draw. If you pick three pieces in a row, what is the probability that they are all brown? the third one is the first one that is red? none are yellow? at least one is green?
a) The probability that it is brown is ___. (Round to three decimal places as needed.)
The probability that it is yellow or blue is ___. (Round to three decimal places as needed.)
The probability that it it is not green is ___. (Round to three decimal places as needed.)
The probability that it is striped is ___. (Round to three decimal places as needed.)
b) The probability of picking three brown candies is __. (Round to three decimal places as needed.)
The probability of the third one being the first red one is __. (Round to three decimal places as needed.)
The probability that none are yellow is __. (Round to three decimal places as needed.)
The probability of at least one green candy is __. (Round to three decimal places as needed.)
In: Statistics and Probability
Claudio is a skilled craftsman employed by the Goldcasters Jewelry to make handcrafted jewelry. Working after his normal working hours and using materials he paid for himself, Claudio crafts a fine ring by skillfully weaving together strands of gold wire. He presents the ring to his fianc?e, Cheryl, as an engagement ring in anticipation of their forthcoming marriage. While visiting the restroom in a steak and ribs restaurant, Cheryl removes the ring so she can wash some barbecue sauce from her hands. In her haste to get back to her table, she leaves the ring on the washstand when she exits the restroom. Sandra, a part-time janitor for the restaurant, finds the ring and slips it into her purse. When Cheryl realizes she is missing the ring and returns to the restroom to look for it, neither the ring nor Sandra is still there. Later that evening, Sandra sells the ring to her cousin, Gloria, who gives her $200 for it. Several days later, Cheryl breaks her engagement to Claudio, telling him that she no longer loves him. Claudio asks Cheryl to return the ring, indicating that he intended for her to have it only if their engagement led to marriage. This situation raises a number of questions concerning rights and interests in personal property that will be discussed in this chapter. They include:
Did Claudio make an effective gift of the ring to Cheryl? Or was it a conditional gift that he could revoke when Cheryl decided to call off the marriage?
What was Sandra’s responsibility when she found the ring? Between Sandra and the restaurant, who had the better right to the ring?
Did Gloria become the owner of the ring when she paid the $200 to Sandra? Does Cheryl have the right to recover the ring from Gloria if she finds that Gloria has it?
In: Economics
Write a program that uses linked lists in order to support the following operations:
1. PUSH (S, x) - pushes a value x into a stack S
2. POP (S, i) - gets a number i (positive integer) and pops i numbers of S. If S contains less than i values, the operation is impossible to execute (program prints ERROR in this case – see below).
3. REVERSE (S) - reverse the order of the elements in S (you might want to apply recursion). If, for example, S is a stack and x was the last inserted, from now on x is treated as the first inserted element.
4. QUEUE (S) - declares that from this moment S becomes and acts like a queue. Nothing is printed after this operation.
5. ENQUEUE(S, x) - adds x to a queue
6. DEQUEUE(S) - removes element when S is a queue.
7. STACK(S) - makes S into a stack. Nothing is printed after this operation is executed.
8. AVERAGE(S) - returns the average of the numbers in S The program reads a sequence of strings, names of the operations, and additional value (when required).
The program prints the values in S after each operation is executed unless it’s stated otherwise. If S is empty, program prints EMPTY. The program prints ERROR in case and the operation is impossible to execute. Assume, the program starts with empty stack. Assume, the values are positive integers. The program ends when the string END is entered. Assume, the operation AVERAGE returns 0.0 if S is empty. For every operation the program must state its running time – write this in comments. Each important statement in your program must be documented in comments.
Example 1: Input:
AVERAGE
PUSH 4
PUSH 5
PUSH 7
PUSH 9
POP 2
PUSH 11
PUSH 6
REVERSE
In: Computer Science
In this python script find any bugs and errors which would cause the code to crash. The code must be re-written correctly.
After debugging make a separate list of all the errors
you found in the script.
contacts_list=[] # global variable, list of contacts_list, one string per contact
def pause()
""" pauses program e.g. to view data or message
"""
input("press enter to continue")
def load():
""" populate list with data
"""
contacts_list.append(('Milo ',
'063847489373'))
contacts_list.append(('Tony', '46483848')
contacts_list.append(('Betty'
'03747384043'))
print("%s records have been loaded"
%(len(contacts_list)))
add():
""" adds contact to list """
name = input("enter name : ")
phone_no = int(input("enter phone number :
"))
contacts_list.append(((phone_no, name)))
def view():
""" displays contacts_list """
index = 0
for contact in contacts_list:
print(index,"
",contact[0], " ", contact[2])
index += 1
pause()
def delete():
""" removes contact based upon index """
index=input("enter index of contact to delete
")
del contacts_list[index-1]
def menu():
""" loops menu of options and does these until
user quits """
while True:
print("")
print(" enter for
option")
print(" =
==========")
print(" v
view contacts_list")
print(" a
add contact")
print(" d
delete contact")
print(" q
quit")
option=input("your
option: ")
optoin=option.lower() #
always lower case
if option == "v":
#view()
elif option ==
"d":
delete()
elif option ==
"a":
add()
elif option ==
"q":
return # exit while loop and menu function
else:
print("invalid menu option")
pause()
def main():
""" entry point if module imported or run as
script """
load()
menu()
if __name__ == "__main__":
# runs program if executed as a script
main()
In: Computer Science
JCL Inc. is a major chip manufacturing firm that sells its products to computer manufacturers like Dell, HP, and others. In simplified terms, chip making at JCL Inc. involves three basic operations: depositing, patterning, and etching.
The following table lists the required processing times and setup times at each of the steps. Assume that the unit of production is a wafer, from which individual chips are cut at a later stage.
Note: A setup can only begin once the batch has arrived at the machine.
| Process Step | 1 Depositing | 2 Patterning | 3 Etching | |
| Setup time | 58 min. | 26 min. | 16 min. | |
| Processing time | 0.21 min./unit | 0.31 min./unit | 0.26 min./unit | |
(a) What is the process capacity in units per hour with a batch size of 100 wafers?
Answered in a table like:
Deposition units/hr
Patterning units/hr
Etching units/hr
(c) Suppose JCL Inc. came up with a new technology that eliminated the setup time for step 1 (deposition), but increased the processing time to 0.58 minute/unit. What would be the batch size you would choose so as to maximize the overall capacity of the process? (Round your intermediate computations to 2 decimal places. Round your final answer to the nearest whole number.)
Batch size is ___ units?
In: Operations Management
JCL Inc. is a major chip manufacturing firm that sells its products to computer manufacturers like Dell, HP, and others. In simplified terms, chip making at JCL Inc. involves three basic operations: depositing, patterning, and etching.
The following table lists the required processing times and setup times at each of the steps. Assume that the unit of production is a wafer, from which individual chips are cut at a later stage.
Note: A setup can only begin once the batch has arrived at the machine.
| Process Step | 1 Depositing | 2 Patterning | 3 Etching | |
| Setup time | 42 min. | 32 min. | 22 min. | |
| Processing time | 0.18 min./unit | 0.28 min./unit | 0.23 min./unit | |
(a) What is the process capacity in units per hour with a batch size of 100 wafers?
Looking for a table like:
Deposition ____ units/hour
Patterning _____ units/hour
Etching _______ units/hour
(c) Suppose JCL Inc. came up with a new technology that eliminated the setup time for step 1 (deposition), but increased the processing time to 0.42 minute/unit. What would be the batch size you would choose so as to maximize the overall capacity of the process? (Round your intermediate computations to 2 decimal places. Round your final answer to the nearest whole number.)
Batch size is ____ units.
In: Operations Management
In: Computer Science
Assume that a speculator purchases a put option on British pounds (with a strike price of $1.50) for $.05 per unit. A pound option represents 31,250 units. Assume that at the time of the purchase, the spot rate of the pound is $1.51 and continually rises to $1.62 by the expiration date. The highest net profit possible for the speculator based on the information above is:
In: Finance
In: Accounting
a- Do you consider hardness an important mechanical property? why? (specify few examples).
b- Comprare and distinguish between the Vickers, Brinell, and Rockwell tets.
c- which of the following have the highest hardness and why?
Brass, Mild steel, Aluminum
d-What is the purpose of microscope used in Brinell hardness test?
In: Mechanical Engineering