0

Write a program to input basic salary of an employee and calculate its Gross salary according to following:

Basic salary<=10000: HRA=20%,DA=80% Basic salary<=20000: HRA=25%, DA=90% Basic salary>20000: HRA=30%, DA=95%

14th Sep 2017, 1:54 PM
shveta patel
shveta patel - avatar
6 Respostas
+ 4
No. You write it. :P You have all of the specifications you require to do so. https://www.sololearn.com/Codes/ ^Here you go. Web compiler so you can do it. Post your code when you're done and we can help you if you need it. Won't help you before you even bother trying.
14th Sep 2017, 2:03 PM
AgentSmith
+ 1
what have you already tried? if nothing then that's same thing I'm trying.
14th Sep 2017, 2:24 PM
Taco Jack
+ 1
"i tried but result is wrong so tell me whole ans so that i may know in which place i had mistakes" You never posted your code, so the only way I could answer you is to do 100% of the work myself, which isn't going to help you and frankly is a waste of my time. If you posted the code you tried and got an error on, we could have easily showed you what you're doing wrong and make some recommendations.
14th Sep 2017, 5:05 PM
AgentSmith
0
i tried but result is wrong so tell me whole ans so that i may know in which place i had mistakes
14th Sep 2017, 2:26 PM
shveta patel
shveta patel - avatar
- 4
write a program to input electricity unit charges and caculate total electricity bill according to the given condition: For first 50 units rs 0.50/unit For next 100 units rs 0.75/unit For next 100 units rs 1.20/unit An additional subcharge of 20% is added to the bill
14th Sep 2017, 2:02 PM
shveta patel
shveta patel - avatar
- 4
and ans of 2nd ques
14th Sep 2017, 2:15 PM
shveta patel
shveta patel - avatar