Anda di halaman 1dari 5

UJIAN TENGAH SEMESTER (UTS)

MELENGKAPI MATA KULIAH PEMROGRAMAN KOMPUTER

Program Layanan Masyarakat:

Survai Peminatan Jurusan Teknik Sipil SMK

Dosen Pengampu: Dr. Haryanto, M.T

Oleh:

Citra Nurmalita
NIM. 16701261014

PROGRAM PASCASARJANA PENELITIAN DAN EVALUASI PENDIDIKAN


UNIVERSITAS NEGERI YOGYAKARTA
2016
Tampilan Debug 1 : Kesimpulan “PASTI SUKSES (skor >6)”

Tampilan Debug 2 : Kesimpulan “SMK BISA! (skor <6)”


PERINTAH PEMROGRAMAN :

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

namespace CitraN_16701261014
{
public partial class Form1 : Form
{
int SkorA, SkorB, SkorC, i = 1;
double total;
string nk;
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)


{

private void checkBox1_CheckedChanged(object sender, EventArgs e)


{
if (checkBox1.Checked)
{
SkorA += 1;
skor1.Text = SkorA.ToString();
}
else
{
SkorA -= 1;
skor1.Text = SkorA.ToString();
}
}

private void checkBox2_CheckedChanged(object sender, EventArgs e)


{
if (checkBox2.Checked)
{
SkorA += 1;
skor1.Text = SkorA.ToString();
}
else
{
SkorA -= 1;
skor1.Text = SkorA.ToString();
}
}

private void checkBox3_CheckedChanged(object sender, EventArgs e)


{
if (checkBox3.Checked)
{
SkorA += 1;
skor1.Text = SkorA.ToString();
}
else
{
SkorA -= 1;
skor1.Text = SkorA.ToString();
}
}

private void checkBox4_CheckedChanged(object sender, EventArgs e)


{
if (checkBox4.Checked)
{
SkorA += 1;
skor1.Text = SkorA.ToString();
}
else
{
SkorA -= 1;
skor1.Text = SkorA.ToString();
}
}

private void radioButton1_CheckedChanged(object sender, EventArgs e)


{
{
SkorB = 4;
skor2.Text = SkorB.ToString();
}
}

private void radioButton2_CheckedChanged(object sender, EventArgs e)


{
{
SkorB = 3;
skor2.Text = SkorB.ToString();
}
}

private void radioButton3_CheckedChanged(object sender, EventArgs e)


{
{
SkorB = 2;
skor2.Text = SkorB.ToString();
}
}

private void radioButton4_CheckedChanged(object sender, EventArgs e)


{
{
SkorB = 1;
skor2.Text = SkorB.ToString();
}
}

private void button1_Click(object sender, EventArgs e)


{
{
total = SkorA + SkorB;
skortotal.Text = total.ToString();
if (total >= 7)
{
nk = "PASTI SUKSES";
}
else if (total <= 6)
{
nk = "SMK BISA!";
}
deskripsi.Text = nk.ToString();
}
}
}
}