InstagramTwitterSnapChat


 
وصف

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


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

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

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

إضافة رد
 
أدوات الموضوع إبحث في الموضوع انواع عرض الموضوع
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 05-10-2012, 02:31 PM

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

جامعي

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


عندي سؤال ابغى يشرحلي هو حاولت احله بس موراضي البرنامج بس يعطيني ايرور

The Harris-Benedict equation estimates the number of calories your body needs to maintain your weight if you do no exercise. This is called your basal bolic rate or BMR.

The calories needed for a woman to maintain her weight is:
BMR = 655 + (4.3 * weight) + (4.7 * height) - (4.7 * age)

The calories needed for a man to maintain his weight is:
BMR = 66 + (6.3 * weight in pounds) + (12.9 * height in inches) - (6.8 * age in years)

A typical chocolate bar will contain around 230 calories. Write a program that allows the user to input their weight in pounds, height in inches, and age in years. The program should then output the number of chocolate bars that should be consumed to maintain one’s weight for both a woman and a man of the input weight, height, and age.

Notes:

This project gives the student practice with numerical calculations and simple input/output. For a slightly more challenging problem allow the height to be entered in feet and inches and have the program convert to inches.

1 kg = 2.2046226218487757 pounds
1 m = 39.37007874015748 inches


انا هدا حلي وقفت الين هنا

public class Weight {
private static double weight;

/
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
System.out.print("Enter weight");
double num1 = input.nextInt();
System.out.print("Enter height");
double num2 = input.nextInt();
System.out.print("Enter age");
int num3 = input.nextInt();
double caloriesmale,caloriesfamele;
caloriesfamele = 655 + (4.3 * weight) + (4.7 * height) - (4.7 * age);
caloriesmale = 66 + (6.3 * weight) + (12.9 * height) - (6.8 * age);
رد مع اقتباس

 

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 05-10-2012, 08:00 PM   #2

رامي ع

جامعي

 
تاريخ التسجيل: Jul 2012
التخصص: سنة تحضيري
نوع الدراسة: تحضيري علمي خطة أ
المستوى: الأول
الجنس: ذكر
المشاركات: 10
Skaau.com (7) رد: Cpcs 202 شروحات وحلول وواجبات الجافا

السلام عليكم ورحمة الله وبركاته
اذا سمحتو ابغى شرح للبروجكت لاني مني فاهم شي مررره


Project 1 Deion:
Consider the following figure that shows the x-y plane with 4 points that depict a rectangle shape:
For the points to make a rectangle shape, the
following must be true:

(x1,y1)

(x2,y2)

x1=x3
y

x2=x4
y1=y2
y3=y4
(x4,y4)

x

(x3,y3)





For this project you have to :
1. Write a pseudocode
2. Write an algorithm
3. Draw a flow chart
4. Write a Java program that will read the coordinates of four points, calculate the area of the rectangle, and print a message surrounded by dashed line as follows:
|- - - - - - - - - - - - - - - - - - - - - - - - - |
| The area of the rectangle is A |
|- - - - - - - - - - - - - - - - - - - - - - - - - |

Where A is the actual value of the area calculated by your program.

Note: The pseudocode, algorithm, and flow chart should be submitted in the word file.

Hints:
1) The area of a rectangle is equal Width × Height
2) The distance between two points is calculated as Distance Formula: Given the two points (x1, y1) and (x2, y2), the distance between these points is given by the formula:

3) In Java d = d = sqrt( x )

 

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

منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 06-10-2012, 03:30 PM   #3

يزيد الجمال

جامعي

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

انا فحطت في السؤال لين صدعت

 

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

إضافة رد


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

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

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

 


الساعة الآن 02:45 PM


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

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

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

2003-2025