{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":643316324,"defaultBranch":"main","name":"C-OOP","ownerLogin":"SyedAbdullahh","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-05-20T19:17:41.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/103010202?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1684612051.591028","currentOid":""},"activityList":{"items":[{"before":"07e08fc442aee81240c1839f237ceece480288cb","after":"1e3af663ca46f2884284565d4a74b457fe11dfad","ref":"refs/heads/main","pushedAt":"2023-06-05T20:25:53.614Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"Internet Service Provider Package Suggestion Program to Internet Service Provider Package Suggestion Program.cpp","shortMessageHtmlLink":"Internet Service Provider Package Suggestion Program to Internet Serv…"}},{"before":"a9ca9f828b8d07820908dcd8e9963009a8f81d0a","after":"07e08fc442aee81240c1839f237ceece480288cb","ref":"refs/heads/main","pushedAt":"2023-06-05T20:25:22.110Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"Garments Shop in C++ OOP to Garments Shop in C++ OOP.cpp","shortMessageHtmlLink":"Garments Shop in C++ OOP to Garments Shop in C++ OOP.cpp"}},{"before":"c0b25720f43ab3849b352c9c58dfda928008f793","after":"a9ca9f828b8d07820908dcd8e9963009a8f81d0a","ref":"refs/heads/main","pushedAt":"2023-06-05T20:24:55.722Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"Rename Basic Scheduling Application in C++ OOP to Basic Scheduling Application in C++ OOP.cpp","shortMessageHtmlLink":"Rename Basic Scheduling Application in C++ OOP to Basic Scheduling Ap…"}},{"before":"216cf16fa5bf5258d93fb03dee8e310b5f412f88","after":"c0b25720f43ab3849b352c9c58dfda928008f793","ref":"refs/heads/main","pushedAt":"2023-06-03T20:26:08.718Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"README.md","shortMessageHtmlLink":"README.md"}},{"before":"9c56906b1920e1c88a22cd9b4ed83b201e768c35","after":"216cf16fa5bf5258d93fb03dee8e310b5f412f88","ref":"refs/heads/main","pushedAt":"2023-06-02T21:36:02.516Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":" README.md","shortMessageHtmlLink":" README.md"}},{"before":"8e13a9f614f68dcb8fbc66b32548c46c63b97a52","after":"9c56906b1920e1c88a22cd9b4ed83b201e768c35","ref":"refs/heads/main","pushedAt":"2023-06-02T21:35:48.631Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"README.md","shortMessageHtmlLink":"README.md"}},{"before":"43ea0e2356ce5a9048ecca9604da362d61c62e77","after":"8e13a9f614f68dcb8fbc66b32548c46c63b97a52","ref":"refs/heads/main","pushedAt":"2023-06-02T21:34:54.909Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"README.md","shortMessageHtmlLink":"README.md"}},{"before":"e6f22175c4bd336f96a60230b7a47922a5326637","after":"43ea0e2356ce5a9048ecca9604da362d61c62e77","ref":"refs/heads/main","pushedAt":"2023-06-02T15:10:53.709Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"Basic Scheduling Application in C++ OOP Polymorphism\n\nProblem Statement: Consider a calendar management application that can track events (e.g. course lecture, workshop, seminar, recruitment drive, etc.). Every event has a title and date. Some events are recurring events that repeat based upon frequency (such as daily meeting, weekly lecture, etc). The goal is to handle and find occurrence dates of such recurring events using inheritance and polymorphism. The class definitions of Date, Event and RecurringEvent are given to you. You need to work out DailyEvent, WeeklyEvent and MonthlyEvent class definitions as well as proper implementation of necessary functions in order to satisfy the given main and achieve the output as illustrated below.\r\nclass Date \r\n{ \r\n protected: \r\n int year; \r\n int month; \r\n int day; \r\n public: \r\n Date (int,int,int); \r\n void addDay(int); \r\n void addMonth(int); \r\n void addYear(int); \r\n void print(); \r\n};\r\nclass Event \r\n{ \r\n protected: \r\n string title; \r\n Date date; \r\n public: \r\n Event(string,const Date&); \r\n virtual void print(); \r\n}; \r\nclass RecurringEvent : public Event \r\n{ \r\n public: \r\n RecurringEvent(string,const Date&); virtual Event** occurrences(int) = 0; };\r\n\r\nint main(){ \r\n RecurringEvent** rec = new RecurringEvent*[3]; \r\n rec[0] = new DailyEvent(\"client meeting\",Date(2022,06,08)); \r\n rec[1] = new WeeklyEvent(\"lecture\",Date(2022,06,08)); \r\n rec[2] = new MonthlyEvent(\"project monitoring\",Date(2022,06,08)); \r\n for (int i=0; i < 3; i++){ \r\n Event** occurr = rec[i]->occurrences(3); \r\n for(int j=0; j < 3; j++){ \r\n occurr[j]->print(); \r\n cout << endl; \r\n } \r\n } \r\n // … \r\n return 0; \r\n}\r\nOutput: \r\nclient meeting: 2022-06-08; client meeting: 2022-06-09; client meeting: 2022-06-10 lecture: 2022-06-08; lecture: 2022-06-15; lecture: 2022-06-22 \r\nproject monitoring: 2022-06-08; project monitoring: 2022-07-08; project monitoring: 2022-08-08;","shortMessageHtmlLink":"Basic Scheduling Application in C++ OOP Polymorphism"}},{"before":"7475451882d423edee5fe425b5896e6ae9af3aa1","after":"e6f22175c4bd336f96a60230b7a47922a5326637","ref":"refs/heads/main","pushedAt":"2023-05-20T20:04:41.549Z","pushType":"push","commitsCount":1,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"ISP Package Suggestion Program in OOP C++\n\nThe goal in this problem is to write classes and a main program to simulate different pricing plans for an internet service provider. This exercise concentrates on using inheritance and polymorphic methods (virtual functions). Suppose you work in the marketing department of the Baltimore On-Line (BOL) service provider. You want to determine which payment planis better for different customers. The types of plans include the Customer,Hacker,and Chat-Room plans:\r\nTable 1:Different ISP Plans\r\n=>1. Customer\r\nInitial Hours: 4\r\nInitial Cost:10$\r\nAdditional Rate(dollar/hr):4.00\r\nDisk Space Limit(MB):1\r\nCharges Per Connection: None\r\n=>2. Hacker\r\nInitial Hours: 10\r\nInitial Cost:20$\r\nAdditional Rate(dollar/hr):2.50\r\nDisk Space Limit(MB):50\r\nCharges Per Connection: None\r\n=>3. ChatRoom:\r\nInitial Hours: unlimited\r\nInitial Cost:50$\r\nAdditional Rate(dollar/hr):none\r\nDisk Space Limit(MB):unlimited\r\nCharges Per Connection:0.10\r\n\r\nIn the Customer plan, customers get 4 hours of connection time a month for $10.00 and pay a fixed rate of $4.00 an hour for access time over 4 hours. The Hacker plan is designed so that customers who spend more time on-line save money by paying a higher monthly fee of $20.00 for the first ten hours,and $2.50 an hour after that. ChatRoom plan members pay $50.00 for unlimited monthly access and also pay an additional charge of 10 cents for each time they dialup.\r\nWrite class definitions for Customer and for the derived sub-classes Hacker,and ChatRoom. Customer should contain data members common to all customers, like the number of hours connected for a month, the customer's name, the amount of disk space the customer requires and so on. Also implement a method for computing a bill, computeBill( ) which uses the appropriate algorithm and data members to compute a monthly charge for each type of customer. In all classes be sure to also include any constructors and other methods that you think are needed. The derived classes should contain any data members and initializations specific to it's payment plan, and a specific implemenation for the computeBillO method which overrides the default method from the Customer class. Demonstrate programmatically which plan is better for the following customers:\r\nJohn Dough, a customer spending 6 hours on-line per month who dials-up 35 times and does not host any web pages (uses zero megabytes of disk space).\r\n·Jane Doe, a customer who spends 18 hours on-line per month, who dials-up 75 times and hosts 30 megabytes of web pages and images. (Note: Customer is not a valid option be-cause of the 1 MB Disk space limit).\r\n·Javiar Dinero, a customer who spends 48 hours on-line per month, who dials-up 90 times, and who hosts 10 megabytes of web pages. (Note: Customer is not a valid option because of the 1 MB Disk space limit).","shortMessageHtmlLink":"ISP Package Suggestion Program in OOP C++"}},{"before":null,"after":"7475451882d423edee5fe425b5896e6ae9af3aa1","ref":"refs/heads/main","pushedAt":"2023-05-20T19:47:31.591Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"SyedAbdullahh","name":"Syed Abdullah Hassan","path":"/SyedAbdullahh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/103010202?s=80&v=4"},"commit":{"message":"Garments Shop in C++ OOP\n\nCreate the classes as shown below, with the indicated functions and attributes for a shopping cart. \r\nAbstract Base Class Garment with function getname and virtual method calculateprice and a char* name;\r\nCreate an Abstract Class Upper Inherited from Base Class Garment with data member collarsize and member function getcollarsize,\r\n\r\nCreate an Abstract Class Lower inherited from Garment class with data member waist and member function getwaistsize\r\n\r\nCreate Class Shirt Inherited from Upper and override calculate price function as per formula listed below. \r\nCreate Pajama and Trouser classes both inherited from Lower and override Function as per formulas listed below.\r\n\r\nRequirements: \r\n⮚ The price is calculated as under, \r\n• Shirt Price = collar_size*20 + 10; \r\n• Pajama price = waist*15 + 50; \r\n• Trouser price = waist*20 + 100; \r\n• Collar size of shirt = collar_size of upper-1; \r\n• Waist of pajama = waist – 2; \r\n• Waist of trouser = waist – 3; \r\nIn main(), provide a menu through which user is allowed to add at most 10 items for his\\her shopping cart. The user may also remove any item before the final payment is made. (This may be implanted using an array of size 10). \r\nThe main menu may have the following options, \r\n• Add an item to shopping cart, \r\nWhen this option is selected, the user is shown the list of the available items and is allowed to select one at a time. (at most 10) \r\n• Remove an item from the cart, \r\nWhen this option is selected, the user is shown the list of selected items and is allowed to droop on at a time. \r\n• Make the payment, \r\nWhen this option is selected, the user is shown total bill and the program exits, “thank you for shopping at our store","shortMessageHtmlLink":"Garments Shop in C++ OOP"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADOzY6eQA","startCursor":null,"endCursor":null}},"title":"Activity · SyedAbdullahh/C-OOP"}