Skip to content

OrysiaBo/CSharpProgs

Repository files navigation

= ATM simulator

EN: The user picks a preset amount (100 €, 200 €, 500 €) or enters a custom amount between 10 € and 1 000 € (multiples of 10, since the smallest available banknote is 10 €). Invalid inputs produce an appropriate error message.

UA: Завдання 10 – Симулятор банкомату Користувач обирає фіксовану суму (100 €, 200 €, 500 €) або вводить довільну суму від 10 € до 1 000 € (кратну 10, оскільки найменша купюра – 10 €). Невірні введення призводять до відповідного повідомлення про помилку.

= VoltageCheck:

EN: An operational amplifier requires a supply voltage of 15V. The program checks an entered voltage value. The value must be between 14.9 V and 15.1 V. Input is repeated until the value is within the valid range.

UA: Операційний підсилювач потребує напруги живлення 15 В. Програма перевіряє введене значення напруги. Значення має бути в діапазоні від 14,9 В до 15,1 В. Введення повторюється до тих пір, поки значення не буде в допустимому діапазоні.

= Addition:

EN: The program adds entered integers until the sum exceeds 100. The number of added numbers is displayed.

UA: Програма додає введені цілі числа доти, доки сума не перевищить 100. Виводиться кількість доданих чисел.

= MillionEuro:

EN: You won 1,000,000 euros in the lottery. The money is deposited in a savings account with annual interest. Each year you withdraw a "salary". The program calculates how many years the winnings will last. The loop is forcibly stopped after 100 years (protection against infinite loop).

UA: Ви виграли 1 000 000 євро в лотерею. Гроші вкладено на ощадну книжку з річними відсотками. Щороку ви знімаєте "зарплату". Програма підраховує, скільки років вистачить виграшу. Цикл примусово зупиняється після 100 років (захист від нескінченного циклу).

About

This repository contains educational tasks for writing short and simple programs in C#. It is designed to help beginners practice basic programming concepts and improve their coding skills through small exercises.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages