Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TaxationCalc
- {
- class TaxationCalc
- {
- static void Main()
- {
- double GrossValue = double.Parse(Console.ReadLine());
- double IncomeTax = 0.1;
- double SocialContr = 0.15;
- double sumIncome = (GrossValue - 1000) * IncomeTax;
- double sumSocial = (GrossValue - 1000) * SocialContr;
- double TaxAfterMath = 300;
- if (GrossValue > 1000 && GrossValue <= 3000)
- {
- Console.WriteLine("The Value after tax is {0} IDR", (GrossValue - (sumIncome + sumSocial)));
- }
- if (GrossValue > 3000)
- {
- Console.WriteLine("The Value after tax is {0} IDR", (GrossValue - (sumIncome + TaxAfterMath)));
- }
- if (GrossValue <= 1000)
- {
- Console.WriteLine("The GrossValue is less or equal to 1000 and no taxation applies");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment