C # Foundation IV Talk

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.