المساعد الشخصي الرقمي

عرض الإصدار الكامل : ارجووو مساعدتي في الحل برنامج C# فيجول ستوديو ضرووووري



lake
11/11/2014, 10:10 AM
TaskI

Generate a class of conversions from radians to degrees. Start the radian variables with an initial value of 0.0, and increment by π/10 until the radian amount is 2π.
TaskII
Generate one class that searches the equivalent radian value of an inputed degree number. Fix the range of radian values between 0.0 and 2π.
TaskIII
Generate a class that initializes the name and age of three students and displays them only if the user presses the number 1 from keyboard.
Task IV
- Build a console application that receives in input three numbers and displays them on the console.
- Create a method in your project with a class that does the sort of those three numbers ascending and descending then displays them on the console.
Notice: 1 π = 180 degrees.


الي يعرف الحل يجيني الخاص

lake
16/11/2014, 10:01 AM
السلام عليكم

ماحد عرف الجواب ؟؟؟ :حزين::مستغرب:

ركاع الملوك
23/11/2014, 10:19 PM
TaskIII
Generate a class that initializes the name and age of three students and displays them only if the user presses the number 1 from keyboard.





using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
private static string student1 = "stu1", student2 = "stu2", student3 = "stu3";
private static int agestu1 = 20, agestu2 = 22, agestu3 = 22;

static void Main(string[] args)
{







int result=0;


while (result != 1)
{
Console.WriteLine("Please Enter a Key");
string tempt = Console.ReadLine();

bool ss = int.TryParse(tempt, out result);
Console.WriteLine();

}
if (result == 1)//to make very sure
{

Console.WriteLine("You Entered 'One',,, the Students Names Are " + student1 + " , "
+ student2 + " , " + student1 + " .");
Console.WriteLine(" the Students Ages Are " + agestu1 + " , "
+ agestu2 + " , " + agestu3 + " .");




}

return;
}
}
}

ركاع الملوك
23/11/2014, 10:31 PM
بس المستعرض عكس الكتابه ,,حاول تحط السيميكولون في مكانها الصحيح,,
أيضا للفائدة شوف الميثود tryParse