حلول واجبات الجامعة العربية المفتوحة (لعــspring2017ـــام)

حلول واجبات الجامعة العربية المفتوحة لجميع تخصصات الجامعة ولجميع فروع الجامعة حلول واجبات – مشاريع تخرج – ملخصات هامة Mobile: 00966542495275 حلول واجبات الجامعة ا
 
الرئيسيةاليوميةس .و .جبحـثالأعضاءالمجموعاتالتسجيلدخول

شاطر | 
 

 Page 1 of 4 M107 TMA- Spring 2014-2015 Arab Open University Faculty of Computer Studies TMA – SPRING - 2014-2015 M107: Introduction to C# Programming Cut-off date: 26 / 4 / 2015 This TMA is marked out of 80, which will be considered as 20% of the continuo

اذهب الى الأسفل 
كاتب الموضوعرسالة
whatsapp::00966542495275
Admin


عدد المساهمات : 1343
تاريخ التسجيل : 07/10/2014

مُساهمةموضوع: Page 1 of 4 M107 TMA- Spring 2014-2015 Arab Open University Faculty of Computer Studies TMA – SPRING - 2014-2015 M107: Introduction to C# Programming Cut-off date: 26 / 4 / 2015 This TMA is marked out of 80, which will be considered as 20% of the continuo   الخميس أبريل 02, 2015 3:39 am

Page 1 of 4
M107 TMA- Spring 2014-2015
Arab Open University
Faculty of Computer
Studies
TMA – SPRING - 2014-2015
M107: Introduction to C# Programming
Cut-off date: 26 / 4 / 2015
This TMA is marked out of 80, which will be considered as 20% of the continuous
assessments’ grade.
It consists of 3 parts. The total marks for each part are shown at the beginning
of each part. The marks allocated to each part of a question are indicated in the
margins.
This TMA should be submitted to your tutor electronically through the LMS
before the cut-off date indicated above.
Use a single word document named as M107TMA_YourID_YourName.doc, Head
the document with your name and ID.
Provide a copy of the code and screenshot for the output and other practical
questions.
****************************
Page 2 of 4
M107 TMA- Spring 2014-2015
Part 1: Theoretical Questions [20 Marks]
1. What is platform independence? Explain this concept in .NET environment.
[5 Marks]
2. Why do we use the using System in the directive in a C# program?[5 Marks]
3. What are the different accessibility levels defined in .NET? [5 Marks]
4. Which of the following are invalid variable names? If a variable is invalid,
state the reason, why is it so?
a) Kuwait
b) Kuwait City
c) 23street
d) do
e) CsharpProgramming [5 Marks]
Part II: Output and Debugging Questions [20 Marks]
1. The following is a C# code snippet to print weather the given number is
positive or negative. Find the errors in the program and rewrite it in the
correct way that can be compiled successfully to get the desired output.
[10 Marks]
static void Main(string[] args)
{
Console.WriteLine("Insert a number: );
int number = Console.ReadLine();
if (number < 0)
Console.WriteLine("Number is positive");
else (number = 0)
Console.WriteLine("Number is 0");
Console.WriteLine("Number is negative");
}
Page 3 of 4
M107 TMA- Spring 2014-2015
2. Trace the following program and write the exact output for the following
inputs. [10 Marks]
a. Input of an array { 10, 20 , 30, 40}
b. Input of an array { 15, 25,35, 45}
c. Input of an array { 100, 200 ,300, 400}
d. Input of an array { -8, -9, -10, -11} ( Negative numbers)
class Program
{
static void Main(string[] args)
{
int[] M = new int[4] ;
for (int i = 0; i <4; i++)
{
M[i] = Int32.Parse(Console.ReadLine());
}
for (int i = 0; i < M.Length; i++)
{
M[i] = M[i] + 10;
Console.Write((M[i] / 4) + " ");
}
Console.ReadKey();
}
}
Part III: Problem Solving Question [40 Marks]
Remember: Provide a copy of the code and screenshot for the output in the solutions’
document.
1). Write a C# program to display a rectangle of asterisks (*). Take as input the
number of rows and columns from the user.
E.g. for rows = 4, columns = 5, following should be displayed:
*****
*****
*****
*****
[10 Marks]
Page 4 of 4
M107 TMA- Spring 2014-2015
Remember: Provide a copy of the code and screenshot for the output in the solutions’
document.
2) Create a simple Bank ATM transaction application, with the following menu:
1 ı Check Balance
2 ı Cash Withdrawal
3 ı Deposit Cash
4 ı Quit
Apply the following conditions.
1. Set the initial balance as 1000. (One Thousand) (i.e. amount)
2. The amount to be withdraw must me multiples of 100
3. Keep minimum balance as 500 always in the account. Give appropriate
message to the user.
4. Display current balance after each transaction.
[15 Marks]
Sample Output Screen:
Remember: Provide a copy of the code and screenshot for the output in the solutions’
document.
3) Write a C# program that checks whether a number input by the user is present in a
given array. The array is given as A= {3, 6, 4, 9, 10, 1, 2, 8}. Also display the location of
the number. [15 Marks]
Sample Output Screen:
***** End of Questions*****

_________________
الإجــابة النمــوذجية
----------------------

[عزيزي الزائر يتوجب عليك التسجيل لمشاهدة الإجابة النموذجية ، للتسجيل اضغط هنا] || الكاتب: [عزيزي الزائر يتوجب عليك التسجيل لمشاهدة الإجابة النموذجية ، للتسجيل اضغط هنا] || المصدر: [عزيزي الزائر يتوجب عليك التسجيل لمشاهدة الإجابة النموذجية ، للتسجيل اضغط هنا]






خدمات مجانية – حلول واجبات الجامعة العربية المفتوحة
لجميع تخصصات الجامعة ولجميع فروع الجامعة
حلول واجبات – مشاريع تخرج – ملخصات هامة
http://learn.123.st/
Mobile: 00966544321455  or 0544321455
Watsapp: 00966544321455

a_al_shora@hotmail.com
حلول مضمونة وغير مكررة وغير متشابهة لجميع واجبات الجامعة
متوفرمدرسين ومدرسات لجميع المواد والتخصصات
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
الرجوع الى أعلى الصفحة اذهب الى الأسفل
معاينة صفحة البيانات الشخصي للعضو http://learn.123.st
 
Page 1 of 4 M107 TMA- Spring 2014-2015 Arab Open University Faculty of Computer Studies TMA – SPRING - 2014-2015 M107: Introduction to C# Programming Cut-off date: 26 / 4 / 2015 This TMA is marked out of 80, which will be considered as 20% of the continuo
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
» Avira Premium Security Suite 9.0.0.387 + key 2014
» نكت 2015 لحق حالك
» شرح : كيفيه تغير الصفحه الرئيسيه للمتصفح home page
» Page de garde
» 2015 عام انقراض القنوات الارضية

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
حلول واجبات الجامعة العربية المفتوحة (لعــspring2017ـــام) :: حلول الواجبات بيرفكت 2015-
انتقل الى: