В
Все
М
Математика
А
Английский язык
Х
Химия
Э
Экономика
П
Право
И
Информатика
У
Українська мова
Қ
Қазақ тiлi
О
ОБЖ
Н
Немецкий язык
Б
Беларуская мова
У
Українська література
М
Музыка
П
Психология
А
Алгебра
Л
Литература
Б
Биология
М
МХК
О
Окружающий мир
О
Обществознание
И
История
Г
Геометрия
Ф
Французский язык
Ф
Физика
Д
Другие предметы
Р
Русский язык
Г
География
trinadsyear
trinadsyear
22.02.2021 09:59 •  Информатика

1. The workstation is: * а) powerful desktop computers used for high-performance tasks
b) type of a netbook
c) type of a server
d) ordinary personal computer that is connected to a network
e) desktop used for calculations

2. What are the differences between 5th generation computer and other generation computers? *

a) None of the above
b)Technological advancement
c) All of the above
d) Object Oriented
Programming
e) Scientific code

3. Which computer language is used for artificial intelligence? *

a) None of the above
b) COBOL
c) C/C++
b) PROLOG
e) FORTRAN

4. Which of the following is the output device? *

a) Joystick
b) Keyboard
c) Mouse
d) Loud speaker
e) Scanner

5. ... is a common boundary between two systems *

a) Surface
b) None of the above
c) Interface
d) Visual pathway
e) Interdiction

6. ...is the fastest, most powerful computer and the most expensive. *

a) Digital camera
b) Notebook Computers
c) Personal computer
d) Tablet PCs
e) Supercomputers

7. Which language was developed by professor Niklaus Wirth in 1970-1971? *

a) PASCAL
b) None of the above
c) FORTRAN
d) APL
e) LOGO

8. ASCII stands for *

a) American standard code for information interchange
b) American security code for information interchange
c) American Scientific code for information interchange
d) None of the above
e) All purpose scientific code for information interchange

9. A program that is employed in the development, repair or enhancement of other programs is known as … *

a) Applications program
b) None of the above
c) Utility program
d) System software
e) Software tool

Показать ответ
Ответ:
Almast1
Almast1
19.03.2023 07:09

print('x=?')

x = int(input())

print('n=?')

n = int(input())

g = 2

y = 0

c=0

if (n % 2) == 1:

   print('Так нельзя по условию')

   exit(0)

else:

   while c<(n/2):

       y = y + (1 - x) / g

       g=g+2

       c=c+1

print('у=', y)

Объяснение:

Получилось решить через цикл While

Можно и через For, но у меня там что-то пошло не так ,  однако это решение уменьшит количество переменных (должно, по крайней мере).  Если оно вам надо - напишите , в комментарии, я отошлю как разберусь.

Если нужно разобрать что как работает и что есть что - пишите в комментарии, я попробую .

0,0(0 оценок)
Ответ:
amalia454565
amalia454565
07.03.2023 03:29

#include <iostream>

using namespace std;

задание 1

//int main()

//{

// int a[10], k;

// printf("enter numbers\n");

// for(int i = 0; i < 10; ++i)

// {

//  cin >> a[i];

//  if(a[i] % 2 == 0)

//  {

//   printf("%d\n", a[i]);

//   k++;

//  }

// }

// printf("k = %d", k);

//}

задание 2

//int main()

//{

// int a[10], k;

// printf("enter K\n");

// cin >> k;

// printf("enter numbers\n");

// for(int i = 0; i < 10; ++i)

// {

//  cin >> a[i];

//  if(a[i] < k)

//  {

//   printf("%d\n", a[i]);

//  }

// }

//}

Объяснение:

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