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.
- Construction of a Database of Employees
- 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.
- Create a singly list of employees of size 10
- 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
- Set the roles of employees by defining and setRoles() in which each employee is given a random role
- Display information
- Display on the console information of all employees using a tabular format
- Display the average salary of all the employees on the console
- Display the respective numbers of programmers, managers, and directors
- Display the information of programmers on the console using a tabular format
- Display the average salary of the programmers
- Memory management
- Delete the singly linked list after finishing all the work above
- Readability
- Apply indentations appropriately to make your program readable.
- Others
- No need of classes
- 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