data structures in c programming - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

data structures in c programming

hardymarshalhardymarshal Posts: 2Member
CT108 Assignment 1


Write a program that can be used to raise the salary for each employee by 230% whose year of birth is before 1964 and by 250% when the year of birth is 1964 or later. You are required to employ dynamic memory allocation for your solution. You could derive some ideas from the code below but this is not the expected solution.
Your program should accept test data and output results. Submit your assignment via the Senior Technician.


SalaryIncrease(e)
struct employee e[];

{
int i;
for(i=0;i<40;i++)
{
if(e[i].year<1964)
{e[i].salary*=230;}
else
e[i].salary*=250;
}

}


Sign In or Register to comment.