Build a CPP program with i. a class definition named Hostel with open access attributes block Name, omien AC/NonAc, Veg/

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Build a CPP program with i. a class definition named Hostel with open access attributes block Name, omien AC/NonAc, Veg/

Post by answerhappygod »

Build A Cpp Program With I A Class Definition Named Hostel With Open Access Attributes Block Name Omien Ac Nonac Veg 1
Build A Cpp Program With I A Class Definition Named Hostel With Open Access Attributes Block Name Omien Ac Nonac Veg 1 (39.05 KiB) Viewed 56 times
need ans urgent
thankyou very much
Build a CPP program with i. a class definition named Hostel with open access attributes block Name, omien AC/NonAc, Veg/Non Veg. Assume that students are already allocated with hostel details ii.detine another class named Student with hidden attributes regno, name, phuo, Hostel object, static data member named Total_Instances to keep track of number of students Create member functions named setStudentDetails and getStudent Details iii. develop a friend function named Find StudentsBasedOnBlock with necessary parameter(s) to find all students who belong to same block. In main method, create at least three student instances. Sample Input: [21BDS5001, Stud1, 9192939495, BlockA, 101. AC. Non Vegl. 121BCE6002. Stud2, 8182838485, BlockB. 202, AC, Veg), (21B1T7003, Stud3.7172737475. BlockA. 102. NonAC, NonVegl, BlockA Expected Output: 21BDS5001, 21BIT7003. 2 out of 3 students belong to BlockA
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply