Assignment - 1 - Programming - Afetr IV - New Plan 1
Assignment - 1 - Programming - Afetr IV - New Plan 1
Word file format: use consistent style and formatting. Use Times New Roman Font type, with 12 points,
and single spacing. Effectively use headings and paragraphs. Number any type of illustrations (figures and
tables) and refer to them inside your document.
Authenticity: Your proposed work should be authentic, and copied from others. your answers have to relate
to the vocational scenario and not generally. If you use ideas, quotes or data (such as diagrams) from books,
journals or other sources, you must reference your sources, using the Harvard style.
Vocational scenario:
You have been hired as a trainee in the software development department at Rawhi
Pharmacy, which is working on a project that provides management over drugs in
pharmacy stores. Your assignment is to develop a software application that allows
pharmacists to perform several controls on drugs. As you progress through tasks, system
specifications shall be met. Your code must be clean, consistent, and follow code
standards. Your team leader has provided you with the following specifications about the
system that you should implement:
والكمية المتاحة في، مثل الرقم التعريفي، حيث يتميز بسمات متنوعة لكل دواء،النظام يدور أساًسا حول إدارة األدوية
االسم: يتم التعرف على كل دواء بواسطة كل من، باإلضافة إلى ذلك. وتاريخ اإلنتاج، وتاريخ انتهاء الصالحية،المتاجر
المعترف به من قبل الصيادلة واألفراد المتخصصين في المجال، واالسم العلمي، المعروف للجمهور العام،التجاري
.الطبي
تشمل وظائف النظام التالية
:عمليات الصيدلي1-
. التحقق من تواريخ انتهاء الصالحية لألدوية وتوافرها-
. القدرة على تحديث كمية الدواء عند بيعه أو إعادة تخزينه-
يجب. وظيفة البحث عن بدائل األدوية عن طريق تقديم قائمة باألسماء التجارية وأسمائها العلمية المقابلة-
.على النظام إرجاع االسم التجاري للدواء البديل
: تدابير أمان البيانات2-
يهدف،.) لحماية البيانات الحساسة داخل النظامinformation hiding( تنفيذ إجراءات إخفاء المعلومات-
.النظام إلى تبسيط إدارة األدوية للصيادلة مع ضمان سرية المعلومات الحساسة
As a preliminary step in your development process, you have been assigned the task of
investigating the process of developing a suitable algorithm for the primary method of your
code. Additionally, you have been tasked with presenting an appropriate process to follow
during the development phase.
1- Specify what an algorithm means and provide a representation for an algorithm that
you are going to implement in searching for commercial alternative drug, which
was described in the vocational scenario, using a pseudo code or flowchart.
2- To develop your application, you need to go through various stages from planning
to execution. Outline the primary stages that you should include to build your
application.
3- Identify the steps that are taken from writing code to execution and investigate the
challenges that you may face in writing your code.
4- Assess the implementation of the algorithm that you have suggested in the previous
task using a suitable programming language, considering the relationship between
the proposed algorithm and the code version to be implemented.
باإلضافة.، تم تكليفك بمهمة التحقيق في عملية تطوير خوارزمية مناسب،كخطوة أولية في عملية التطوير الخاصة بك
تم تكليفك بتقديم عملية مناسبة التباعها أثناء مرحلة التطوير،إلى ذلك.
1- كما وصفت في،عرف الخوارزمية وقدم تمثياًل للخوارزمية التي تنوي تنفيذها في عملية البحث عن دواء بديل
pseudo code اوflowchart باستخدام،السيناريو السابق
ثم عرف الخطوات األساسية التي يتم اتباعها في تطوير البرمجيات لتصميم نظام بالكامل.
2- حدد هذه الخطوات مع شرحها. عليك القيام بعدة مهمات والتي تبدأ من التخطيط روتنتهي بالتنفيذ،لتطوير برنامجك.
3- عرف الخطوات التي يتم اتباعها من كتابة الكود الى التنفيذ واذكر التحديات التي قد تواجهك خالل كتابة الكود.
4- مع مراعاة العالقة بين،قّيم تنفيذ الخوارزمية التي اقترحتها في المهمة السابقة باستخدام لغة برمجة مناسبة
الخوارزمية المقترحة الكود الذي سيتم تنفيذه
Task 2: Studying the characteristics of different programming styles
Now, you should start studying and analysing the characteristics of different programming
styles. To speed up the process, your team leader got three offers from three different
outsourcing companies for drug’s availability method. Based on your study of the source
codes, you are asked to prepare a research that covers the following:
3- Criticize the previous source codes of the three paradigms in terms of the code
structure and characteristics and choose the best programming paradigm that
fits to the scope of the problem.
حصل قائد فريقك على، لتسريع العملية. يجب أن تبدأ في دراسة وتحليل خصائص أساليب البرمجة المختلفة،اآلن
.ثالث عروض من ثالث شركات مختلفة لبناء الكود الخاص بعملية االستفسار عن توفر الدواء في المستودعات
طلب منك اجراء دراسة تغطي ما يلي،بعد دراستك لهذه األكواد:
Procedural programming, Object-Oriented Programming,( بالنظر إلى األساليب البرمجية -1
وأظهر بواسطة،) قم بتحديد وتوضيح خصائص كل أسلوب برمجيEvent-Driven Programming
.أمثلة الهيكل لكل أسلوب وكيفية ارتباطها ببعضها البعض
قامت كل شركة بتقديم كودها.الملفات المرفقة أعاله تحتوي على األكواد من الثالث شركات الالتي تم ذكرهم -2
:قم بمقارنة األكواد من حيث ما يلي.باستخدام أسلوب برمجة مختلف
)التوسعية (سهولة إضافة ميزات إضافية لألدوية .a
قابلية القراءة .b
مجال التطبيق .c
القابلية إلعادة االستخدام .d
تنظيم الكود .e
واختر األسلوب البرمجي،قدم نقًدا لألكواد السابقة لألساليب الثالثة من حيث هيكل الشيفرة والخصائص -3
.األفضل الذي يناسب نطاق المشكلة
1- Choose the IDE that you want to use and implement the Drug system using the
program paradigm that you recommend. Make sure to follow the coding standards.
2- Make clear what coding standard have you used by providing at least three
screenshots showing examples from your code of how you applied code standards.
Additionally, critically assess the importance of following coding standards for
you as an individual and for your team.
3- Enhance your implementation of search_for_replacement method by using unit
profiling tool feature on your IDE. Provide screenshots from the tool that shows
how did the tool helped you in implementing the algorithm.
4- Assess the implementation process of your program using an IDE, emphasizing the
features that facilitated the development process. Support your answer with
evidence, including at least three screenshots showcasing the features that you used
with the help of IDEs. Furthermore, provide an accurate comparison and contrast
between coding using an IDE and using text editors, highlighting the advantages
and disadvantages of each one.
5- Specify what debugging means and explain the debugging features presented by the
IDE you chose for your implementation. After that, debug your code and
demonstrate how the IDE assisted you in the process by providing clear and
appropriate screenshot(s).
6- Analyse the importance of applying the debugging process on your source code,
illustrating its effect on the robustness and security of your application.
سُيطلب منك اختيار برنامج تطويرمناسب، بناًء على الدراسة التي أجريتها في المهام السابقة.اآلن حان وقت التنفيذ
ستقوم بالمرو بعملية تصحيح األخطاء لضمان أن شيفرتك خالية من، عالوة على ذلك.والبدء في العمل على شيفرتك
.األخطاء والعيوب
) الذي ترغب باستخدامه وقم ببناء الكود الخاص بنظام األدوية باستخدامIDE( قم باختيار برنامج التطوير-1
. احرص على اتباع قواعد كتابة األكواد.اسلوب البرمجة الذي قمت بالتوصية به
قم بتوضيح معايير كتابة البرمجة التي قمت باتباعها من خالل ارفاق ثالث لقطات شاشة على األقل من-2
.كود الخاص بك تبين المعايير التي استخدمتها وبين أهمية اتباع هذه المعايير لألفراد والمجموعات
المتاحةprofiling قم باجراء تحسين على خوارزميتك الخاصة بالبحث عن دواء بديل باستخدام أداة ال-3
. ارفق لقطات شاشة من االداة توضح كيف مكنتك من التحسن على الكود.على برنامجك
قم بدعم إجابتك. ُم شِّدًدا على الميزات التي سَّهلت عملية التطوير،)IDE( قِّيم عملية تنفيذ برنامجك باستخدام -4
. بما في ذلك ثالثة على األقل لقطات شاشة ُتظِه ر الميزات التي استخدمتها بمساعدة بيئات التطوير،بأدلة
قدم مقارنة وتباين دقيق بين كتابة الشيفرة باستخدام بيئة تطوير متكاملة واستخدام محررات،عالوة على ذلك
. ُم سِّلًطا الضوء على مزايا وعيوب كل منهما،النصوص
)التي اخترتها لتنفيذIDE( واشرح الميزات التي يقدمها بيئة التطوير المتكاملةdebugging حدد معنى -5
قم بتصحيح شيفرتك وأظهر كيف ساعدتك بيئة التطوير المتكاملة في هذه العملية عبر تقديم، بعد ذلك.شيفرتك
.لقطة شاشة واضحة ومناسبة
موضًح ا تأثيرها على قوة وأمان،على الكود الخاص بكdebugging قم بتحليل أهمية تطبيق عملية ال -6
التطبيق
Recommended Resources
Please note that the resources listed are examples for you to use as a starting
point in your research – the list is not definitive.
Textbooks
Paul J. Deitel; Harvey Deitel. (2017). Java How to Program, Early Objects, 11th Edition.
ISBN-13: 978-0-13-475196-2.