Школьник2O18
18.04.2022 17:26

1. Which of the following method can insert a new slide in current presentation? 2. Which command will you use in PowerPoint if you need to change the color of different objects without changing content?
3. Which file format can be added to a PowerPoint show?
4. What is a slide-title master pair?
5. How can you create a uniform appearance by adding a background image to all slides?
6. Which option on the custom animation task pane allows you to apply a preset or custom motion path?
7. Which of the following features should you use when typing in the notes text box?

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
aygulmurzanaev
31.07.2022 05:08

Достоинства:

малый вес и размеры;удобство при постоянной носке;многофункциональность;постоянный доступ в Интернет;возможность оперативной передачи данных;есть опция общения по звонку и видеосвязи;можно хранить огромный объем информации, делать видеоконференции, презентации

Недостатки:

более низкая производительность за счет уменьшения размеров комплектующих;работа оборудования в ограниченном пространстве увеличивает риск перегрева;также небольшое пространство может привести к большему скоплению пыли и как следствие возникновению сопутствующих проблем.
0,0(0 оценок)
Ответ:
жан108
16.11.2020 20:14

Відповідь:

1.

#include <iostream>

#include <cstdlib>

#include <time.h>

using namespace std;

void randarr(int *A, int N){

for(int i = 0; i < N; i++){

 A[i] = rand() % 10 + 1;

}

}

void printarr(int *A, int N){

for(int i = 0; i < N; i++){

 cout << A[i] << " ";

}

}

void sortarr(int *A, int N){

for(int i = 0; i < N; ++i){

 int smallest = i;

 for(int j = i + 1; j < N; ++j){

  if(A[j] < A[smallest]){

   smallest = j;

  }

 }

 swap(A[i] , A[smallest]);

}

}

int main(){

srand(time(NULL));

setlocale(LC_ALL, "Rus");

int N;

cout << "Введите кол-во елементов массива: ";

cin >> N;

int *A = new int[N];

randarr(A,N);

printarr(A,N);

sortarr(A,N);

cout << "\n";

printarr(A,N);

delete[] A;

return 0;

}

2.

#include <iostream>

#include <cstdlib>

#include <time.h>

using namespace std;

void randarr(int *B, int N){

for(int i = 0; i < N; i++){

 B[i] = rand() % 10 + 1;

}

}

void printarr(int *B, int N){

for(int i = 0; i < N; i++){

 cout << B[i] << " ";

}

}

void sortarr(int *B, int N){

 int twoelements;

 for(int j = 0; j < N - 1; j++){

  twoelements = j;

 }

swap(B[0] , B[twoelements]);

}

int main(){

srand(time(NULL));

setlocale(LC_ALL, "Rus");

int N;

cout << "Введите кол-во елементов массива: ";

cin >> N;

int *B = new int[N];

randarr(B,N);

printarr(B,N);

sortarr(B,N);

cout << endl;

printarr(B,N);

delete[] B;

return 0;

}

3.

#include <iostream>

#include <cstdlib>

#include <time.h>

using namespace std;

void randarr(int *A, int N){

for(int i = 0; i < N; i++){

 A[i] = rand() % 10 + 1;

}

}

void printarr(int *A, int N){

for(int i = 0; i < N; i++){

 cout << A[i] << " ";

}

}

void twoarr(int *A, int *B, int N){

for(int i = 0; i < N; i++){

 B[i] = A[i] * (-1);

}

}

void sortarrtobig(int *A, int N){

for(int i = 0; i < N; ++i){

 int smallest = i;

 for(int j = i + 1; j < N; ++j){

  if(A[j] < A[smallest]){

   smallest = j;

  }

 }

 swap(A[i] , A[smallest]);

}

}

void sortarrtosmall(int *A, int N){

for(int i = 0; i < N; ++i){

 int smallest = i;

 for(int j = i + 1; j < N; ++j){

  if(A[j] > A[smallest]){

   smallest = j;

  }

 }

 swap(A[i] , A[smallest]);

}

}

int main(){

srand(time(NULL));

setlocale(LC_ALL, "Rus");

int N;

cout << "Введите кол-во елементов массива: ";

cin >> N;

int *A = new int[N];

int *B = new int[N];

randarr(A,N);

cout << "Первый массив: ";

printarr(A,N);

cout << "\nВторой массив: ";

twoarr(A,B,N);

printarr(B,N);

cout << "\nСортируем первый массив по убыванию" << endl;

sortarrtosmall(A,N);

cout << "Первый массив: ";

printarr(A,N);

cout << "\nСортируем второй массив по возрастанию" << endl;

sortarrtobig(B,N);

cout << "Второй массив: ";    

printarr(B,N);

delete[] A;

delete[] B;

return 0;

}

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота