Computer Science, asked by DollySingh231206, 3 months ago

6. Program to input salary of an employee and display the salary that the person will receive for each
of the next 5 years if he gets an increment of 10% every year.
7. Program to input the principal, rate of Interest and display the simple interest to be paid at the end
python (in loop)
unnecessary answer will be report​

Answers

Answered by avniverma75
1

Answer:

I would like to write a code for a C program that will:

Create a structure that will store the employee details.

Insert 5 different records of employees into the database.

Update the salary by adding a 10% increment if the years of service is 10 years and more. Otherwise, add a 7% increment.

Display the data for all employees.

principal=float(input("Enter an initial principal value: "))

interest=float(input("Enter an interest rate: "))

years=int(input("enter how many years it will take: "))

def payment(principal, interest, years):

n=principle*((1+interest)**years)

for n in range(principal,total):

print(n)

total=n+total

payment(principal, interest, years)

Similar questions