Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

Pls send me source code: write a c program in 1.Add employee 2.Add Department 3.Assign an employee to a deptment with start and end date 4.Exit

Employee:(Employee.txt) 1,e.number->(Auto numbering) 2,e.name 3,e.age->20 to 58 4,e.city Department:(department.txt) 1,d.number 2,d.name Emp-Dept:(empdept.txt) 1,e.number->name 2,d.number->name 3,Start date 4,End date


#include <stdio.h>
#include <conio.h>
struct details{ 
char name[30]; 
int age; 
char address[500]; 
float salary;
int main()

struct details detail; 
printf("\nEnter name:\n");
printf("\nEnter age:\n"); 
 printf("\nEnter Address:\n"); 
 printf("\nEnter Salary:\n"); 
printf("Name of the Employee : %s \n",detail.name); 
printf("Age of the Employee : %d \n",detail.age); 
printf("Address of the Employee : %s \n",detail.address); 
printf("Salary of the Employee : %f \n",detail.salary);
0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts