{"id":2604,"date":"2023-08-20T05:41:18","date_gmt":"2023-08-20T05:41:18","guid":{"rendered":"https:\/\/codeinsightacademy.com\/blog\/?p=2604"},"modified":"2023-08-20T08:42:36","modified_gmt":"2023-08-20T08:42:36","slug":"cpp-mini-project","status":"publish","type":"post","link":"https:\/\/codeinsightacademy.com\/blog\/cpp\/cpp-mini-project\/","title":{"rendered":"C++ Mini Project"},"content":{"rendered":"\n<h3>Problem Statement<\/h3>\n\n\n\n<p>Company&#8217;s board member requested admin to provide MIS report of all employees with total, average, min, max, minimum salaried employees, maximum salaried employees and department wise salary.<\/p>\n\n\n\n<p>You need to create a program for the same using following concepts of c++ programming language<\/p>\n\n\n\n<ul><li>Encapsulation<\/li><li>Abstraction<\/li><li>Inheritance<\/li><\/ul>\n\n\n\n<p>MVPs<\/p>\n\n\n\n<ul><li>P0<ol><li>Create a class Person with datamembers: name, age, city<\/li><li>Create a class Employee which will inherit features of Person class with it&#8217;s own datamembers: empid, department, salary<\/li><\/ol><\/li><li>P1<ol><li>Create array of 10 employees and print its data using for loop<\/li><\/ol><\/li><li>P2<ol><li>Find and Print Total Salary, Average Salary, Max Salary, Min Salary<\/li><\/ol><\/li><li>P3<ol><li>Create function getMaxSalEmps() to print employees having highest salary<\/li><li>Create function getMinSalEmps() to print all employees having minimum salary<\/li><\/ol><\/li><li>P4<ol><li>Create function getDeptWiseSalary() to print department wise total salary <\/li><\/ol><\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3>Sample Output<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2023\/08\/image-1.png\"><img loading=\"lazy\" width=\"887\" height=\"819\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2023\/08\/image-1.png\" alt=\"\" class=\"wp-image-2605\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Problem Statement Company&#8217;s board member requested admin to provide MIS report of all employees with total, average, min, max, minimum salaried employees, maximum salaried employees and department wise salary. You need to create a program for the same using following concepts of c++ programming language Encapsulation Abstraction Inheritance MVPs P0 Create a class Person with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2612,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[38],"tags":[],"_links":{"self":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2604"}],"collection":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/comments?post=2604"}],"version-history":[{"count":6,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2604\/revisions"}],"predecessor-version":[{"id":2615,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2604\/revisions\/2615"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media\/2612"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=2604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/categories?post=2604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/tags?post=2604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}