logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Adebayo Roqeeb AbiodunMathematics
(/5)

793 Answers

Hire Me
expert
Thomas BornholdttEnglish
(5/5)

580 Answers

Hire Me
expert
Shalu KashyapComputer science
(5/5)

898 Answers

Hire Me
expert
joyComputer science
(4/5)

12 Answers

Hire Me
C++ Programming

In this project, you will create a database of employees by using a singly linked list.  while meeting the requirements described below.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Purpose

Review and reinforcement of singly linked list, struct, pointers, dynamic memory allocation, passing pointers to a function, returning a pointer by a function, dangling pointer, and memory deallocation, pointer initialization, and struct data type.

 

Project description

In this project, you will create a database of employees by using a singly linked list.  while meeting the requirements described below. Your program MUST NOT interact with the user to receive inputs so that the instructor and/or the teaching assistant can save big time in testing programs.

 

  1. Construction of a Database of Employees
  1. Employee

Employee is a struct data type that has the following attributes, or data members, or data fields

struct Employee {

string  firstName;

string  lastName;

int     SSN;

string  department;

Role    role;

double  salary;

};

 

The data type Role is defined as below.

enum Role {programmer, manager, director};

Define Employee.h and include the two data types above in the file. Role must be defined before Employee because Employee uses Role.

  1. Create a singly list of employees of size 10
  2. Set the salaries of employees by defining and calling setSalaries() in which each employee is given a salary with a random number ranging from 45000 to 65000
  3. Set the roles of employees by defining and setRoles() in which each employee is given a random role

 

  1. Display information
  1. Display on the console information of all employees using a tabular format
  2. Display the average salary of all the employees on the console
  3. Display the respective numbers of programmers, managers, and directors
  4. Display the information of programmers on the console using a tabular format
  5. Display the average salary of the programmers

 

  1. Memory management
  2. Delete the singly linked list after finishing all the work above

 

  1. Readability
    1. Apply indentations appropriately to make your program readable.

 

  1. Others
  2. No need of classes
  3. No need of makefile

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme