Message from @ThisIsChris
Discord ID: 545417163339726849
Yes
Jacob, you posted an essay about immigration a while back. I just read it recently and I have some feedback to help you improve your writing. I was thinking we could go through it via audio, or if you prefer, I can write it out.
Yes, I'll find some time
Can anyone explain how to create a cout statement in C++ that'll print a number array each time it's sorted?
@ThisIsChris perhaps?
<@&387091385075105804> ^^^
@GDoctor You want the array printed after sorting or before sorting?
I'm sad that my skills are never needed when I see the AE call. It's never something I have experience with. 😟
@micbwilli what are some of the topics you like?
Biology and Chemistry are mostly what I know.
@ThisIsChris the assignment calls for output after each "pass" through an array during a sort, (any kind of sort can be used).
@GDoctor OK that makes sense! what code do you have so far?
Not much, just the boilerplate #include, main function and the array initialized. I jist wanna know how to get it to print after each pass and not just after sorting is done.
@GDoctor can you paste the code? put it between three back ticks both above and below the code:
```python
x = 3
print(x)
```
#include<iostream>
using namespace std;
int main()
{
const int NUMINTS = 20;
int randomNumbers[NUMINTS] = { 24, 9, 88, 15, 22, 38, 10, 76, 62, 54,
51, 39, 10, 13, 66, 89, 99, 100, 33, 75, };
}
```cpp
#include<iostream>
using namespace std;
int main()
{
const int NUMINTS = 20;
int randomNumbers[NUMINTS] = { 24, 9, 88, 15, 22, 38, 10, 76, 62, 54,
51, 39, 10, 13, 66, 89, 99, 100, 33, 75, };
}
```
Can anyone help with a bit of statistics? Here's the problem: if P(A|B) = 0.7 and P(A'|B') = 0.3, are A and B independent or dependent? I'm not sure if I should use Baye's Theorem or something else to relate the two statements <@&387091385075105804>
@Jakob-NY My first thought here is that P(A'|B') = 0.3 means that P(A|B') = 0.7 since P(A|B') = 1 - P(A'|B')
Oh gotta go dig deep in the textbooks for this
Does that mean they are independent? Not sure...
Thanks! That definitely makes sense. The definition of independence I'm working with is that if P(A|B) = P(A) and P(B|A) = P(B), then they're independent. But I think I can figure it out from what you helped with