The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Need a code for this homework. I'm using Eclipse Compiler. And if you cant do it. Plss don't drop on the last day.. Thank you.
Â
CS 1337.502,504 F16Program #5Page1of2Program #5Due: Tuesday, November 15th, 2016 at 11:30PMInstructorDr. Stephen PerkinsOffice LocationECSS 4.702Office Phone(972) 883-3891Email Addressstephen.perkins@utdallas.eduOffice HoursTuesday and Thursday 10:30am – 11:30amTuesday and Thursday 1:00pm – 2:15pmand by appointmentGraderSection 502:Sai Vamsi Muvvasxm154231@utdallas.eduOpen Lab 2.103B1Section 504:Gopichand Vankagxv151030@utdallas.eduOpen Lab 2.104A1Tuesday/Thursday 3:00pm – 5:00pmPurposeDemonstrate the ability to extend and use an abstract class.Demonstrate the advanced feature ofimplementing a class that uses theSingletondesign pattern.Demonstrate the advanced feature ofimplementing a class that uses the Factory Method design pattern. Exercise your new class with adriver program.AssignmentWe will be creating a useful logging class.This class can be used as a means of advancedlogging in other C++ programs.It will use afactory method design patternsuch that debuggingcan be implemented with different classes but the main body of code will not know which class itis using. It will usea singleton design patternthat will allow us to get a logging object fromwithin whatever function requires logging output.You are to create an abstract class namedCS1337Logger.This class must contain a privateboolean variable namedloggingEnabled.You need to define a setter method to set its value.Theconstructor for the class should initializeloggingEnabledto false;You are to create apure virtual functioncalleddisplayMessagethat takes aconst char*as anargument.This pure virtual function makes the classCS1337Loggeran abstract class.You are to create alogMessagefunction that will accept aconst char*message as an argument.This method should then check the value ofloggingEnabled.If it is true, then you should call thepure virtual functiondisplayMessageand pass it theconst char *.You must then create two derived classes.
Attachments:
-----------