Statistics homework please help me out, thank you Background: There are always a
ID: 3273994 • Letter: S
Question
Statistics homework please help me out, thank you
Background: There are always alternative solutions to any programming problem. The code suggested in the notes keeps the list of all roads and all intersections in the main program's class. We could have had class Road keep the list of all roads, and class Intersection keep the list of all intersections. Assume we want to do this, and that we make these lists private. This suggests that class Intersection should export a static method for looking up a road by name instead of having this search method in the main class. a) Give an appropriate declaration for the list of roads inside class Road. b) Give the code you would use inside the Road constructor so that the constructed road automatically adds itself to the list. c) The main class still needs to iterate over all the roads in order to print out the textual representation of the road network. Suggest how class roads could permit this without exporting the list itself.Explanation / Answer
3)here let us consider 1 out of 5 experiment:
for it:
numebr of ways expriment can end in one step =1
numebr of ways expriment can end in two step =4 (as if it is not end in step one 4 diffferent experiments done)
numebr of ways expriment can end in three step =4*3=12 (as if it is not end in step two 3 diffferent experiments done for each of 4 of step 2)
threfore total number of ways for one node =1+4*12=17
total number of ways for 5 nodes =17*5=85
hence probability that best result is from node 2 =(4*5)/85 =0.2353
option D is correct
4)
here probability Type A (12) works =1 -P( none of 12 works) =1-(1-0.8)*(1-0.8)=0.96
probability Type B (34) works =1 -P( none of 34 works) =1-(1-0.6)*(1-0.6)=0.84
therefore probability that the circuit functions properly =0.96*0.84 =0.8064
(please revert if further information is available: here 1 and 2 is considered as type A while 3 and 4 are considered as type B)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.