Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 1 Day Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 17 Sep 2017 My Price 6.00

variable of the form

Given a linear equation in one variable of the form num1 operator num2 = num3 where any one of num1, num2 or num3 is the variable x and other two are integers. Operators can be any one of + , - , / or *, there may or may not be spaces given between the numbers and operator or ‘=’ sign.

 

Find the value of x.

 

Note:The equation will always be a valid equation.

 

 

Input

 

  • The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.
  • Each test case contain a single line denoting the linear equation.

 

 

Output

 

  • For each test case, output a single line containing the value of x correct upto 6 places of decimal.

 

 

Constraints

 

  • 1 = T = 100
  • the numbers in the equation lies in between -10^9 and 10^9 except 0

 

 

Example

Input: 3 1+x=12 12 /x =2 -8*-x =8 Output: 11.000000 6.000000 1.000000

Answers

(5)
Status NEW Posted 17 Sep 2017 12:09 PM My Price 6.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)