Giter Club home page Giter Club logo

ios-cw-4's Introduction

تمرين 4

فكرة هذا التمرين تنطوي على استخدام البرمجة الكينونية على تطبيق 📱 مصمم لاختيار 🤓 طالب عشوائي من الطلبة و الطالبات المشاركين في المبادرة.

ios-CW4-rec1

خطوات

  1. لنسخ الملف على حسابك الشخصي قم بفتح الرابط ثم قم بضغط على (Fork)
  2. بعمل Clone للملف عن طريق الـGithub Desktop
  3. افتح المشروع بالـ Xcode

ezgif com-video-to-gif

  1. توجه إلى Student.swift الموجود في ملف Classwork
  2. 1️⃣أنشئ struct باسم Student يحتوي على ثلاث خصائصname: String, track: String , gender: String
  3. 2️⃣ انشئ دالة (method) بداخل struct الـStrudent باسم imageName و تقوم بمقارنة الـ gender في حال: إذا كان طالب "boy" سيتم ارجاع صورة لها اسم boyProfileImage وإذا كانت طالبة "girl" سيتم ارجاع صورة لها اسم girlProfileImage

ملاحظة😊: لدينا صور في داخل مجلد Assets.xcassets هناك صورة لولد باسم boyProfileImage وهناك صورة بنت باسم girlProfileImage

  1. 3️⃣ قم بكتابة مصفوفة من نوع Student Struct و تحتوي على ثلاث مطاليب
  • name: ريم خالد, track: iOS, gender: girl
  • name: صالح شهاب, track: Web, gender: boy
  • name:محمد علي, track: Android, gender: boy

ملاحظة😊: تكتب وتعرف مصفوفة من نوع Student 👇🏻

var students: [Student] =
    [
        Student(...
        Student(...
        Student(...
    ]

آخر موعد لرفع الكود
٢٤/٦/٢٠٢٠ 📅 الساعة ١١:٥٥ مساءً

ios-cw-4's People

Contributors

safeyahshemali avatar omsi96 avatar omar-barmej avatar wroodalrashidi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.