1.

Write a C++ program to create a structure called employee with name, employee id, name, age designation and salary as data members. Accept employee details and display it. SAMPLE INPUT & OUTPUT:Enter name:RajarajanEnter ID:001Enter age:24Enter designation:ManagerEnter Salary:20000Employee DetailsName of the Employee : Rajarajan ID of the Employee : 1 Age of the Employee : 24 Designation of the Employee : Manager Salary of the Employee : 20000.00 ​

Answer»

Explanation:Hey, I am writing a C++ program for your question. Hope it helps you.Program is as under:-#include#include#includevoid main(){  clrscr();  char y,n,choice,name[100];  int age;  A:  cout<<"Enter the name of the employee"<>name;  cout<<"Enter the age of the employee"<>age;    cout<<"The name of the employee is "<>choice;  if(choice=='y')  {   GOTO A;  }  if(choice=='n') {  EXIT(0); }   getch();}SORRY BUT CANT GIVE THE SPACE..HOPE IT HELPS AND MARK ME AS BRAINLIEST



Discussion

No Comment Found