InstagramTwitterSnapChat


 
وصف

العودة   منتديات سكاو > الكليات الجامعية > منتدى كلية الحاسبات وتقنية المعلومات > المنتدى العام لكلية الحاسبات وتقنية المعلومات
   
   


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

اول واجب برمجة 202

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

إضافة رد
 
أدوات الموضوع إبحث في الموضوع انواع عرض الموضوع
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 15-11-2016, 07:06 PM

Yazeed Al faisal Yazeed Al faisal غير متواجد حالياً

FazerX

 
تاريخ التسجيل: Nov 2016
الكلية: كلية الحاسبات وتقنية المعلومات
التخصص: مستجد
نوع الدراسة: إنتظام
المستوى: الثالث
البلد: جــــدة
الجنس: ذكر
المشاركات: 1
افتراضي اول واجب برمجة 202


السلام عليكم ي اخوان الدكتور اعطانا واجبين ب البرمجة الاول كان سهل وخلصته لكن الثاني م عرفت له لأن دكتور اللاب م طبقها لنا اللي هي If Statement ف ياليت تساعدوني ب الواجب :


Question2:
You are asked to design a flow chart and to write a java program that simulate a simple ATM. First, the user is asked to enter his password; you don’t care about the password now except that it has to be 4 digits long. If the user enters anything rather than 4 digits long, then the following message is displayed “Password has to be ‘4-digts’ long.”. If a 4 digits long pass word is entered, then, the user is asked to choose one of a three choices. Then based on his choice, a proper computation is executed. The choices are:
• D for deposit
• W for withdraw
• C for cancellation
The user is allowed to enter any choice letter in both cases capital and small.
If the letter D is chosen, then the user is asked to enter the amount to deposit and this amount is added to his balance which is initialized to be 1000. Then the new total amount is displayed.
If the letter W is chosen, then the user is asked to enter the amount to withdraw and this amount is subtracted from his balance. The new total is then displayed.
If the letter C is chosen, then the following massage is displayed “Your transaction has been cancelled as requested. Thank you”
If the user enters any other letter, then the following massage is displayed “Sorry, you have entered a wrong choice. Good bye”
The output should look like the following picture:


">




التعديل الأخير تم بواسطة Yazeed Al faisal ; 15-11-2016 الساعة 07:10 PM.
رد مع اقتباس

 

إضافة رد

أدوات الموضوع إبحث في الموضوع
إبحث في الموضوع:

البحث المتقدم
انواع عرض الموضوع

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

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

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

 


الساعة الآن 11:30 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