loveroyal4real
loveroyal4real loveroyal4real
  • 14-07-2021
  • Computers and Technology
contestada

program 2. write a VB.NET program to solve the linear equation of the form Ax+B=C, i.e x=(C=B)/A (Eg:2x+3=7, where B and C are consonants, A is the coefficient of x)​

Respuesta :

tonb
tonb tonb
  • 15-07-2021

Answer:

Module Program

   Sub Main()

       Dim A, B, C, x As Double

       A = 2.0

       B = 3.0

       C = 7.0

       x = (C - B) / A

       Console.WriteLine($"Solution for {A}x + {B} = {C} is x = {x}")

       Console.ReadKey()

   End Sub

End Module

Explanation:

For A=0, the program wouldn't work, because then any x would be a solution.

Answer Link

Otras preguntas

Anyone can develop empathy a. True b. False
six less than double b what is it?
What is the number pattern of 4, 9, 14, 19, 24, 29
indicates that an egalitarian society has a lower density of men in the community.explain why dyble makes this assertion.
summarize the XYZ affair
miss Clara runs a catering business she's buying fruit to make a large order for fruit salad she buys 5 3/10 pounds of apples three 4/10 pounds of oranges to 1/
While giving a presentation, a person should revise and edit the speech. time the speech in advance. speak loudly and clearly. practice using media.
Help me please ......
are two squares congruent if their areas are same
In his work Summa Theologica, who concluded that there is no conflict between faith and reason? A. Thomas Becket B. Thomas Aquinas C. Maimonides D. Pope Greg