Design and Implement a C++ Application. This program builds on previous program.
ID: 3646267 • Letter: D
Question
Design and Implement a C++ Application.This program builds on previous program.
You are to convert the parallel arrays todata structures.
Declare an array of structures.
Add a field that kees track of employee status (stat)
Add two more choices to the menu:
Print report for active employees
Print a report of inactive employees.
All reports should have complete information for the employee and all should include the header and title of the report, along with a title that explains what the report is.
Use multiple source files for this program, and be sure your structure definition, prototypes and symbolic constants are defined in a header file, which should be included in your source files.
Turn in the following reports:
A report of all employees
A report of all active employees
A report of all inactive employees
Two reports of specific employees
One report that failed to find an employee
Objective of this program:
Using data structures
Using pointers with structures
Using headers
Using Arrays of Structures
Using multiple source files
Explanation / Answer
#include #include using namespace std; // "Product" class Pizza { public: void setDough(const string& dough) { m_dough = dough; } void setSauce(const string& sauce) { m_sauce = sauce; } void setTopping(const string& topping) { m_topping = topping; } void open() const { cout open(); cook.setPizzaBuilder(spicyPizzaBuilder); cook.constructPizza(); Pizza* spicy = cook.getPizza(); spicy->open(); delete hawaiianPizzaBuilder; delete spicyPizzaBuilder; delete hawaiian; delete spicy; }Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.