Skip to content

pchp250g8-home-java-tutorials/java-console-solvelinealequation

Repository files navigation

SolveLinealEquation. Java tutorials. Console Application. Simple Input/Output. Algorithms. A console application in the Java 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 Apache NetBeans integrated environment (in the Microsoft Visual Studio Code editor).

SolveLinealEquation. Занятия по Java. Консольное приложение. Простой Ввод/вывод. Алгоритмы. Консольное приложение написанное на языке программирования Java. Программа делает следующее:

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

About

SolveLinealEquation. Java tutorials. Console Application. Simple Input/Output. Algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors