CS304P Assignment 2 Solution Spring 2023 CS304P Assignment No 2 Spring 2023

preview_player
Показать описание
Title:
CS304P Assignment 2 Solution Spring 2023 CS304P Assignment No 2 Spring 2023

Notice:
If You Learn Any Subject (Holy Quran, C++, Python, Java, Data Structure, HTML 5, CSS3, Bootstrap 5, JavaScript, PHP & MySQL) Online Then You Contact Me at +92 3472506073

How to Download Dev C++

CS304 Complete Short Lectures

Website
Khizar Shahal Technical

Hash Tags:
#CS304PAssignmentNo2Spring2023
#CS304P
#Assignment2
#Spring2023
#CS304PAssignmentSolution

Tags:
cs304P assignment 2 solution,cs304 assignment 2 solution2023,cs304P assignment 2 solution 2023,cs304p assignment 2 solution 2023,cs304P assignment 2 solution 2023,cs304 assignment no 2 solution 2023,cs304P assignment solution 2023,cs304P assignment 2 solution fall 2023,cs304P assignment no 2 solution 2023,cs304P assignment 2 solution spring 2023,cs304P assignment no 2 solution spring 2023,cs304 assignment no 2 solution spring 2023,cs304P assignment 2 spring2023,cs304P assignment 2,KST Learning

Other Playlist:
Virtual University Updates

C++ Projects:

C++ Lectures:

CS101 Short Lectures:

CS304 Short Lectures:

My Request:
Please Like, Share & Subscribe to My YouTube Channel

Social Links:
Website: Khizar Shahal Technical
Facebook: Khizar Mehar
Instagram: khizarmeharofficial
Whatsapp: 0347 2506073
Рекомендации по теме
Комментарии
Автор

Assalam o Alaikum
Complie krne pe 12, 67, 68 pe error a ra ha

AwaisRaza-cz
Автор

#include<iostream>
using namespace std;

class Hostel{
string name;
public:
Hostel(string name){
this->name = name;
}
string getName()const{
return this->name;
}
};
class Student{

string name;
int rollNumber;
public:
void setName(string name){
this->name = name;
}
void setRollNumber(int rollNumber){
this->rollNumber = rollNumber;
}
int getRollNumber()const{
return this->rollNumber;
}
string getName()const{
return this->name;
}

};

class Hostalized_student: public Student{
int Room_number;
int room_rent;
bool rent_status;
Hostel* hostel;
public:
Hostalized_student(int Room_number, int room_rent, bool rent_status, Hostel* hostel)
{
this->Room_number = Room_number;
this->room_rent = room_rent;
this->rent_status = rent_status;
this->hostel = hostel;
}

void display()const{
cout<<"Name of the student is: "<<getName()<<endl;
cout<<"Rollnumber of the student is: "<<getRollNumber()<<endl;
cout<<getName()<<":Staying
cout<<getName()<<":Staying in
cout<<"Room rent is :"<<room_rent<<endl;
}

void Pay_rent(){

if(rent_status == false){
cout<<"Rent of the current month not paid yet"<<endl;
//rent_status = false;
}

else{
cout<<"Rent of the current month has been Paid"<<endl;
}
}
};

int main()
{
Hostel h = Hostel("Star hostel");
Hostalized_student HS = Hostalized_student(1001, 6000, false, &h);
HS.setName("Your_name");
HS.setRollNumber(just VU ID numbers);
HS.display();
HS.Pay_rent();

return 0;
}

gulzaibhussain
Автор

Sir compile or run krne pr error to ni aya lakin output same ni he . Output me reverse order of inorder travsersal or oreorder and post order a ra he . Program bilkul theek likha he mene . Ab kia ho sakta ? Esa q he

Ammaradreamart
Автор

Sir CS 601 ke bhe bna dain assignment.

rajashahid
Автор

sir assignment ka result agaya h . sir 0 nmber aye h. sir aesa kue hoa shi output r vu ne jesa jesa kha wese hi code lkha phr bhi unho ne 0 nmber dye h. kindly sir rehnumai farmaye. aap hmare teacher h

shehzeen-lf
Автор

Aoa sir CS403 ki assignment no2 ka be solutions upload kr da plzzz

umairmumair
Автор

Sir run krny k bad upload kia krna h? Result ya wohi code?

ZubiiNiazi
Автор

Sir compile krny pr aa raha line 68 pr class hostalized_student has no member named Set_RollNumber or 69 line pr be ayse error aa raha

CuteGirl-fuho
join shbcf.ru