عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 08-03-2014, 10:47 PM
الصورة الرمزية alMaJnOn

alMaJnOn alMaJnOn غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Mar 2009
التخصص: statistics
نوع الدراسة: إنتظام
المستوى: الثامن
الجنس: ذكر
المشاركات: 100
Unhappy فزعتكم يالمبرمجين واجب cs201 ساعدوني


مرحبا ياليت تسعادوني في الواجب هذا ماعرفت له نقرتين لعرض الصورة في صفحة مستقلة
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).
رد مع اقتباس