PEASE SOLVE AS SOON AS POSSIBLE NEED IT VERY URGENTLY ----------------------------------------------------   Write a C++ program to get 'n' number of employee details from the user and store it in a map. The map consists of employee number as key and employee name as value   Problem constraints: Display the employee details present in the map using the below formatand also get the size of the map(Use size,begin,end and iterator). printf("%-25s %s\n", "Employee number", "Employee Name");   Refer sample input and output for formatting specifications. [All text in bold corresponds to input and the rest corresponds to output] Sample Input and Output: Enter the number of employees to be inserted in database: 3 Enter the employee number: 12345 Enter the employee name: Shanmathi Enter the employee number: 32541 Enter the employee name: Thara Enter the employee number: 32154 Enter the employee name: Haveena Employees details in company database: Number of employees in company database: 3 Employee number   Employee Name 12345             Shanmathi 32154             Haveena 32541             Thara

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
PEASE SOLVE AS SOON AS POSSIBLE NEED IT VERY URGENTLY
----------------------------------------------------
 
Write a C++ program to get 'n' number of employee details from the user and store it in a map. The map consists of employee number as key and employee name as value

 

Problem constraints:

Display the employee details present in the map using the below formatand also get the size of the map(Use size,begin,end and iterator).

printf("%-25s %s\n", "Employee number", "Employee Name");

 

Refer sample input and output for formatting specifications.
[All text in bold corresponds to input and the rest corresponds to output]


Sample Input and Output:
Enter the number of employees to be inserted in database:
3
Enter the employee number:
12345
Enter the employee name:
Shanmathi
Enter the employee number:
32541
Enter the employee name:
Thara
Enter the employee number:
32154
Enter the employee name:
Haveena
Employees details in company database:
Number of employees in company database: 3
Employee number   Employee Name
12345             Shanmathi
32154             Haveena
32541             Thara

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education