الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

a- Write java program for drawing the following

Featured Replies

بتاريخ:

السلام عليكم

اخواني عندي سؤالين اتمنى منكم حلهم ولو شرح بسيط للحل

بتكونوا عملتوا خير


a- Write java program for drawing the following
1- draw dot.
2- Draw line
3- Draw circle .
4- Draw oval.
5- Draw rectangle
6- Draw square.
7- Draw triangle.
8- Exit
Use parameters as needed for each drawing operation.


b- Write java program for converting the following
1- Convert from kilo meter to mile .
2- Convert from Fahrenheit to Celsius .
3- Convert from meter to feet
4- Convert from grade number to grade letters.
5- Exit
Use parameters as needed for each converting operation, use text area to show the results of converting.

Note: Celsius = 5/9 x (Fahrenheit – 32).
. Mile= 1852 meter.
Feet=30.48cm.
Meter=100cm





اتمنى الاجابه بأسرع وقت وشكرا جزيلا.

بتاريخ:
  • كاتب الموضوع

 

:P :) :) :) :) :( :( :( :( :(

 

بتاريخ:

السلام عليكم
سأكتب لك مثال يجمع كل الاشكال الهندسية:

حل السؤال الاول:

import java.awt.*;
import javax.swing.*;
public class LineRectOval extends JFrame {
public LineRectOval ()
{
super ("Drawing Lines, rectangle And Ovals");
setSize (400, 165);
setVisible (true);
}
Public void paint (Graphics g )
{
super.paint (g);
g.setColor (Color.Red);
g.drawLine (5, 30, 350, 30);

g.setColor (Color.Blue);
g.drawRect (5, 40, 90, 55);
g.fillRect (100, 40, 90, 55);

g.setColor (Color.Cyan);
g.fillRoundRect (195, 40, 90, 55, 50, 50);
g.drawRoundRect (290, 40, 90 ,55, 20, 20);

g.setColor (Color.Yellow);
g.drawOval(195, 100, 90, 55);
g.fillOval(290, 100, 90, 55);
}

Public static void main ( String args[] )
{
LineRectOval application = new LineRectOval();
application.setDefaultCloseOperation(JFrame.Exit_On_Close);
}
}



وسأحاول بحل السؤال الثاني..

بالتوفيق

بتاريخ:
  • كاتب الموضوع

وعليكم السلام ورحمة الله وبركاته شكرا جزيلا لك أخي بوقته تمام

بتاريخ:


Convert Temperature



Here



Kilometers to Miles





try to surf the site it will answer all of your questions

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.