vovanharahashyox7cel
02.06.2022 15:44

Задание в Питоне! 1. Обеспечить ввод пароля. Вы должны ввести пароль после запуска программы. Используйте свою фамилию в качестве правильного пароля. Если это правильно, вопросы вывод и ответы предоставляются пользователем. В случае неправильного пароля сообщение "Неправильный пароль" является выходом и программа завершается.

2. Проектирование ввода и вывода данных со следующими цветами:

А. Цвет рамы - темно-зеленый;

B. Цвет вопроса - светло-зеленый;

c. Цвет текста информации, которая будет введена, желтый;

d. Цвет предупреждающих сообщений: красный;

E. Текстовое цвет информации будет белый
· Цвет съедобного возраста (числа) красный, если возраст меньше 18 лет, в случае другого, возраст устраняется в светло-голубом;

· Цвет ежемесячного названия должен быть удален должен зависеть от сезона месяца: зимние месяцы должны быть удалены в светло-голубой, весенние месяцы в зеленом, летние - желтые, а осенние месяцы в красном;

F. Выходная информационная рамка цвета - синий;

3. Сделайте оповещение о неправильно введенной мигающей парой - надпись мигает 5 раз и исчезает

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

Задания 4 и 5:

Задание 4:

static void Main(string[] args)

       {

           int N = 10, count, sum = 0;

           int[] mas = new int[N];

           Random rnd = new Random();

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

           {

               mas[i] = rnd.Next(0, 10);

           }

           Console.WriteLine("Массив: ");

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

           {

               Console.Write(String.Format("{0,4}", mas[i]));

           }

           Console.WriteLine();

           Console.WriteLine();

           Console.Write("Введите количество элементов для суммирования (n): ");

           count = Convert.ToInt32(Console.ReadLine());

           if (count > N)

           {

               count = N;

               Console.WriteLine();

               Console.Write("Количество элементов не должно превышать размерность массива.");

           }

           for (int i = 0; i < count; i++)

           {

               sum += mas[i];

           }

           Console.WriteLine();

           Console.Write("Сумма первых " + count + " элементов массива = " + sum);

           Console.ReadKey();

       }

Задание 5:

static void Main(string[] args)

       {

           int N = 10, x, y, sum = 0;

           int[] mas = new int[N];

           Random rnd = new Random();

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

           {

               mas[i] = rnd.Next(0, 10);

           }

           Console.WriteLine("Массив: ");

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

           {

               Console.Write(String.Format("{0,4}", mas[i]));

           }

           Console.WriteLine();

           Console.WriteLine();

           Console.Write("Введите x: ");

           x = Convert.ToInt32(Console.ReadLine());

           Console.Write("Введите y: ");

           y = Convert.ToInt32(Console.ReadLine());

           if (x > N)

           {

               x = N / 2;

           }

           if (y > N)

           {

               y = N;

           }

           if (y < x)

           {

               x = N / 2;

               y = N;

               Console.WriteLine();

               Console.Write("x не должен быть больше y.");

           }

           for (int i = x - 1; i < y; i++)

           {

               sum += mas[i];

           }

           Console.WriteLine();

           Console.Write("Сумма элементов массива, с " + x + " элемента по " + y + " равна " + sum);

           Console.ReadKey();

       }

Объяснение:

Задания 4 и 5 на языке C#.

0,0(0 оценок)
Ответ:
mssvetochkaki
30.09.2022 09:02

newzhook.com/story/full-watch-parasite-2019-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-the-gentlemen-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-the-gentlemen-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-survive-the-night-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-survive-the-night-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-intuition-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-intuition-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-the-call-of-the-wild-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-the-call-of-the-wild-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-underwater-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-underwater-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-choked-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-choked-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-the-vast-of-night-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-the-vast-of-night-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-debt-collectors-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-debt-collectors-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-justice-league-dark-apokolips-war-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-justice-league-dark-apokolips-war-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-the-high-note-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-the-high-note-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-trolls-world-tour-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-trolls-world-tour-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-think-like-a-dog-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-think-like-a-dog-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-the-way-back-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-the-way-back-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-the-platform-2019-full-hd-movie-online-free/

newzhook.com/story/full-watch-the-platform-2019-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-the-lighthouse-2019-full-hd-movie-online-free/

newzhook.com/story/full-watch-the-lighthouse-2019-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-love-stage-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-love-stage-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-laxmmi-bomb-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-laxmmi-bomb-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-my-spy-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-my-spy-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-gabriels-inferno-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-gabriels-inferno-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-i-still-believe-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-i-still-believe-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-emma-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-emma-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-escape-from-pretoria-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-escape-from-pretoria-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-brahms-the-boy-ii-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-brahms-the-boy-ii-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-harriet-2019-full-hd-movie-online-free/

newzhook.com/story/full-watch-harriet-2019-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-greenland-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-greenland-2020-streaming-movie-online-hd-free/

newzhook.com/story/full-watch-greyhound-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-greyhound-2020-full-hd-movie-online-free/

newzhook.com/story/123movies-watch-the-spongebob-movie-sponge-on-the-run-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-the-spongebob-movie-sponge-on-the-run-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-body-cam-2020-full-hd-movie-online-free/

newzhook.com/story/full-watch-body-cam-2020-streaming-movie-online-hd-free/

newzhook.com/story/123movies-watch-legacy-2020-full-hd-movie-online-free/

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