update main

This commit is contained in:
S.long 2020-09-10 14:22:28 +07:00
parent 827ffe8e0d
commit ccc2fd2a88
3 changed files with 39 additions and 8 deletions

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -1,15 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="286d83b5-9a28-456c-8b99-023b18a60548" name="Default Changelist" comment="" /> <list default="true" id="286d83b5-9a28-456c-8b99-023b18a60548" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" /> <option name="LAST_RESOLUTION" value="IGNORE" />
</component> </component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectId" id="1hIhb0ef6nJysSoG0U0WhqR3xaz" /> <component name="ProjectId" id="1hIhb0ef6nJysSoG0U0WhqR3xaz" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="PropertiesComponent"> <component name="PropertiesComponent">
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" /> <property name="aspect.path.notification.shown" value="true" />
<property name="dart.analysis.tool.window.force.activate" value="false" /> <property name="dart.analysis.tool.window.force.activate" value="false" />
@ -36,11 +44,25 @@
<option name="number" value="Default" /> <option name="number" value="Default" />
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1599704580697</updated> <updated>1599704580697</updated>
<workItem from="1599704583590" duration="1903000" /> <workItem from="1599704583590" duration="2666000" />
<workItem from="1599709663822" duration="1200000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" /> <option name="version" value="1" />
</component> </component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State>
<option name="COLUMN_ORDER" />
</State>
</value>
</entry>
</map>
</option>
</component>
</project> </project>

View File

@ -8,6 +8,9 @@ String input(String message ){
} }
void main() { void main() {
print(" Dart Tax Calculation ");
print("=================================");
var salary = double.parse( input("Enter Salary : ")) ; var salary = double.parse( input("Enter Salary : ")) ;
var bonus = double.parse(input("Enter Bonus : ")); var bonus = double.parse(input("Enter Bonus : "));
@ -20,22 +23,22 @@ void main() {
var familyCount = spouse + children; var familyCount = spouse + children;
var familyCost = familyCount * 150000; var familyCost = familyCount * 150000;
print("family : ${familyCount} * 150000 = ${familyCost}"); print("family = ${familyCost}");
var noFamilySalary = salary - familyCost; var noFamilySalary = salary - familyCost;
print("salary = ${salary} - ${familyCost} = ${noFamilySalary}"); print("salary = ${noFamilySalary}");
var tax1 = noFamilySalary * 0.1 -160000; var tax1 = noFamilySalary * 0.1 -160000;
print("Tax 1 = ${noFamilySalary} * 0.1 - 160000 = ${tax1}"); print("Tax 1 = ${tax1}");
var tax2 = bonus * 0.2 ; var tax2 = bonus * 0.2 ;
print("Tax 2 = ${bonus} * 0.2 = ${tax2}"); print("Tax 2 = ${tax2}");
var taxSum = tax1 + tax2; var taxSum = tax1 + tax2;
print("Tax = ${tax1} + ${tax2} = ${taxSum}"); print("Tax = ${taxSum}");
var lastSalary = salary + bonus - taxSum; var lastSalary = salary + bonus - taxSum;
print("Last Salary = ${salary} + ${bonus} - ${taxSum} = ${lastSalary}"); print("Last Salary = ${lastSalary}");
} }