سؤال او مشكلة - ستجد الاجابة - Questions & Problem - get ur answer مشاكل + استفسارات + امور غامضة = ستحصل على الأجابة أن شاء الله

إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 11-30-2010, 03:13 AM

قرصان جديد

 
تاريخ التسجيل: Dec 2009
العمر: 30
المشاركات: 3
معدل تقييم المستوى: 0
abofaresssss will become famous soon enough
Exclamation مساعده..لاهل الخبرة

السلام عليكم ورحمة الله وبركاته


بلا مقدمات.... مطلوب مني عمل project فياليت انكم تساعدوني وابشروا بالدعوااات من القلب..

ملاحضة: اخر موعد لتسليم الـproject يوم السبت الموافق 28/12 هـ..
اذا موجود شرح الحل فراح اكون شاكر...


..$اسأل الله العلي القدير ان يجزي كل من فرج كربتي بتفريج كل كربه$..

عندما عاينت الموضوع لم اجد المرفق لذا سانسخه هنا

CPCS 203: Object Orientated Programming with Java
Project 1 Assignment for December 4, 2010
This project assignment worth 5% of the overall module marks (100%).
The deadline for this assignment is 1pm on (Saturday) 4th of December, 2010. This project has to be submitted ONLINE via your teacher Email. If the work is not receive by the cut-off time, it will be consider as not attempted and will be given zero, unless justifying circumstances is proven.
You will be given 10 minutes to demonstrate your project. Questions will be asked related to the working of your project (program).
The details for this project assignment are as follows.

Project Details:
Write a java class named as Product.java representing a product you purchase from a supermarket. This class should have the following information about the Product:
• Product Name (String). (e.g. Milk , Chocolate, Tea e.t.c.)
• Company Name (String) (Al-marai, Galaxy , Lipton e.t.c)
• Make Date (Date). (Date of Make of Almarai Milk printed on the Bottle )
• Product Count( int) ( No of Products in the supermarket e.g. 5 )
Customer can visit and purchase the products from the supermarket. When the customer purchase a product its date of expiry must be displayed which is 1 week from the Make Date. Let’s assume that The Super Market has 5 different Products.

The Products class should have eight methods

• setProductName (String name) for setting the name of the Product.
• getProductName ( ) for returning the name of the Product.
• setCompanyName(String name) for setting the name of the Company of a Product.
• getCompanyName ( ) for returning the name of the Company of a Product.
• check ( ) for checking the availability of a Product in the super Market.
• setMakeDate (Date) for setting the Make date of a Product.
• getMakeDate (Date) for returning the Make date of a Product.
• toString() for printing a report that contains all of Products purchased from the super market.


Write a Java application (Main class) called ProductTest.java that lets the user to create six Objects of Product Class and then prints a report that contains all the five products purchased by a customer.





Sample output:

Enter name of First Product you want to Purchase: Milk
Enter the Product Company Name: Al-marai
You can purchase the Al-marai Milk
You purchased this product on 11-07-2010 This Product will expire after 1 week

Enter name of Second Product you want to Purchase: Chocolate
Enter the Product Company Name: Galaxy
You can purchase the Chocolate Galaxy
You purchased this product on 11-07-2010
This Product will expire after 1 week

Enter name of Third Product you want to Purchase: Tea
Enter the Product Company Name: Lipton
You can purchase the Tea Lipton
You purchased this product on 11-07-2010
This Product will expire after 1 week

Enter name of Fourth Product you want to Purchase: Laban
Enter the Product Company Name: Nadec
You can purchase the Nadec Laban
You purchased this product on 11-07-2010
This Product will expire after 1 week

Enter name of Fifth Product you want to Purchase: Yoghurt
Enter the Product Company Name: Al-marai
You can purchase the Al-marai Yoghurt
You purchased this product on 11-07-2010
This Product will expire after 1 week

Enter name for Sixth Product Purchased: Labnah
Enter the Product Company Name: Nadec
الموضوع الأصلى من هنا: منتديات القرصان http://www.alkrsan.net/forum/oaeca-cae-aossae-oeii-cacicee-questions-and-problem-get-ur-answer/34518-aocuia-acaa-caiene.html
Sorry Nadec Labnah is out of order

============the report from the Super Market===========

Al-marai Milk is purchased on 11-07-2010, expiry date of this product is 11-14-2010
Galaxy Chocolate is purchased on 11-07-2010, expiry date of this product is 11-14-2010
Lipton Tea is purchased on 11-07-2010, expiry date of this product is 11-14-2010
Nadec Laban is purchased on 11-07-2010, expiry date of this product is 11-14-2010
Al-marai Yoghurt is purchased on 11-07-2010, expiry date of this product is 11-14-2010
Sorry Nadec Labnah is out of order





آخر تعديل بواسطة abofaresssss ، 11-30-2010 الساعة 03:16 AM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
رد مع اقتباس
  #2  
قديم 12-01-2010, 02:21 AM

قرصان جديد

 
تاريخ التسجيل: Dec 2009
العمر: 30
المشاركات: 3
معدل تقييم المستوى: 0
abofaresssss will become famous soon enough
افتراضي

وين الناس
عموما الي حاب يساعدني يبلغني برد وشكرا..
وللتذكير الموضوع بالجافا
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
رد مع اقتباس
إضافة رد

العلامات المرجعية


يتصفح الموضوع حالياً : 1 (0 عضو و 1 ضيف)
 
أدوات الموضوع
انواع عرض الموضوع

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

BB code متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are معطلة
Pingbacks are معطلة
Refbacks are معطلة



جميع الأوقات بتوقيت GMT +3. الساعة الآن 03:44 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.1 PL1

تعريب » القرصان - خدمات الويب

جميع الحقوق محفوظة alkrsan 2006-2014


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498