مرحبا ياليت تسعادوني في الواجب هذا ماعرفت له
Question 4: Say that you are interested in the value of the quadradic
3X2 -8X + 4
for several values of X. Write a program that has a double precision variable X. Assign a value to it.
Write statement that computes a value for the quadradic and stores the result in another double precision
variable. Finally write out the result, something like:
At X = 4.0 the value is 20.0
وهذا السؤال الثاني :
Question 5: Write a program called MinNumber.java that takes two positive integers as command-line
arguments and prints the minimum value. For example:
Java MinNumber 9 4
Minimum value: 4
Hint: you need to use Math.min() function (See lecture 3, slide 22).