Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

thangeram

  • 4 years ago

hey friends pls help me solve this program using loop inpute bs display hra hra is 10% of bs number of employees are 3

  • This Question is Closed
  1. Gary_Ahuja
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    dont't u think there is a spelling mistake???????????????????????????????????????????????????

  2. ganyumbez
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I'm afraid pal,it's hard to understand the problem,cld u put it in a better, simpler version?

  3. thangeram
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    here bs is basic salary which 10% of hra means house rent allowance given to 3 employees in company calculate this using loop

  4. thangeram
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    and hra is 10000

  5. jaskaran
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    this might help def house_rent_allowance(): i=1 while i < 4: bs = input('Enter basic salary of employee: ') hra = (10*bs)/100 print 'The HRA of Employee',i,'is',hra i+=1

  6. thangeram
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    thanks jaskaran

  7. thangeram
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but still need help anybody pls solve this using for loop

  8. jaskaran
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    @thangeram , it's still very easy , all you got to do is to make small change here:- def house_rent_allowance(): for i in range(1,4): bs = input('Enter the salary of the Employee: ') hra = (10*bs)/100 print 'The HRA of Employee',i,'is',hra i+=1

  9. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy