Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Read the given case study and answer the following questions (Question 1-Question 5) You are appointed by a local consulting company for a project


imageimage

Read the given case study and answer the following questions (Question 1-Question 5) You are appointed by a local consulting company for a project to design and implement an employee's records system. The work is to develop a program that calculates each employee's total salary based on the Grade level as shown in the figure below. Employee_Grade Base_Salary Bonus 5 80,000 30% 4 70000 25% 3 60000 20% 2 50000 15% 1 40000 10% The formula to evaluate total salary is: Total_salary = Base salary + (bonus *base_salary)/100. You are asked to write snippets (small pieces of reusable code) based on the questions that you might consolidate and use in the final program. There are 5 questions based on the case study. Answer all the given questions based on the given case study. Make necessary assumptions If required. Question 5 10 marks The company expects to implement concept of Object-oriented programming concepts (OOPs) a. Write the snippet to define a class 'Employee' with required attributes/states and methods/behavior to calculate the salary. b. Write the constructor to initialize the attributes such as employee name, employee id and grade. c. Create an instance/object of class 'Employee' passed with employee name, employee id and grade. d. Show how one can implement polymorphism and encapsulation in the given program. Task for Exam:- You are Required to develop a supermarket system using C++ Language including the concepts of Object- Oriented programming (OOPS) which comprises of Classes, objects, Functions,Constructor,destructor,inheritance(multiple,multi-level), Polymorpharism.Array and pointer should be used where necessary.Output should also have GUI (Graphical user interface). These point written down below,all must strictly be followed or else the code will not be accepted:-1 The Code should be strictly in C++ language only. The code should be working properly with clear outputs,remember i will copy whole code and then paste on the compiler so it should be working properly with all the outputs everytime i copy and paste. Without GUI(Graphical User Interface) the code will not be accepted. Everything should be commented properly in the code (In English language only). ~It is the semester project not Final Year Project, the difficulty of the code should not be like professional- developer nor like beginner. ALL THE CODE OUTPUTS SHOULD BE CLEARLY MENTIONED IN THE FORM OF PICTURE.PROPER SCREENSHOTS SHOULD BE ATTACHED SO THAT IT WILL BE EASIER FOR ME.MS WORD(DOC) FILE OF THE CODE SHOULD BE ATTACHED WITH THE OUTPUTS OR ELSE THE CODE AND THE QUESTION WOULD BE SIMPLY REJECTED FAILED TO FOLLOW THESE INSTRUCTIONS AND GIVING INCOMPLETED CODE OR OUTPUT WILL NOT BE ACCEPTED.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

a Snippet to define a class Employee with required attributes and methods b Constructor to initiali... 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

Research Methods For Business Students

Authors: Mark Saunders, Philip Lewis, Adrian Thornhill

8th Edition

1292208783, 978-1292208787

More Books

Students also viewed these Programming questions