السلام عليكم ..
مطلوب مني كتابة برنامج ..ولكن المشكلة ما استوعبت الافكار المطلوبة عشان اكتب .. الترجمة واضحة ..المطلوب ..وضع الأفكار المطلوبه ع شكل نقاط محدده و واضحة ..شرح بالضبط ايش خلاصة البرنامج ..
Consider the following exercises:
One month prior to elections in parliament-based governments many candidates for the parliament are making every possible effort to attract citizens’ vote. One such way is the so called “personalized letters.” Write, compile and run a program that can do the following:
1. Write to a string object the “message” of the candidate to the citizens. This message can be up to 600 characters long broken down to no more than 8 lines. The candidate for the parliament should be able to write the text himself putting XXXXX in the place where s/he believes the last and first names of the citizens should be placed (no more than 3 times in the whole text
2. Read the message from the string object and be able to make changes when the candidate feels is necessary.
3. Write to an array of objects citizens’ first and last names, gender and their age.
4. Ask the candidate what are the gender and the age of the citizens s/he wants to send the message to. Then the program reads the appropriate citizens’ object and puts their first and last names in an array of records, which is as large as the number of the citizens that should get the “message.”
5. Write to another string object a “new” message based on the “message” and replacing the XXXXX occurrences with the first and last names of the citizens that are to get the message.
6. Display the “new message” string object that includes the “personalized message” on screen.
اتمنى المساعدة ..قدر الامكان ..ودمتم ..