1-topshiriq to’g’ri burchakli uchburchakning a va
ning barcha haqiqiy qiymatlarida 6 − 62 − 7 funksiyaning qiymatini hisoblang
Download 48.25 Kb.
|
1-topshiriq to’g’ri burchakli uchburchakning a va-fayllar.org
- Bu sahifa navigatsiya:
- (Ko’rsatma: 2 ta Label, 5 ta RadioButton, 2 ta TextBox va 1 ta Button. Natijalar Labelda chiqarilsin)
- 17. A1, B1, C1, A2, B2, C2 koeffisiyentlari bilan berilgan, chiziqli tenglamalar sistemasi
14. ning barcha haqiqiy qiymatlarida 6 − 62 − 7 funksiyaning qiymatini hisoblang.
(Ko’rsatma: 2 ta label, 2 ta textbox, 1 ta button. Natija labelda chop etilsin) 15. Og’irlik o’lchov birliklari uchun (kg dan g, t, mg ga) konvertatsiya dasturini tuzing (Ko’rsatma: 2 ta Label, 5 ta RadioButton, 2 ta TextBox va 1 ta Button. Natijalar Labelda chiqarilsin) try { int kg = 0; kg = Convert::ToInt32(textBox1->Text); if (radioButton1->Checked == true) {//gramm label3->Text = "Natija: " + kg * 1000 + " g"; } else { if (radioButton2->Checked == true) { //tonna label3->Text = "Natija: " + (float)kg / 10000 + " t"; } else { //milliGran label3->Text = "Natija: " + kg * 1000000 + " gr"; } } } catch (String ^err) { MessageBox::Show(err, "Error", MessageBoxButtons::OK); } Temperatura TF gradus Selsiyda berilgan. Temperatura qiymatini TC Farangeytga o’tkazuvchi dastur tuzing. (Ko’rsatma: TC = (TF – 32)∙5/9, 1 ta Label, 1 ta TextBox, 1 ta Button. Natijalar Labelda chiqarilsin) if (textBox1->Text != "") { int a; a = Convert::ToInt16(textBox1->Text); label1->Text = "Natija: " + Convert::ToString((a*(9 / 5) + 32)); else { label1->Text = "Natija: " + Convert::ToString("harf kiritilgan!!!"); } } 17. A1, B1, C1, A2, B2, C2 koeffisiyentlari bilan berilgan, chiziqli tenglamalar sistemasi yechimlarini topuvchi dastur tuzing: {1+1=1 2+2=2 Bunda 12 − 21 ≠ 0 deb hisoblang. (Ko’rsatma: 6 ta Label, 6 ta TextBox, 1 ta Button. Natijalar Labelda chiqarilsin) Faylning hajmi baytlarda berilgan. Ushbu fayl necha Kb, Mb va Gb ekanligini topish dasturini tuzing. (Ko’rsatma: Ko’rsatma: 2 ta Label, 4 ta RadioButton, 2 ta TextBox va 1 ta Button. Natijalar Labelda chiqarilsin) Double ^size; size = Convert::ToDouble(this->textBox1->Text); if (radioButton7->Checked == true) { if (radioButton8->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text)) + " B"; } } if (radioButton7->Checked == true) { if (radioButton6->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(textBox1- >Text) / 1024 + " KB"; } } if (radioButton7->Checked == true) { if (radioButton5->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) % 1048576) + " MB"; } } if (radioButton7->Checked == true) { if (radioButton4->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) % 1073741824) + " GB"; } } if (radioButton1->Checked == true) { if (radioButton8->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) * 1024) + " B"; } } if (radioButton1->Checked == true) { if (radioButton6->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text)) + " KB"; } } if (radioButton1->Checked == true) { if (radioButton5->Checked == true) {label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) / 1024) + " MB"; } } if (radioButton1->Checked == true) { if (radioButton4->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) % 1048576) + " GB"; } } if (radioButton2->Checked == true) { if (radioButton8->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) * 1024 * 1024) + " B"; } } if (radioButton2->Checked == true) { if (radioButton6->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) * 1024) + " KB"; } } if (radioButton2->Checked == true) { if (radioButton5->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text)) + " MB"; } } if (radioButton2->Checked == true) { if (radioButton4->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) / 1024) + " GB"; } } if (radioButton3->Checked == true) { if (radioButton8->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) * 1024 * 1024 * 1024) + " B"; } } if (radioButton3->Checked == true) { if (radioButton6->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) * 1024 * 1024) + " KB"; } } if (radioButton3->Checked == true) { if (radioButton5->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text) * 1024) + " MB"; } }if (radioButton3->Checked == true) { if (radioButton4->Checked == true) { label3->Text = "Natija : " + Convert::ToDouble(Convert::ToInt32(textBox1->Text)) + " GB"; } } 19. Kompyuterga suzish musobaqasi boʼyicha uchta sportchining musobaqa natijalari kiritiladi. Ekranga eng yaxshi natijani tanlovchi va bu natija suzish boʼyicha gʼolib suzuvchining natijasi ekanligini chop etuvchi dastur yarating. (Ko’rsatma: 3 ta Label. 3 ta TextBox, 1 ta ListBox, 1 ta Button. Natija ListBox da chiqarilsin) Download 48.25 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling