Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Text;
Using System.Threading.Tasks;
Namespace ConsoleApplication2
{
Class Program
{
static void Main (string[] args)
{/* Title:
The bonuses awarded by the Enterprise are based on the profit percentage.
Profit I is less than or equal to 100000 yuan, the bonus can be raised 10%;
Profit above 100000 yuan but less than or equal to 200000 yuan, less than 100000 of the 10% commission, higher than 100000 of the portion, can commission 7.5%
200000<i<=400000, the portion below 200000 yuan is still in accordance with the above method of Commission (hereinafter). Above 200000 yuan by 5% Commission;
400000<i<=600000, higher than 400000 yuan of the portion by 3% Commission;
600000<i<=1000000, higher than 600000 yuan of the portion by 1.5% Commission;
When i>1000000, more than 1000000 of the portion is 1% Commission.
Enter the current month profit I from the keyboard, the total bonus should be issued. */
/*
int m1 = 100000, M2 = 200000, M3 = 400000, M4 = 600000, M5 = 1000000;
Console.Write ("Please enter profit for the current month");
Double lr = double. Parse (Console.ReadLine ());
String JJ = "";
if (LR <= M1)
{
JJ = ((LR * 0.1) + "Yuan");
}
else if (lr <= m2)
{
JJ = (m1* 0.1) + ((lr-m1) * 0.075) + "Yuan";
}
else if (lr > m2 && lr <= m3)
{
JJ = ((M1 * 0.1) + ((m2-m1) * 0.075) + ((lr-m2) * 0.05) + "Yuan");
}
else if (lr > M3 && LR <= M4)
{
JJ = ((M1 * 0.1) + ((m2-m1) * 0.075) + ((m3-m2) *.) + ((lr-m3) * 0.03) + "Yuan");
}
else if (LR > M4 && LR <= M5)
{
JJ = (((m1 * 0.1) + ((m2-m1) * 0.075) + ((m3-m2) *.) + ((m4-m3) * 0.03) + ((LR-M4) * 0.015)) + "Yuan");
}
else if (LR > M5)
{
JJ = ((((M1 * 0.1) + ((m2-m1) * 0.075) + ((m3-m2) *.) + ((m4-m3) * 0.03) + ((M5-M4) * 0.015)) + ((LR-M5) * 0. 001)) + "Yuan");
}
Console.Write (JJ);
Console.readkey (); */
}
}
}
C # Foundation IV Talk