Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

data structures using python or java...need code in python or java...please ans fast 1. A company wants to evaluate employee records in order to lay

image text in transcribed

data structures using python or java...need code in python or java...please ans fast

1. A company wants to evaluate employee records in order to lay off some workers on the basis of service time (the most recently hired employees are laid off first). Only the employee ids are stored in stack. Write a program using stack and implement the following functions: Main program should ask the appropriate option from the user, until user selects an option for exiting the program. i) Enter_company (emp_id)- the accepted employee id integer) is pushed into stack. ii) Exit_company O- The recently joined employee will be laid off from the company iii) Show employee ()- display all the employees working in the company. iv) count()- displays the number of employees working in the company

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

=+ How well do you think you could do your job?

Answered: 1 week ago