Жесткий диск, flash-память, компакт-диск, процессор.
Остальное относиться к видам памяти.
Принтер, акустические колонки, наушники, микрофон.
Остальное относится к устройству воспроизведения/записи звука.
Системный блок, центральный процессор, оперативная память, жесткий диск, блок питания.
Системный блок - включает в себя остальные вещи.
Системный блок, клавиатура, мышь, монитор, акустические колонки.
Все остальное - это устройства ввода/вывода.
Видеокарта, карта расширения, звуковая карта, сетевая карта.
Карта расширения - обобщение существующих карт.
Enter, End, Esc, Delete - 2 варианта:
Первый - Esc, потому как все остальные клавиши предназначены для работы с текстом.
Второй - Delete, так как он отличается первой буквой.
Цветной принтер, лазерный принтер, матричный принтер, струйный принтер.
Указанные принтеры могут быть как цветными, так и черно-белыми.
// C# 7.3
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
var crypted = "";
for (int i = 0; i < CaesarCipher.Ru.Length; i++)
Console.WriteLine(CaesarCipher.Decode(i, crypted));
}
}
class CaesarCipher
{
public static readonly string Ru = "";
public static readonly string RuD = "";
private static readonly int defaultStep = 3;
public static CaesarEncrypted Encode(int step, string source, Func<string, string> translate)
{
string translatedData = translate(source);
var stringBuilder = new StringBuilder();
foreach (char c in translatedData.ToLower())
{
stringBuilder.Append(RuD[Ru.IndexOf(c) + step]);
}
return new CaesarEncrypted(step, stringBuilder.ToString());
}
public static CaesarEncrypted Encode(int step, string source)
{
return Encode(step, source, x => x);
}
public static string Decode(CaesarEncrypted source)
{
var step = source.Step;
return Encode(-step + Ru.Length, source.ToString(), x => x);
}
public static string Decode(int step, string source)
{
return Encode(-step + Ru.Length, source, x => x);
}
}
class CaesarEncrypted : IEnumerable, IEnumerable<char>
{
public int Step { get; set; }
public string Data { get; set; }
public CaesarEncrypted(int step, string initData)
{
Step = step;
Data = initData;
}
public CaesarEncrypted(string initData) : this(int.MaxValue, initData)
{}
public IEnumerator<char> GetEnumerator()
{
foreach (char c in Data)
yield return c;
}
IEnumerator IEnumerable.GetEnumerator() => (IEnumerator<char>)GetEnumerator();
public override string ToString() => Data;
public static implicit operator string(CaesarEncrypted source) => source.ToString();
}
}