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

Hello, I need help on this, someone help, really need help on this.
What is 98,248 written as a number name?
Gary's Pizzeria made 45 pizzas. 31 of the pizzas had thin crust and the rest had thick crust, What is the ratio of the number of thin crust pizzas to the number
how did the iroquois confederacy make important decisions?
which of the following is considered the "universal wave formula?" 1.T=1/f 2.v=fλ 3.λ=vf 4.f=vλ
There are 30 tickets numbered as 1, 2, 3, 4, 30 respectively. One random. What is the probability that the number on the ticket is a multiple 2 or 3​
An airplane travels 2400 km at a speed of 600 km/h, decreases its speed to 400 km/h for the next 1200 km and travels the last 2,500 km at a speed of 500 km/h. P
what are the continents and oceans​
John is 5 years 6 months. How old is John in months?
solve x^2+6x+1=0 and give your answer to two decimal places