256
مشترکین
اطلاعاتی وجود ندارد24 ساعت
اطلاعاتی وجود ندارد7 روز
+830 روز
آرشیو پست ها
256
#include <iostream>
using namespace std;
void selectionSort(char arr[], int n) {
for (int i = 0; i < n - 1; i++) {
int minIndex = i;
for (int j = i + 1; j < n; j++) {
if (arr[j] < arr[minIndex]) {
minIndex = j;
}
}
char temp = arr[i];
arr[i] = arr[minIndex];
arr[minIndex] = temp;
for (int k = 0; k < n; k++) {
cout << arr[k] << " ";
}
cout << endl;
}
}
int main() {
char arr[] = {'M','U','S','T','F','A','D','I','A','A'};
int n = sizeof(arr) / sizeof(arr[0]);
for (int i = 0; i < n; i++) {
cout << arr[i] << " ";
}
cout << endl;
selectionSort(arr, n);
return 0;
}
256
Repost from N/a
Method One:
R BX
: 1000
R DX
: 2000
R SI
: 3000
R DS
: 4000
E DS:4044 55
A
ADD DH, [BX+SI+44]
INT 3
T = 100 1
Method Two:
A
MOV BX, 1000
MOV DX, 2000
MOV SI, 3000
MOV AX, 4000
MOV DS, AX
MOV BYTE PTR [BX+SI+44], 55
ADD DH, [BX+SI+44]
INT 3
T = 100 7256
Repost from N/a
Method One:
R BP
: 1000
R AX
: 2000
R SS
: 3000
E SS:1000 42 56
A
ADD AX, [BP]
INT 3
T = 100 1
Method Two:
A
MOV BP, 1000
MOV AX, 2000
MOV BX, 3000
MOV SS, BX
MOV WORD PTR [BP], 5642
ADD AX, [BP]
INT 3
T = 100 6256
Q1\
Fifty-two percent of the students at a certain college are females. Five percent of the students in this college are majoring in computer science. Two percent of the students are women majoring in computer science. If a student is selected at random, find the conditional probability that
(a) the student is female given that the student is majoring in computer science;
(b) this student is majoring in computer science given that the student is female
Q2\
A student has to sell 2 books from a collection of 6 math, 7 science, and 4 economics books. How many choices are possible if (a) both books are to be on the same subjcct? (b) the books are to be on different subjects?
256
شرح هوموركات الاحتمالية
Playlist:
https://youtube.com/playlist?list=PL0mOTPwHpj-AFOw9IFWk7FCp8LZcBUqwa
