Составить программу вычисления для заданных значений x, y, z арифметического выражения - C#

Узнай цену своей работы

Формулировка задачи:

составить программу вычисления для заданных значений x, y, z арифметического выражения. 1. При x=3.74х10(в степени -2) , y=-0.825, z=0.16х10(в степени 2) , v=1.0553.

Решение задачи: «Составить программу вычисления для заданных значений x, y, z арифметического выражения»

textual
Листинг программы
  1.     partial class Form1
  2.     {
  3.         /// <summary>
  4.         /// Требуется переменная конструктора.
  5.         /// </summary>
  6.         private System.ComponentModel.IContainer components = null;
  7.  
  8.         /// <summary>
  9.         /// Освободить все используемые ресурсы.
  10.         /// </summary>
  11.         /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
  12.         protected override void Dispose(bool disposing)
  13.         {
  14.             if (disposing && (components != null))
  15.             {
  16.                 components.Dispose();
  17.             }
  18.             base.Dispose(disposing);
  19.         }
  20.  
  21.         #region Код, автоматически созданный конструктором форм Windows
  22.  
  23.         /// <summary>
  24.         /// Обязательный метод для поддержки конструктора - не изменяйте
  25.         /// содержимое данного метода при помощи редактора кода.
  26.         /// </summary>
  27.         private void InitializeComponent()
  28.         {
  29.             this.label1 = new System.Windows.Forms.Label();
  30.             this.label2 = new System.Windows.Forms.Label();
  31.             this.label3 = new System.Windows.Forms.Label();
  32.             this.label4 = new System.Windows.Forms.Label();
  33.             this.textBox1 = new System.Windows.Forms.TextBox();
  34.             this.textBox2 = new System.Windows.Forms.TextBox();
  35.             this.textBox3 = new System.Windows.Forms.TextBox();
  36.             this.textBox4 = new System.Windows.Forms.TextBox();
  37.             this.button1 = new System.Windows.Forms.Button();
  38.             this.SuspendLayout();
  39.             //
  40.             // label1
  41.             //
  42.             this.label1.AutoSize = true;
  43.             this.label1.Location = new System.Drawing.Point(25, 37);
  44.             this.label1.Name = "label1";
  45.             this.label1.Size = new System.Drawing.Size(115, 13);
  46.             this.label1.TabIndex = 0;
  47.             this.label1.Text = "Введите значение X :";
  48.             //
  49.             // label2
  50.             //
  51.             this.label2.AutoSize = true;
  52.             this.label2.Location = new System.Drawing.Point(25, 61);
  53.             this.label2.Name = "label2";
  54.             this.label2.Size = new System.Drawing.Size(112, 13);
  55.             this.label2.TabIndex = 1;
  56.             this.label2.Text = "Введите значение Y:";
  57.             //
  58.             // label3
  59.             //
  60.             this.label3.AutoSize = true;
  61.             this.label3.Location = new System.Drawing.Point(25, 85);
  62.             this.label3.Name = "label3";
  63.             this.label3.Size = new System.Drawing.Size(115, 13);
  64.             this.label3.TabIndex = 2;
  65.             this.label3.Text = "Введите значение Z :";
  66.             //
  67.             // label4
  68.             //
  69.             this.label4.AutoSize = true;
  70.             this.label4.Location = new System.Drawing.Point(25, 120);
  71.             this.label4.Name = "label4";
  72.             this.label4.Size = new System.Drawing.Size(192, 13);
  73.             this.label4.TabIndex = 3;
  74.             this.label4.Text = "Результат выполнения программы :";
  75.             //
  76.             // textBox1
  77.             //
  78.             this.textBox1.Location = new System.Drawing.Point(160, 37);
  79.             this.textBox1.Name = "textBox1";
  80.             this.textBox1.Size = new System.Drawing.Size(100, 20);
  81.             this.textBox1.TabIndex = 4;
  82.             //
  83.             // textBox2
  84.             //
  85.             this.textBox2.Location = new System.Drawing.Point(160, 89);
  86.             this.textBox2.Name = "textBox2";
  87.             this.textBox2.Size = new System.Drawing.Size(100, 20);
  88.             this.textBox2.TabIndex = 5;
  89.             //
  90.             // textBox3
  91.             //
  92.             this.textBox3.Location = new System.Drawing.Point(160, 63);
  93.             this.textBox3.Name = "textBox3";
  94.             this.textBox3.Size = new System.Drawing.Size(100, 20);
  95.             this.textBox3.TabIndex = 6;
  96.             //
  97.             // textBox4
  98.             //
  99.             this.textBox4.Location = new System.Drawing.Point(28, 145);
  100.             this.textBox4.Multiline = true;
  101.             this.textBox4.Name = "textBox4";
  102.             this.textBox4.ScrollBars = System.Windows.Forms.ScrollBars.Both;
  103.             this.textBox4.Size = new System.Drawing.Size(232, 83);
  104.             this.textBox4.TabIndex = 7;
  105.             //
  106.             // button1
  107.             //
  108.             this.button1.Location = new System.Drawing.Point(185, 234);
  109.             this.button1.Name = "button1";
  110.             this.button1.Size = new System.Drawing.Size(75, 23);
  111.             this.button1.TabIndex = 8;
  112.             this.button1.Text = "Выполнить";
  113.             this.button1.UseVisualStyleBackColor = true;
  114.             this.button1.Click += new System.EventHandler(this.button1_Click_1);
  115.             //
  116.             // Form1
  117.             //
  118.             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  119.             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  120.             this.ClientSize = new System.Drawing.Size(284, 262);
  121.             this.Controls.Add(this.button1);
  122.             this.Controls.Add(this.textBox4);
  123.             this.Controls.Add(this.textBox3);
  124.             this.Controls.Add(this.textBox2);
  125.             this.Controls.Add(this.textBox1);
  126.             this.Controls.Add(this.label4);
  127.             this.Controls.Add(this.label3);
  128.             this.Controls.Add(this.label2);
  129.             this.Controls.Add(this.label1);
  130.             this.Name = "Form1";
  131.             this.Text = "Form1";
  132.             this.Load += new System.EventHandler(this.Form1_Load_1);
  133.             this.ResumeLayout(false);
  134.             this.PerformLayout();
  135.  
  136.         }
  137.  
  138.         #endregion
  139.  
  140.         private System.Windows.Forms.Label label1;
  141.         private System.Windows.Forms.Label label2;
  142.         private System.Windows.Forms.Label label3;
  143.         private System.Windows.Forms.Label label4;
  144.         private System.Windows.Forms.TextBox textBox1;
  145.         private System.Windows.Forms.TextBox textBox2;
  146.         private System.Windows.Forms.TextBox textBox3;
  147.         private System.Windows.Forms.TextBox textBox4;
  148.         private System.Windows.Forms.Button button1;
  149.     }

ИИ поможет Вам:


  • решить любую задачу по программированию
  • объяснить код
  • расставить комментарии в коде
  • и т.д
Попробуйте бесплатно

Оцени полезность:

9   голосов , оценка 4.222 из 5

Нужна аналогичная работа?

Оформи быстрый заказ и узнай стоимость

Бесплатно
Оформите заказ и авторы начнут откликаться уже через 10 минут
Похожие ответы