اذهب إلى المحتوى
  • 0

معالجة عناوين ويب و استخراج معلومات منهم

ARMY5

السؤال

Write a program that prompts the user to enter unlimited websites addresses in the form:

https://website.domain

Stop the input process when "@" is entered.

Your program should print:

1. How many address belonged to Jordan.

2. How many address belonged to Saudi Arabia.

3. If the website's address is not secured , print a message indicating that this website might cause harm to your computer. 

Note: a none secured website is a website with the address: http//website.domain

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

  • 0

إن حل التمرين لك لن يحسن من مهاراتك البرمجية و لن يعود عليك بالفائدة، من فضلك قم بمحاولة حل التمرين لوحدك و في حال واجهتك مشاكل يمكننا مساعدتك، لكن لا يمكننا إعطاءك الحل بشكل مباشر.

كمساعدة بسيطة حاول البحث عما يدعى بال regex، من السهل حل التمرين باستعمالهم.

رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...