Rabu, 07 September 2016

Nama      : Yanto Tebai
NIM       : 5130411274
Jurusan   : Teknik Informatika


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LatihanQuis
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnHasil_Click(object sender, EventArgs e)
        {
            double uts;
            double uas;
            double tugas;
            double quis;
            double total;

            uts = Convert.ToDouble(textUts.Text);
            uas = Convert.ToDouble(textUas.Text);
            tugas = Convert.ToDouble(textTugas.Text);
            quis = Convert.ToDouble(textQuis.Text);
            total= (uts*30/100) + (uas*30/100)+(tugas*20/100)+(quis*20/100);
            textTotnilai.Text = Convert.ToString(total);
        }

        private void btnHapus_Click(object sender, EventArgs e)
        {
            textNama.Clear();
            textNim.Clear();
            textUts.Clear();
            textUas.Clear();
            textTugas.Clear();
            textQuis.Clear();
            textTotnilai.Clear();
            richTextBox1.Clear();

        }
        private void btnSimpan_Click(object sender, EventArgs e)
        {
            richTextBox1.Text = "\nNama \t: " + textNama.Text + "\nNim \t: " +                  textNim.Text + "\nJurusan \t: " + comboBoxJurusan.Text +"\nNilai                  QUIS \t: " + textUts.Text + "\nNilai UAS \t: " + textUas.Text +                   "\nNilai Kuis \t: " + textQuis.Text + "\nNilai Total \t: " +                          textTotnilai.Text;
        }
        private void btnKeluar_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }
    }
}








Folow Twiter

BTemplates.com

4/recentposts
Diberdayakan oleh Blogger.

Blog Archives

Recent in Sports

3/recentposts
[recent]

About Me

techno papua
Lihat profil lengkapku

Formulir Kontak

Nama

Email *

Pesan *

Followers

Comments

4/recentcomments

Random Posts

3/randomposts

Facebook

Popular Posts