InstagramTwitterSnapChat


 
وصف

العودة   منتديات سكاو > الكليات الجامعية > منتدى كلية الحاسبات وتقنية المعلومات > المنتدى العام لكلية الحاسبات وتقنية المعلومات > منتدى الملخصات والمواضيع المميزة بالقسم العام لكلية الحاسبات وتقنية المعلومات
التسجيل مشاركات اليوم البحث
   
   


منتدى الملخصات والمواضيع المميزة بالقسم العام لكلية الحاسبات وتقنية المعلومات قسم خاص يتم نقل المواضيع المميزة و الملخصات والملفات المهمه

Cpcs 202 شروحات وحلول وواجبات الجافا

منتدى الملخصات والمواضيع المميزة بالقسم العام لكلية الحاسبات وتقنية المعلومات

إضافة رد
 
أدوات الموضوع إبحث في الموضوع انواع عرض الموضوع
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 04-11-2012, 08:00 AM   #491

saberelmasry

جامعي

 
تاريخ التسجيل: Nov 2012
نوع الدراسة: ثانوي
الجنس: ذكر
المشاركات: 1
افتراضي ما شاء الله تبارك الله ربنا يوفقكم تكفون ابي حل لسؤال ما قدرت احله

write a Java program that will convert an input metric to a corresponding value in the International System of Units. Input metric will be in Yards, Inches, Miles, and Pounds. The converted metric should be converted as follows





The user has to enter c, m, k, or g. Next, the user will enter a value for the input metric which the program will convert to the specified unit from table 1. The output of the program should be the converted metric value. In addition, consider the following scenarios in the output:
1. If the user inputs a character that is not recognized (NOT c, m, k, or g), then the program prints “Wrong Selection!”, and exits.
2. If the user inputs a value less than zero for a metric, the program will display a message that states “Cannot convert a negative value!
3. After displaying the converted metric value (if input value is not negative), the program should also display the range of the converted value according to the following rules:
a. If converted value is less than 20, print “Less than 20.”
b. If converted value is less than 50, print “Less than 50.”
c. If converted value is equal 50, print “Equal 50”.
d. If converted value is greater than 50, print “Greater than 50.”

 


التعديل الأخير تم بواسطة saberelmasry ; 04-11-2012 الساعة 08:02 AM.
saberelmasry غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 04-11-2012, 12:06 PM   #492

MNO0OL}~

جامعي

الصورة الرمزية MNO0OL}~

 
تاريخ التسجيل: Oct 2011
التخصص: أحصاء
نوع الدراسة: تحضيري علمي خطة ب
المستوى: الأول
الجنس: أنثى
المشاركات: 63
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

Write a Pseudocode, an algorithm and draw a flowchart to solve the following problems:

1. The average of 2 entered numbers
//average of 2 numbers a and b can be calculated using (a + b)/2

2. Convert temperature degree from Fahrenheit ºF to Celsius °C
// for converting the temperature you can follow the following steps:
 Subtract 32 from the Fahrenheit temperature
 Divide the result by 1.8

3. Calculate the square and the cube for a number and print the results as "The square is 4" "The cube is 8" 4, 8 are calculated for 2 as an entered number.

4. Print a message to determine if an entered number is even or odd "The number is even" or "the number is odd"

5. The Total marks of a student which consists of Homework, Attendance, Midterm Exam, Project and Final exam. Then, determine if he passed the course or not as 50% is the minimum to pass the course and print the results on the screen.


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

 

توقيع MNO0OL}~  

 

 

MNO0OL}~ غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 22-11-2012, 07:40 AM   #493

لالوتا

جامعي

 
تاريخ التسجيل: Sep 2012
نوع الدراسة: إنتظام
المستوى: الثالث
الجنس: أنثى
المشاركات: 2
Skaau.com (10) رد: Cpcs 202 شروحات وحلول وواجبات الجافا

نقرتين لعرض الصورة في صفحة مستقلةplease ابغاكم تحلولي هذا السؤال ضروري لانه عليه بونس على الاختبار, راح يكون تسليمه يوم الاثنين لانو درجتي مررة مو تمام ,حاولت احله ماعرفت ,انا اول مرة اشارك فياليت ماتخيبوا ظني وتساعدوني..

Exercise:
Write a program that prompts for information about a person and uses it to decide whether to date them

 

لالوتا غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 01-12-2012, 07:14 PM   #494

سملّق :)

أصلاً أنا أحب الحاسب عادي

الصورة الرمزية سملّق :)

 
تاريخ التسجيل: Jul 2011
كلية: كلية الحاسبات وتقنية المعلومات
التخصص: ما احبه
نوع الدراسة: إنتظام
المستوى: متخرج
البلد: اوربا
الجنس: ذكر
المشاركات: 1,385
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

ياشباب

Project3

أرجوكم التسليم بكرة .. والبروجيكت صاير لغز ؟؟

يعني لحد لاان ثلاث ايام ولا طلع معي اي حل سليم !!

نرجوا أحد الطلاب المحترفين في حل الالغاز مثل هذي " الفزعة " بطريقة الحل فقط !

 

توقيع سملّق :)  

 

سبحان الله وبحمده ، سبحان الله العظيم نقرتين لعرض الصورة في صفحة مستقلةنقرتين لعرض الصورة في صفحة مستقلة

 

سملّق :) غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 10-04-2013, 09:21 PM   #495

بنفسي اصنع سعادتي

جامعي

الصورة الرمزية بنفسي اصنع سعادتي

 
تاريخ التسجيل: Nov 2010
كلية: كلية الاقتصاد والادارة
التخصص: علوم إدارية
نوع الدراسة: إنتساب
المستوى: متخرج
البلد: جــــدة
الجنس: أنثى
المشاركات: 153
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

