پدر كنسول وديتابيس تا اين لحظه در پايه يازدهم سال 1400
آقاي پارسا ولي زاده
مي باشدآفرين 100 آفرين درود برشما
آقاي ولي زاده تمامي تمرينات را به نحواحسن انجام داده است بنده انتظار دارم كه همه عين ايشون كار را تحويل دهد.ونمره پاياني ايشان 20 شده است.



}
// سوال 2-الف
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
}
// سوال دو -ب
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
سوال 2:
class Program
{
// الف
for (int i = 0; i<studentsScores.Length; i++)
{
Console.WriteLine(studentsScores[i]);
}
// ب
for (int i = 0; i<studentsScores.Length;i++)
{
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
// 2 a
for (int i = 0; i < studentsScores.Length; i++)
{
Console.WriteLine(studentsScores[i]);
}
// 2 b
for (int i = 0; i < studentsScores.Length; i++)
{
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
}
// سوال سه -الف
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// سوال سه -ب
int max = 0;
int min = 0;
for (int i = 0;i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
// سوال سه -ج
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
نام نام خانوادگی:پرهام رحمانی
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“enter student count: “);
int studentCount = int.Parse(Console.ReadLine());
studentCount = 5;
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("Enter Score: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
// 2 – الف
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
}
// 2 – ب
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
// سوال چهار
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
}
}
}
سوال 2:
class Program
{
// الف
for (int i = 0; i<studentsScores.Length; i++)
{
Console.WriteLine(studentsScores[i]);
}
// ب
for (int i = 0; i<studentsScores.Length;i++)
{
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
amirsinakarimi;soal2
}
// 2 – الف
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
}
// 2 – ب
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
نام نام خانوادگی:پرهام رحمانی
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“enter student count: “);
int studentCount = int.Parse(Console.ReadLine());
studentCount = 5;
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("Enter Score: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
}
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
// 3 – الف
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// 3 – ب
int max = 0;
int min = 0;
for (int i = 0;i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
// 3 – ج
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// 3 a
Array.Sort(studentsScores);
for (int i = 0; i < studentsScores.Length; i++)
{
Console.WriteLine(studentsScores[i]);
}
// 3 b
int max = 0;
int min = 0;
for (int i = 0; i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
//Arsham Rezakhani
// 1 – b
Console.WriteLine(“enter student count: “);
int studentCount = int.Parse(Console.ReadLine());
// 1 – alef
studentCount = 5;
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("Enter Score: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
// 2 – alef
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
}
// 2 – b
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
// 3 – alef
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// 3 – b
int max = 0;
int min = 0;
for (int i = 0;i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
// 3 – jim
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// 4
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
}
}
}
نام نام خانوادگی:پرهام رحمانی
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“enter student count: “);
int studentCount = int.Parse(Console.ReadLine());
studentCount = 5;
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("Enter Score: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
}
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
int max = 0;
int min = 0;
for (int i = 0;i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// 4
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
}
}
}
// 3 – ج
Array.Sort(studentsScores);
for (int i = 0; i < studentsScores.Length; i++)
{
Console.WriteLine(studentsScores[i]);
}
amirsinakarimi;soal3
}
// 3 – الف
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// 3 – ب
int max = 0;
int min = 0;
for (int i = 0;i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
// 3 – ج
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
سوال 3:
// الف
Array.Sort(studentsScores);
for (int i = 0; i<studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// ب
int max = 0;
int min = 0;
for (int i = 0; i= max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
// ج
Array.Sort(studentsScores);
for (int i = 0; i<studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
amirsinakarimi;soal4
}
4
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
}
}
}
سوال3
الف)Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
ب)int max = 0;
int min = 0;
for (int i = 0;i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
سوال 3:
// الف
Array.Sort(studentsScores);
for (int i = 0; i<studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// ب
int max = 0;
int min = 0;
for (int i = 0; i= max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
// ج
Array.Sort(studentsScores);
for (int i = 0; i<studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
{
if (studentsScores[i] >= 18)
{
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16)
{
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10)
{
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
سوال3:
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
سوال 4:
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
سوال2
الف)
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
ب)
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
سوال4
الف)
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
}
}
}
using System;
public class Program
{
public static void Main()
{
// S1 – ب
Console.WriteLine(” plase enter student count: “);
int studentCount = int.Parse(Console.ReadLine());
// S1 – الف
studentCount = 5;
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("please Enter Score: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
// S2 – الف
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
}
// S2 – ب
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
// S3 – الف
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// S3 – ب
int max = 0;
int min = 0;
for (int i = 0;i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
// S3 – ج
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
// S4
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
}
}
}
using System;
public class Program
{
public static void Main()
{
// Armin Asefi
// نمایش یکی در میان رشته
Console.WriteLine(“enter a string: “);
string str = Console.ReadLine();
for (int i = 0;i < str.Length; i+=2){
Console.Write(str[i]);
}
}
}
using System;
public class Program
{
public static void Main()
{
int studentCount = 5;
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("nomre ra vared konid: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
}
}
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“tedad danesh amooz ra vared konid: “);
int studentCount = int.Parse(Console.ReadLine());
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("nomre ra vared konid: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
}
}
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“tedad danesh amooz ra vared konid: “);
int studentCount = int.Parse(Console.ReadLine());
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("nomre ra vared konid: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
for (int i = 0;i < studentsScores.Length; i++){
Console.WriteLine(studentsScores[i]);
}
}
}
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“tedad danesh amooz ra vared konid: “);
int studentCount = int.Parse(Console.ReadLine());
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("nomre ra vared konid: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
for (int i = 0;i < studentsScores.Length;i++){
if (studentsScores[i] < 10)
Console.WriteLine(studentsScores[i]);
}
}
}
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“tedad danesh amooz ra vared konid: “);
int studentCount = int.Parse(Console.ReadLine());
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("nomre ra vared konid: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
}
}
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“tedad danesh amooz ra vared konid: “);
int studentCount = int.Parse(Console.ReadLine());
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("nomre ra vared konid: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
int max = 0;
int min = 0;
for (int i = 0;i = max)
max = studentsScores[i];
if (studentsScores[i] <= min)
min = studentsScores[i];
}
}
}
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“tedad danesh amooz ra vared konid: “);
int studentCount = int.Parse(Console.ReadLine());
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("nomre ra vared konid: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
Array.Sort(studentsScores);
Array.Sort(studentsScores);
for (int i = 0;i < studentsScores.Length;i++){
Console.WriteLine(studentsScores[i]);
}
}
}
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“tedad danesh amooz ra vared konid: “);
int studentCount = int.Parse(Console.ReadLine());
int[] studentsScores = new int[studentCount];
for (int i = 0; i < studentsScores.Length; i++){
Console.WriteLine("nomre ra vared konid: ");
studentsScores[i] = int.Parse(Console.ReadLine());
Console.WriteLine(studentsScores[i]);
}
for (int i = 0;i = 18){
Console.WriteLine(“Group A: ” + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] >= 16 && studentsScores[i] = 10 && studentsScores[i] <= 16){
Console.WriteLine("Group C: " + Convert.ToString(studentsScores[i]));
}
else if (studentsScores[i] <= 10){
Console.WriteLine("Group D: " + Convert.ToString(studentsScores[i]));
}
}
}
}
1) الف
float[] n; new float[c];
for (int i = 0; i <= n – i++;)
{
Console.Write("please enter number :");
n[i] = float.Parse(Console.ReadLine());
{
ب)
Console.WriteLine("enter n of student");
int c = int.Parse(Console.ReadLine());
using System;
public class Program
{
public static void Main()
{
Console.WriteLine(“Enter Your String: “);
string text = Console.ReadLine();
for (int i = text.Length – 1; i >= 0;i–){
Console.Write(text[i]);
}
}
}