Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A multinational company hired you to develop their employee management system. There are many employees working in different positions and departments. Make a structure for

A multinational company hired you to develop their employee management system. There are many employees working in different positions and departments. Make a structure for each department telling the number of employees in that department including the heads. Also each position has a reporting head defined in the chart given below also state the reporting head in the employee structure.

Make a structure for all the employees holding their bio data which includes:

  • Name
  • Employee ID
  • CNIC
  • Phone Number
  • Age
  • Department
  • Position

Add more necessary variables as required.

Create functions to perform these operations:

  • Add Employee
  • Modify Employee
  • Delete Employee
  • Print All Employee
  • Display Details of all Employees
  • Search Employee using Position
  • Search Employee using Department
  • Search Employee using Employee id

Question # 2: Total Mark: 08

Sacha Sweets and Bakers is a popular baker. The store has multiple sections for Cakes, Cupcakes, Brownies, Savory Items, Chips and Nimco. Currently, the store maintains a manual register for recording the details of the bake items such as type, price, orderQty, sales, and so on. However, the owner of the store has decided to automate the tasks such as data entry, sales calculation, stock updation, and so on to save time and effort required in the tasks.

You as a software developer have to accomplish the task as follows:

You have to create structure for user in which you store user details. Structure has four members: name, city, CNICno and phoneNo.

First you have to show menu to user with different categories including subcategories, for this write function for show menu. Every category have different items list in it. Example:

Cakes:

  • Chocolate Malt Cake 1900
  • Three Milk Cake 1500
  • Pineapple Cake 1000
  • Strawberry Cheese Cake 1700
  • Chocolate Lava Cake 2000

Cup Cakes:

  • MnM cupcake 180
  • Strawberry cupcake 150
  • Cream Cheese cupcake 120
  • Dark Chocolate cupcake 170
  • Milk Chocolate cupcake 150

Write a function to add the item into cart: In this user have to choose maximum 10 item from any category then add quantity of item and add that item to cart.

Note: For cart items you have to maintain array with 10 limit.

Write some of following functions also:

  • Remove Item.
  • Modify Item.
  • Display all items in cart.
  • Cost of cart
  • Print total.
  • Print user details and items list with price using pointer.

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions