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

Donna bought 16 packs of cola. each pack had 6 cans. she drank 8 of the cans. how many cans are left?
Need help please?!!!!!​
WILL GIVE BRAINLIEST A circle is shown on the coordinate plane. The graph shows a circle with the origin point A at (3, 2), and a point B on its circumference a
HELP PLSS! I need help on all the questions down below
which foreign country would you consider america's smallest threat and why?
The indirect approach to organizing negative messages opens with the reasons behind the bad news before presenting the bad news itself. question 8 options: tru
what is the simplified form for (n5)(n2)?
message they give us....MATTHEW 22: 37-39 ... pleasee :)
7. What is protein, why is it important, and what is a good source of protein? (3 points)​
Which of the following did Leonardo da Vinci develop? A) a steam engine B) a motor boat C) a compass D) a calculator