Skip to content

pchp250g8-home-cpp-tutorials/bcc-cpp-console-solvelinealequation

Repository files navigation

SolveLinealEquation. C++ Tutorials. Embarcadero Rad Studio IDE. Simple Input/Output. Algorithms. Windows Platform. Console application.

A console application in the C++ programming language. The program does the following:

  1. Asks you to enter the coefficients of the linear equation that needs to be solved.
  2. Displays the equation being solved in linear form on the screen.
  3. Checks if the entered coefficients are equal to 0.
  4. The following cases are possible:
    1. All coefficients are equal to zero. The phrase "Solution - any number" will be displayed on the screen.
    2. The coefficient "a" is zero, but "b" is not. In this case, the message "The equation has no solutions" will be displayed.
    3. In all other cases, the solution calculated using the formula "x=-b/a" will be displayed on the screen. Developed in the Embarcadero Rad Studio integrated environment.

SolveLinealEquation. ИС Rad Studio. Занятия по C++. Простой Ввод/Вывод. Алгоритмы. Платформа Windows. Консольное приложение.

Консольное приложение написанное на языке программирования C++. Программа делает следующее:

  1. Просит ввести коэффицееты линейного уравнения, которое нужно решить.
  2. Выводит на экран запись решаемое уравнение в линейной форме.
  3. Проверяет введённые коэффициенты на равенство 0.
  4. Далее возможны следующие случаи:
    1. Все коэффициенты равны нулю. На экран будет выведена фраза на английском языке "Решение - любое число".
    2. Коэффициент "a" равен нулю, а "b" нет. В данном случае будет выдано сообщение "Уравнение не имеет решений".
    3. Во всех остальных случаях на экран будет выведено решение, вычисляемое по формуле "x=-b/a". Разработано в интегрированной среде Embarcadero Rad Studio.

About

SolveLinealEquation. C++ Tutorials. Embarcadero Rad Studio IDE. Simple Input/Output. Algorithms. Console application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors