السلام عليكم شباب
هذي اول مشاركة لي وحاب استفيد وان شاء الله افيد فهذا المنتدى المميز
عندي برنامج وهو عبارة عن كتابة "براجراف" من سبع جمل
ورح اكتب البرنامج بالضبط باللغة الانجليزية
write a program which would compose short story. you need to create sentences randomly from words (shown below) sorted in four arrays, namely article, noun, verb, and preposition. The programme should creat a sentence by selecting a world random from each array in the following order: article, noun, verb, preposition, article, noun. As each world is picked it should be concatenated to the previous word in an array that is larg enough to hold the sentence.
the first character of the first world should be in upper case. Words should be separated by spaces, and the sentences should end with a period. After a sentence is created, it should be concatenated to any previous sentence in an array which represent the whole story. You may assume a story always include 7 sentences
وياشباب انا سويت ال ارايس يعني نستخدم هذي الاريس
article() = Array("the", "a", "one", "some", "any", "no", "few", "many", "a lot of")
noun() = Array("boy", "girl", "dog", "town", "car", "ship", "bus", "kid")
verb() = Array("drove", "jumped", "ran", "walked", "skipped")
preposition() = Array("to", "from", "over", "under", "on")
وطبعا نستخدم ال فانكش
rnd
عشان نعمل راندوم
وبعد في طلب.. يعني لو كانت الكلمة اللي اخترناها من ال
article
جمع او "بابيولار" لازم نضيف طبعا حرف ال
s
للكلمة المختارة من ال
noun
شكرا وارجوا المساعده
انا مبتدأ في الفيجوال وكتبت شوي من الكود واحاول فيه اليوم لانه مطلوب تسليمه اليوم وممكن بكرة
ارجو المساعده ياشباب
شككككررررا