Tugas Praktikum Pemrograman II Menghitung Gaji
Nama : Dira Aris Saputra
Npm : 19312033
Kelas : IF20E
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
String nama;
int GajiPokok, JamLembur, Bonus, TotalGaji;
Console.Write("MASUKKAN NAMA : ");
nama = (Console.ReadLine());
Console.Write("MASUKKAN GAJI POKOK : ");
GajiPokok = int.Parse(Console.ReadLine());
Console.Write("MASUKKAN JAM LEMBUR : ");
JamLembur = int.Parse(Console.ReadLine());
if (JamLembur <= 2)
{
Bonus = 50000;
}
else
{
Bonus = 100000;
}
TotalGaji = JamLembur * Bonus + GajiPokok;
Console.Write("\n NAMA : " + nama);
Console.Write("\n JAM LEMBUR : " + JamLembur);
Console.Write("\n GAJI POKOK : " + GajiPokok);
Console.Write("\n TOTAL GAJI : " + TotalGaji);
Console.ReadKey();
}
}
}
Komentar
Posting Komentar