subject

Utworzyć listę typu struktura {A uint, B uint, C uint}. Lista powinna umożliwić przechowanie informacji o trzech liczbach typu uint.
Napisać program umożliwiający zamodelowanie następującego zadania.
Rzucamy trzema kostkami do gry. Jakie jest prawdopodobieństwo, że na żadnej kostce nie wypadła szóstka, jeśli na każdej kostce wypadła inna liczba oczek?
Program powinen wylosować liczbę oczek dla każdej z kostek dla każdego rzutu.
Proponowana liczba rzutów: minimum 100.
Prawidłowa wartość zwracana przez program powinna wynosić ok. 0,5 - zgodnie ze wzrorem na prawdopodobieństwo warunkowe.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 17:30
When making changes to optimize part of a processor, it is often the case that speeding up one type of instruction comes at the cost of slowing down something else. for example, if we put in a complicated fast floating-point unit, that takes space, and something might have to be moved farther away from the middle to accommodate it, adding an extra cycle in delay to reach that unit. the basic amdahl's law equation does not take into account this trade-off. a. if the new fast floating-point unit speeds up floating-point operations by, on average, 2ă—, and floating-point operations take 20% of the original program's execution time, what is the overall speedup (ignoring the penalty to any other instructions)? b. now assume that speeding up the floating-point unit slowed down data cache accesses, resulting in a 1.5ă— slowdown (or 2/3 speedup). data cache accesses consume 10% of the execution time. what is the overall speedup now? c. after implementing the new floating-point operations, what percentage of execution time is spent on floating-point operations? what percentage is spent on data cache accesses?
Answers: 2
question
Computers and Technology, 24.06.2019 07:40
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
Memory aids that organize information for encoding are
Answers: 3
question
Computers and Technology, 25.06.2019 08:50
The purpose of this problem is to write some small functions and practice passing things around amoung functions.1) the main function shall ask the user to enter three numbers and read the three numbers.2) write a function named findsum that takes three numbers as arguments and returns their sum. the main function shall call this function.3) write a function named findaverage that takes the sum and the number of numbers and returns the average. the main function shall call this function.4) write a function named findsmallest that takes the three numbers and returns the smallest value. the main function shall call this function.5) the main function shall print the results in the following format, with two decimal positions and the decimal points aligned:
Answers: 3
You know the right answer?
Utworzyć listę typu struktura {A uint, B uint, C uint}. Lista powinna umożliwić przechowanie infor...
Questions
question
Mathematics, 24.04.2020 19:56
question
Mathematics, 24.04.2020 19:56
question
Mathematics, 24.04.2020 19:56
Questions on the website: 13722363