1. Monitor
2.C.P.U
3.Mouse
4. Keyboard
5. Printer
6. Speaker
Answer:
See explaination
Explanation:
#include <iostream>
using namespace std;
void SelectionSortDescendTrace(int numbers[], int numElems) {
int maxInd;
for (int i = 0; i < numElems - 1; ++i) {
maxInd = i;
for (int j = i; j < numElems; ++j) {
if (numbers[j] > numbers[maxInd]) {
maxInd = j;
}
}
int temp = numbers[i];
numbers[i] = numbers[maxInd];
numbers[maxInd] = temp;
for (int j = 0; j < numElems; j++) {
cout << numbers[j] << " ";
}
cout << endl;
}
}
int main() {
int numbers[10];
int numElements = 0;
for (int i = 0; i < 10; i++) {
cin >> numbers[i];
if (numbers[i] == -1)
break;
++numElements;
}
SelectionSortDescendTrace(numbers, numElements);
return 0;
}
Answer:
months_info = ['January', 'February','March','April', 'May','June', 'July','August', 'September', 'October', 'November', 'December']
date = input('Enter a date using the mm/dd/yyyy format ')
m, d, y = date.split('/')
m = int(m) - 1
name_of_month = months_info[m]
print('{} {}, {}'.format(name_of_month, d, y))
Explanation:
- Create a list of all months and store them in the months_info variable.
- Get the date as an input from user and then split the date.
- Finally display the date by following the specific layout using the built-in format method.
Answer:
Tbh i dont even know
Explanation:
I had who i wanted to become president but i don't even know anymore