Documente Academic
Documente Profesional
Documente Cultură
Part II: Output and Debugging Questions (10 marks each) [20
Marks]
Note: Provide a copy of the code and screen shot for the output in the solutions’
namespace ConsoleApp20
{
class Program
{
static void Main(string[] args)
{
int p;
int[] A = { 14, 85, 62, 19, 78, 42, 12, 23, 69, 60 };
for (p = 0; p < 10; ++p)
{
if (A[p] > 50)
Console.WriteLine(A[p]);
}
Console.ReadLine();
namespace ConsoleApp20
{
class Program
{
static void change(int p, ref int q)
{
p = p * 10;
q = q * 100;
}
class Program
{
Console.ReadLine();
}
Note: Provide a copy of the code and screen shot for the output in the solutions’
1. Write a C# Sharp program to read a number input by the user and find
Sample I/O
2. Write a C# application that asks the user to input the required data to
implement the two methods below:
(Use Method Overloading to write the methods)
a. Method Area that takes as input, double values ‘b’ (base) and ‘h’
(height), calculates the area of a parallelogram, and displays it.
[Area = ]
b. Method Area that takes as input, double values ‘b1’ (base 1), ‘b2’
(base 2) and ‘h’ (height), calculates the area of a trapezoid, and
[15
Marks]
Sample I/O
حل واجبات جروب المتياز بقيادة المهندس أحمد 00966597837185تنبيه ,,رقمي الوحيد لعدم التعرض
للحتيال
حل واجبات الجامعة العربية المفتوحة ,, 00966597837185حلو ل واجبات الجامعة العربية المفتوحة ,,
حلول الواجبات M107حل الواجب M107حلول واجبات M107جروب المتياز المهندس أحمد حل واجب
بدون تشابه حل واجبات الجامعة العربية المفتوحة ,, 00966597837185حلو ل واجبات M107 TMA
حل M107حلول واجبات M107الجامعة العربية المفتوحة ,,جروب المتياز المهندس أحمد حل واجب
بدون تشابه M107 TMAحلول الواجبات M107الواجب