InstagramTwitterSnapChat


 
وصف

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


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

بروووجيكت برمجة

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

إضافة رد
 
أدوات الموضوع إبحث في الموضوع انواع عرض الموضوع
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 26-12-2013, 08:20 PM

الصمت الخجوؤل الصمت الخجوؤل غير متواجد حالياً

جامعي

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


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





CPCS-202: Programming I
Page 1
Validating Credit Cards
Each student needs to submit it online and Submit one hard copy for the Section Instructor.
Problem Description:
Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with:
4 for Visa cards
5 for Master cards
37 for American Express cards
In 1954, Hans Luhn of IBM proposed an algorithm for validating credit card numbers. The algorithm is useful to determine if a card number is entered correctly or if a credit card is scanned correctly by a scanner. Almost all credit card numbers are generated following this validity check, commonly known as the Luhn check or the Mod 10 check, which can be described as follows (for illustration, consider the card number 4388576018402626):
1. Double every second digit from right to left. If doubling of a digit results in a two-digit number, add up the two digits to get a single-digit number.
2 * 2 = 4
2 * 2 = 4
4 * 2 = 8
1 * 2 = 2
6 * 2 = 12 (1 + 2 = 3)
5 * 2 = 10 (1 + 0 = 1)
8 * 2 = 16 (1 + 6 = 7)
4 * 2 = 8
2. Now add all single-digit numbers from Step 1.
CPCS-202: Programming I
Lecture Instructor Name:
.................................................. .................
Lab/Sec Instructor Name:
.................................................. .................
King Abdulaziz University
Faculty of Computing and
Information Systems
Fall Term 2013/2014
Final Project
Student Name:........................................... ID:................... Sec:A....R Date:....../......./ 201
Page 2
4 + 4 + 8 + 2 + 3 + 1 + 7 + 8 = 37
3. Add all digits in the odd places from right to left in the card number.
6 + 6 + 0 + 8 + 0 + 7 + 8 + 3 = 38
4. Sum the results from Step 2 and Step 3.
37 + 38 = 75
5. If the result from Step 4 is divisible by 10, the card number is valid; otherwise, it is invalid. For example, the number 4388576018402626 is invalid, but the number 4388576018410707 is valid.
Write a program that prompts the user to enter a credit card number as a long integer. Display whether the number is valid or invalid.
Here are sample runs of the program:
Sample 1: Enter a credit card number as a long integer: 4246345689049834
4246345689049834 is invalid
Sample 2: Enter a credit card number as a long integer: 4388576018410707
4388576018410707 is valid

وهذا المطلوب والتعديل السؤال

المطلوب الآتي :
1- لآ بد أن تتأكدي من أن الرقم المدخل 16 خانة (وإلغاء إحتمال أن يكون الرقم 13 خانة وهذا للتسهيل) و التأكد من الرقم الأول يجب أن يكون إما 4 أو 5 أو 37 ولكن ممكن تختصري 37 الى فقط 3 وهذا أيضاً للتسهيل موضح في نص السؤال .
2- تطبقي المطلوب منك بعد ذلك كما هو في نص السؤال (الفقرات من 1 الى 5)
3- والمطلوب طباعتها على شاشة ال output ايضا كما هو موضح في ملف البروجكت (Sample 1 & Sample 2)

و ششششششششششكرا
رد مع اقتباس

 

إضافة رد


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

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

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

 


الساعة الآن 12:24 PM


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