آلله يخليكككم اللي يعرف آآلحل لايبخل علي :(

Project2 Deion:
A Shipping Company charges cargoes in Saudi Arabia based on the following rates :

Weight of the Cargo (in KG) Shipping Rate per KM
2 kg or less SR 0.25
Over 2 kg, but not more than 10 kg SR 0.2
Over 10 kg, but not more than 20 kg SR 0.15
Over 20 kg, but not more than 50 kg SR 0.2
table 1
Shipping charges for the Gulf countries costs 2% more and 5% more for other countries.
write a Java program thatallows the user to enter the weight of the cargo , the place and
the distance it is to be shipped(Saudi Arabia, Gulf country or other) and then displays the charges.

Input validation:
The user has to enter S (for shipping in Saudi Arabia) ,G (for shipping to Gulf countries) , O (for shipping to other countries). Next, the user will enter a value cargo weight and the distance . The program will calculate the charges according totable 1. The output of the program should be the shipping charges. In addition, consider the following scenarios in the output:
1. If the user inputs a character that is not recognized (NOT S, G, orO), then the program prints “Wrong Selection!”, and exits.
2. If the user inputs0 or less for the value of the cargo weight, the program will display a message that states “the weight must be larger than Zero!”
3. The maximum weight the companywill ship is 50 KG, So if the user enter more than 50 KG, the program will display “the weight must not exceed 50KG!”
4. These are the company’s minimum and maximum shipping distances. So your program should not accept distances of less than 10 Km or more than 5000 KM. Display an appropriate message to the user if entered unaccepted distance.
5. After displaying the shipping charge,the program should also display the discountfor the charges value according to the following rules:
a. If charges value is less than or equalSR 1000, print “Discount is 0 %.”
b. If charges value is less than 10000, print “Discount is 5%.”
c. If charges value is greater than or equal 10000, print “Discount is 10%.”


The program should display a Menu for the user to choose from. The menu is shown in the figure below.

Welcome to Shipping System
Press S for shipping in Saudi Arabia
Press G for shipping to Gulfcountries
Press O for shipping to other countries

Note: Submit only the source code. For example: IA_1110348_P2.java
Sample Program Run #1:

Welcome to Shipping System

Press S for shipping in Saudi Arabia
Press G for shipping to Gulfcountries
Press O for shipping to other countries

G

Enter a value for the cargo weight:20
Enter a value for the distance: 450

Discount is 5%

The Charge ofYour20KG Cargo will be 1308.15 SR.









Sample Program Run #2:
Welcome to Shipping System

Press S for shipping in Saudi Arabia
Press G for shipping to Gulfcountries
Press O for shipping to other countries

Z
Wrong Selection!




Sample Program Run #3:
Welcome to Shipping System

Press S for shipping in Saudi Arabia
Press G for shipping to Gulfcountries
Press O for shipping to other countries

O
Enter a value for the cargo weight:60
the weight must not exceed 50KG!

 

بنفسي اصنع سعادتي غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 11-04-2013, 12:25 AM   #496

leeeedo

جامعي

 
تاريخ التسجيل: Feb 2011
نوع الدراسة: إنتظام
المستوى: الثاني
الجنس: ذكر
المشاركات: 6
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

اتفضلي اختي هذا الحل للبروجيكت الثاني
import javax.swing.JOptionPane;
public class DA_1011244_project2 {
public static void main(String[] args) {
char A;
double wit=0,dis,co=0,price=0,all=0;
String str=JOptionPane.showInputDialog(null,
"\n Press S for shipping in Saudi Arabia"
+"\n Press G for shipping to Gulf countries"
+"\n Press O for shipping to other countries",
"\n Welcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
A=str.charAt(0);
if((A=='S')||(A=='G')||(A=='O'))
{
str=JOptionPane.showInputDialog(null,
"\n Enter the weight:",
"\n Welcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
wit=Integer.parseInt(str);
if(wit>0&&wit<=50)
{if(wit>0&&wit<=2)
co=wit*0.25;
if(wit>2&&wit<=10)
co=wit*0.2;
if(wit>10&&wit<=20)
co=wit*0.15;
if(wit>20&&wit<=50)
co=wit*0.2;
str=JOptionPane.showInputDialog(null,
"\n Enter the distance:",
"\n Welcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
dis=Integer.parseInt(str);
if(dis>=10&&dis<=5000)
{
price=co*dis;
}
else
{
JOptionPane.showMessageDialog(null,
"the distaenc must not exceed 5000 KM",
"\n Welcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
}
}
else
{
JOptionPane.showMessageDialog(null,
"the weight must not exceed from 0 to 50KG!",
"\nWelcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
}
}
else
{
JOptionPane.showMessageDialog(null,"Wrong selection !",
"\n Welcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
}
if(A=='G')
price=price+(price*0.02);
if(A=='O')
price=price+(price*0.05);
if(price>0&&price<=1000)
{
all=price;
JOptionPane.showMessageDialog(null,
"\n Discount is 0% The Charge of Your "+wit+" KG Cargo will be "+all+" SR",
"\n Welcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
}
else if (price>1000&&price<10000)
{
all=price-(price*0.05);
JOptionPane.showMessageDialog(null,
"\n Discount is 5% The Charge of Your "+wit+" KG Cargo will be "+all+" SR",
"\n Welcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
}
else if(price>=10000)
{
all=price-(price*0.1);
JOptionPane.showMessageDialog(null,
"\n Discount is 10% The Charge of Your "+wit+" KG Cargo will be "+all+" SR",
"\n Welcome to Shipping System",
JOptionPane.PLAIN_MESSAGE);
}
}
}

بس انا اطلب من الشباب يساعدوني في حل البروجيكت الثالث لأنه على نفس البروجيكت الثاني
وتلاقوا المطلوب في المشاركة اللي بعدها الله يسعدكم بأسرع وقت لأنه تسليمه السبت وعندي اختبار كمان

 

leeeedo غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 11-04-2013, 12:26 AM   #497

leeeedo

جامعي

 
تاريخ التسجيل: Feb 2011
نوع الدراسة: إنتظام
المستوى: الثاني
الجنس: ذكر
المشاركات: 6
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

وهذا المطلوب في البروجيكت الثالث والله يسعدكم ماحنسالكم هالجميل

In this project, you will modify the Cargo Charges program you have written in Project 2 (See attached). You need to implement the following extensions:
Extension 1: After each program run you need to ask the user if he wants to ship another cargo (using confirmation dialog of JOptionPane). If the user clicks YES, the program will continue and ask the user to input the new cargo details. This process continues until the user clicks NO.
Extension 2: The program must keep a count of the number of shipments the user want to ship and print the count number after the user clicks NO. For example, if the user has shipped the 4 cargoes , then the program should print: "You have used the program 4 times".
Extension 3: The program should calculate and print the shipping charges and discount for each region (Saudi Arabia, Gulf countries and other countries) after each cargo shipment . At the end the program will print the total charge for all cargoes.
Extension 4: The program will terminate only if one valid shipment is made. Otherwise, it will continue to run (asking the user for input and repeating the whole program from extension 1).

 

leeeedo غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 11-04-2013, 12:38 PM   #498

بنفسي اصنع سعادتي

جامعي

الصورة الرمزية بنفسي اصنع سعادتي

 
تاريخ التسجيل: Nov 2010
كلية: كلية الاقتصاد والادارة
التخصص: علوم إدارية
نوع الدراسة: إنتساب
المستوى: متخرج
البلد: جــــدة
الجنس: أنثى
المشاركات: 153
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

ربي يسسسعدك أخوي إن شاء الله أحد يقدر يفيدكنقرتين لعرض الصورة في صفحة مستقلة

 

بنفسي اصنع سعادتي غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 12-04-2013, 01:16 PM   #499

leeeedo

جامعي

 
تاريخ التسجيل: Feb 2011
نوع الدراسة: إنتظام
المستوى: الثاني
الجنس: ذكر
المشاركات: 6
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

ياشباب يومين ومافيه رد !!
شكلو المنتدى مهجور من زمان

 

leeeedo غير متواجد حالياً   رد مع اقتباس
 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 12-04-2013, 09:27 PM   #500

nana al7rby

جامعي

 
تاريخ التسجيل: Sep 2012
التخصص: احصاء
نوع الدراسة: إنتظام
المستوى: الثالث
الجنس: أنثى
المشاركات: 5
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

دا واجبي بكرة حاولت افهم فكرتو بس ابببببدن ماطلعت بحاجا

Project 2 Deion:

A Shipping Company charges cargoes in Saudi Arabia based on the following rates :

Weight of the Cargo (in KG)

2 kg or less
Over 2 kg, but not more than 10 kg
Over 10 kg, but not more than 20 kg
Over 20 kg, but not more than 50 kg

Shipping Rate per KM

SR 0.25
SR 0.2
SR 0.15
SR 0.2

table 1

Shipping charges for the Gulf countries costs 2% more and 5% more for other countries.

write a Java program that allows the user to enter the weight of the cargo , the place and
the distance it is to be shipped(Saudi Arabia, Gulf country or other) and then displays the
charges.

Input validation:
The user has to enter S (for shipping in Saudi Arabia) , G (for shipping to Gulf countries) ,
O (for shipping to other countries). Next, the user will enter a value cargo weight and the
distance . The program will calculate the charges according to table 1. The output of the
program should be the shipping charges. In addition, consider the following scenarios in the
output:

If the user inputs a character that is not recognized (NOT S, G, or O), then the program
prints “Wrong Selection!”, and exits.

1.

If the user inputs 0 or less for the value of the cargo weight , the program will display a
message that states “the weight must be larger than Zero!”

2.

The maximum weight the company will ship is 50 KG, So if the user enter more than 50
KG, the program will display “the weight must not exceed 50KG!”

3.

These are the company’s minimum and maximum shipping distances. So your program
should not accept distances of less than 10 Km or more than 5000 KM. Display an
appropriate message to the user if entered unaccepted distance.

4.

After displaying the shipping charge ,the program should also display the discount for
the charges value according to the following rules:

5.

a. If charges value is less than or equal SR 1000, print “Discount is 0 %.”

b. If charges value is less than 10000, print “Discount is 5%.”

c. If charges value is greater than or equal 10000, print “Discount is 10%.”

The program should display a Menu for the user to choose from. The menu is shown in the
figure below.

Welcome to Shipping System

Press S for shipping in Saudi Arabia

Press G for shipping to Gulf countries

Press O for shipping to other countries

Note: Submit only the source code. For example: IA_1110348_P2.java

Sample Program Run #1:

Welcome to Shipping System

Press S for shipping in Saudi Arabia

Press G for shipping to Gulf countries

Press O for shipping to other countries

G

Enter a value for the cargo weight: 20
Enter a value for the distance: 450

Discount is 5%

The Charge of Your 20 KG Cargo will be 1308.15 SR.

كان عندي اختبارات الاسبوع اللي فات كلو ونسسسيتو اصلن ودوبها وحدة اتصلت تذكرني لو على الاقل افهم المطلوب راح احاول احلو

 

nana al7rby غير متواجد حالياً   رد مع اقتباس
 

إضافة رد


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع

 


الساعة الآن 02:05 AM


Powered by vBulletin® Version 3.8.9 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Ads Organizer 3.0.3 by Analytics - Distance Education

أن كل ما ينشر في المنتدى لا يمثل رأي الإدارة وانما يمثل رأي أصحابها

جميع الحقوق محفوظة لشبكة سكاو

2003-2023