SlideShare a Scribd company logo
) Code the following class. Hopefully the method names clearly imply the specific purpose of
each. Note that – indicates private and + is public
(Rectangle)
- xCoordinate : int
- yCoordinate : int
- height:int
- width:int
- color:string
+ Rectangle(x:int,y:int,h:int,w:int)
+ setHeight(h:int): void
+ setWidth(w:int): void
+ setColor(c:string): void
+ setXCoordinate(new X:int): void
+ setYCoordinate(new Y:int): void
+getHeight():int
+getWidth():int
+getColor():string
+getXCoordinate():int
+getYCoordinate():int
.
(Rectangle)
- xCoordinate : int
- yCoordinate : int
- height:int
- width:int
- color:string
+ Rectangle(x:int,y:int,h:int,w:int)
+ setHeight(h:int): void
+ setWidth(w:int): void
+ setColor(c:string): void
+ setXCoordinate(new X:int): void
+ setYCoordinate(new Y:int): void
+getHeight():int
+getWidth():int
+getColor():string
+getXCoordinate():int
+getYCoordinate():int
Solution
Rectangle.cpp
#include
using namespace std;
class Rectangle{
private:
int xCoordinate;
int yCoordinate;
int height;
int width;
string color;
public:
Rectangle(int x,int y,int h,int w){
height =h;
width = w;
xCoordinate = x;
yCoordinate = y;
}
void setHeight(int h){
height = h;
}
void setWidth(int w){
width = w;
}
void setColor(string c){
color = c;
}
void setXCoordinate(int X){
xCoordinate = X;
}
void setYCoordinate(int Y){
yCoordinate = Y;
}
int getHeight(){
return height;
}
int getWidth(){
return width;
}
string getColor(){
return color;
}
int getXCoordinate(){
return xCoordinate;
}
int getYCoordinate(){
return yCoordinate;
}
};
int main()
{
return 0;
}

More Related Content

Similar to ) Code the following class. Hopefully the method names clearly imply.pdf

Midterm sols
Midterm solsMidterm sols
Midterm sols
Robert Edwards
 
4.5 tan and cot.ppt worked
4.5   tan and cot.ppt worked4.5   tan and cot.ppt worked
4.5 tan and cot.ppt worked
Jonna Ramsey
 
Introduction to Treewidth
Introduction to TreewidthIntroduction to Treewidth
Introduction to Treewidth
ASPAK2014
 
Quadraticapplications.ppt
Quadraticapplications.pptQuadraticapplications.ppt
Quadraticapplications.ppt
Department of Education
 
An Introduction to Coding Theory
An Introduction to Coding TheoryAn Introduction to Coding Theory
An Introduction to Coding Theory
AlexanderWei11
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
shahid sultan
 
Make two classes called Points and Lines- Class points should have the.docx
Make two classes called Points and Lines- Class points should have the.docxMake two classes called Points and Lines- Class points should have the.docx
Make two classes called Points and Lines- Class points should have the.docx
sngyun4t79
 
Explanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expertExplanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expert
홍배 김
 
Basics of Computer graphics lab
Basics of Computer graphics labBasics of Computer graphics lab
Basics of Computer graphics lab
Priya Goyal
 
Lectures r-graphics
Lectures r-graphicsLectures r-graphics
Lectures r-graphics
etyca
 
Please use the following UML diagram and main.cpp to complete the c.pdf
Please use the following UML diagram and main.cpp to complete the c.pdfPlease use the following UML diagram and main.cpp to complete the c.pdf
Please use the following UML diagram and main.cpp to complete the c.pdf
mohammedfootwear
 
RSA SIGNATURE: BEHIND THE SCENES
RSA SIGNATURE: BEHIND THE SCENESRSA SIGNATURE: BEHIND THE SCENES
RSA SIGNATURE: BEHIND THE SCENES
acijjournal
 
Programming with matlab session 6
Programming with matlab session 6Programming with matlab session 6
Programming with matlab session 6
Infinity Tech Solutions
 
Coding theory.pdf
Coding theory.pdfCoding theory.pdf
Coding theory.pdf
230231060
 
ImplementDijkstra’s algorithm using the graph class you implemente.pdf
ImplementDijkstra’s algorithm using the graph class you implemente.pdfImplementDijkstra’s algorithm using the graph class you implemente.pdf
ImplementDijkstra’s algorithm using the graph class you implemente.pdf
gopalk44
 
HTML5 Canvas - Basics.pptx
HTML5 Canvas - Basics.pptxHTML5 Canvas - Basics.pptx
HTML5 Canvas - Basics.pptx
AhmadAbba6
 
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
Advanced-Concepts-Team
 
1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf
jeeteshmalani1
 
(2015 06-16) Three Approaches to Monads
(2015 06-16) Three Approaches to Monads(2015 06-16) Three Approaches to Monads
(2015 06-16) Three Approaches to Monads
Lawrence Evans
 
Linear block coding
Linear block codingLinear block coding
Linear block coding
jknm
 

Similar to ) Code the following class. Hopefully the method names clearly imply.pdf (20)

Midterm sols
Midterm solsMidterm sols
Midterm sols
 
4.5 tan and cot.ppt worked
4.5   tan and cot.ppt worked4.5   tan and cot.ppt worked
4.5 tan and cot.ppt worked
 
Introduction to Treewidth
Introduction to TreewidthIntroduction to Treewidth
Introduction to Treewidth
 
Quadraticapplications.ppt
Quadraticapplications.pptQuadraticapplications.ppt
Quadraticapplications.ppt
 
An Introduction to Coding Theory
An Introduction to Coding TheoryAn Introduction to Coding Theory
An Introduction to Coding Theory
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Make two classes called Points and Lines- Class points should have the.docx
Make two classes called Points and Lines- Class points should have the.docxMake two classes called Points and Lines- Class points should have the.docx
Make two classes called Points and Lines- Class points should have the.docx
 
Explanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expertExplanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expert
 
Basics of Computer graphics lab
Basics of Computer graphics labBasics of Computer graphics lab
Basics of Computer graphics lab
 
Lectures r-graphics
Lectures r-graphicsLectures r-graphics
Lectures r-graphics
 
Please use the following UML diagram and main.cpp to complete the c.pdf
Please use the following UML diagram and main.cpp to complete the c.pdfPlease use the following UML diagram and main.cpp to complete the c.pdf
Please use the following UML diagram and main.cpp to complete the c.pdf
 
RSA SIGNATURE: BEHIND THE SCENES
RSA SIGNATURE: BEHIND THE SCENESRSA SIGNATURE: BEHIND THE SCENES
RSA SIGNATURE: BEHIND THE SCENES
 
Programming with matlab session 6
Programming with matlab session 6Programming with matlab session 6
Programming with matlab session 6
 
Coding theory.pdf
Coding theory.pdfCoding theory.pdf
Coding theory.pdf
 
ImplementDijkstra’s algorithm using the graph class you implemente.pdf
ImplementDijkstra’s algorithm using the graph class you implemente.pdfImplementDijkstra’s algorithm using the graph class you implemente.pdf
ImplementDijkstra’s algorithm using the graph class you implemente.pdf
 
HTML5 Canvas - Basics.pptx
HTML5 Canvas - Basics.pptxHTML5 Canvas - Basics.pptx
HTML5 Canvas - Basics.pptx
 
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
 
1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf
 
(2015 06-16) Three Approaches to Monads
(2015 06-16) Three Approaches to Monads(2015 06-16) Three Approaches to Monads
(2015 06-16) Three Approaches to Monads
 
Linear block coding
Linear block codingLinear block coding
Linear block coding
 

More from arsmobiles

For each NADH that supplies electrons to the electron transport syst.pdf
For each NADH that supplies electrons to the electron transport syst.pdfFor each NADH that supplies electrons to the electron transport syst.pdf
For each NADH that supplies electrons to the electron transport syst.pdf
arsmobiles
 
Biology II . Please answer all of these questions only if you are su.pdf
Biology II . Please answer all of these questions only if you are su.pdfBiology II . Please answer all of these questions only if you are su.pdf
Biology II . Please answer all of these questions only if you are su.pdf
arsmobiles
 
During spermatogenesis in the seminiferous tubules, the position of .pdf
During spermatogenesis in the seminiferous tubules, the position of .pdfDuring spermatogenesis in the seminiferous tubules, the position of .pdf
During spermatogenesis in the seminiferous tubules, the position of .pdf
arsmobiles
 
A model of a system is best characterized by the following statement.pdf
A model of a system is best characterized by the following statement.pdfA model of a system is best characterized by the following statement.pdf
A model of a system is best characterized by the following statement.pdf
arsmobiles
 
4- what is the link between asset diversification and the liquidit.pdf
4- what is the link between asset diversification and the liquidit.pdf4- what is the link between asset diversification and the liquidit.pdf
4- what is the link between asset diversification and the liquidit.pdf
arsmobiles
 
A book by Nozick. The experience machine. “what does matter to us in.pdf
A book by Nozick. The experience machine. “what does matter to us in.pdfA book by Nozick. The experience machine. “what does matter to us in.pdf
A book by Nozick. The experience machine. “what does matter to us in.pdf
arsmobiles
 
any one has knowladge in C unix opreating system .. please help Desc.pdf
any one has knowladge in C unix opreating system .. please help Desc.pdfany one has knowladge in C unix opreating system .. please help Desc.pdf
any one has knowladge in C unix opreating system .. please help Desc.pdf
arsmobiles
 
A common symptom of pharyngitis is swelling of the. interior cervical.pdf
A common symptom of pharyngitis is swelling of the. interior cervical.pdfA common symptom of pharyngitis is swelling of the. interior cervical.pdf
A common symptom of pharyngitis is swelling of the. interior cervical.pdf
arsmobiles
 
Define nonconcordant variation Why does nonconcordant variation mak.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdfDefine nonconcordant variation Why does nonconcordant variation mak.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdf
arsmobiles
 
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdfDescribe the operation of a tubular bowl centrifugeSolutionTub.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
arsmobiles
 
Could you help me with this question Thanks so much!Let T be an e.pdf
Could you help me with this question Thanks so much!Let T be an e.pdfCould you help me with this question Thanks so much!Let T be an e.pdf
Could you help me with this question Thanks so much!Let T be an e.pdf
arsmobiles
 
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdfBriefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
arsmobiles
 
List for a company you either work or are familiar with, the interna.pdf
List for a company you either work or are familiar with, the interna.pdfList for a company you either work or are familiar with, the interna.pdf
List for a company you either work or are familiar with, the interna.pdf
arsmobiles
 
Write a C program that uses a recursive function to print a triangle .pdf
Write a C program that uses a recursive function to print a triangle .pdfWrite a C program that uses a recursive function to print a triangle .pdf
Write a C program that uses a recursive function to print a triangle .pdf
arsmobiles
 
Which avenue of research is least likely to reveal whether asexual or.pdf
Which avenue of research is least likely to reveal whether asexual or.pdfWhich avenue of research is least likely to reveal whether asexual or.pdf
Which avenue of research is least likely to reveal whether asexual or.pdf
arsmobiles
 
When testing the difference between two population means, the varian.pdf
When testing the difference between two population means, the varian.pdfWhen testing the difference between two population means, the varian.pdf
When testing the difference between two population means, the varian.pdf
arsmobiles
 
IT Project Management1. Please compare and contrast a traditional .pdf
IT Project Management1. Please compare and contrast a traditional .pdfIT Project Management1. Please compare and contrast a traditional .pdf
IT Project Management1. Please compare and contrast a traditional .pdf
arsmobiles
 
Whats the relationship between DNA and RNA Whats the relat.pdf
Whats the relationship between DNA and RNA Whats the relat.pdfWhats the relationship between DNA and RNA Whats the relat.pdf
Whats the relationship between DNA and RNA Whats the relat.pdf
arsmobiles
 
What does it mean to destroy something at the molecular level in ter.pdf
What does it mean to destroy something at the molecular level in ter.pdfWhat does it mean to destroy something at the molecular level in ter.pdf
What does it mean to destroy something at the molecular level in ter.pdf
arsmobiles
 
What is a rain shadow, and why does it happenSolutionThe warm.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdfWhat is a rain shadow, and why does it happenSolutionThe warm.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdf
arsmobiles
 

More from arsmobiles (20)

For each NADH that supplies electrons to the electron transport syst.pdf
For each NADH that supplies electrons to the electron transport syst.pdfFor each NADH that supplies electrons to the electron transport syst.pdf
For each NADH that supplies electrons to the electron transport syst.pdf
 
Biology II . Please answer all of these questions only if you are su.pdf
Biology II . Please answer all of these questions only if you are su.pdfBiology II . Please answer all of these questions only if you are su.pdf
Biology II . Please answer all of these questions only if you are su.pdf
 
During spermatogenesis in the seminiferous tubules, the position of .pdf
During spermatogenesis in the seminiferous tubules, the position of .pdfDuring spermatogenesis in the seminiferous tubules, the position of .pdf
During spermatogenesis in the seminiferous tubules, the position of .pdf
 
A model of a system is best characterized by the following statement.pdf
A model of a system is best characterized by the following statement.pdfA model of a system is best characterized by the following statement.pdf
A model of a system is best characterized by the following statement.pdf
 
4- what is the link between asset diversification and the liquidit.pdf
4- what is the link between asset diversification and the liquidit.pdf4- what is the link between asset diversification and the liquidit.pdf
4- what is the link between asset diversification and the liquidit.pdf
 
A book by Nozick. The experience machine. “what does matter to us in.pdf
A book by Nozick. The experience machine. “what does matter to us in.pdfA book by Nozick. The experience machine. “what does matter to us in.pdf
A book by Nozick. The experience machine. “what does matter to us in.pdf
 
any one has knowladge in C unix opreating system .. please help Desc.pdf
any one has knowladge in C unix opreating system .. please help Desc.pdfany one has knowladge in C unix opreating system .. please help Desc.pdf
any one has knowladge in C unix opreating system .. please help Desc.pdf
 
A common symptom of pharyngitis is swelling of the. interior cervical.pdf
A common symptom of pharyngitis is swelling of the. interior cervical.pdfA common symptom of pharyngitis is swelling of the. interior cervical.pdf
A common symptom of pharyngitis is swelling of the. interior cervical.pdf
 
Define nonconcordant variation Why does nonconcordant variation mak.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdfDefine nonconcordant variation Why does nonconcordant variation mak.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdf
 
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdfDescribe the operation of a tubular bowl centrifugeSolutionTub.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
 
Could you help me with this question Thanks so much!Let T be an e.pdf
Could you help me with this question Thanks so much!Let T be an e.pdfCould you help me with this question Thanks so much!Let T be an e.pdf
Could you help me with this question Thanks so much!Let T be an e.pdf
 
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdfBriefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
 
List for a company you either work or are familiar with, the interna.pdf
List for a company you either work or are familiar with, the interna.pdfList for a company you either work or are familiar with, the interna.pdf
List for a company you either work or are familiar with, the interna.pdf
 
Write a C program that uses a recursive function to print a triangle .pdf
Write a C program that uses a recursive function to print a triangle .pdfWrite a C program that uses a recursive function to print a triangle .pdf
Write a C program that uses a recursive function to print a triangle .pdf
 
Which avenue of research is least likely to reveal whether asexual or.pdf
Which avenue of research is least likely to reveal whether asexual or.pdfWhich avenue of research is least likely to reveal whether asexual or.pdf
Which avenue of research is least likely to reveal whether asexual or.pdf
 
When testing the difference between two population means, the varian.pdf
When testing the difference between two population means, the varian.pdfWhen testing the difference between two population means, the varian.pdf
When testing the difference between two population means, the varian.pdf
 
IT Project Management1. Please compare and contrast a traditional .pdf
IT Project Management1. Please compare and contrast a traditional .pdfIT Project Management1. Please compare and contrast a traditional .pdf
IT Project Management1. Please compare and contrast a traditional .pdf
 
Whats the relationship between DNA and RNA Whats the relat.pdf
Whats the relationship between DNA and RNA Whats the relat.pdfWhats the relationship between DNA and RNA Whats the relat.pdf
Whats the relationship between DNA and RNA Whats the relat.pdf
 
What does it mean to destroy something at the molecular level in ter.pdf
What does it mean to destroy something at the molecular level in ter.pdfWhat does it mean to destroy something at the molecular level in ter.pdf
What does it mean to destroy something at the molecular level in ter.pdf
 
What is a rain shadow, and why does it happenSolutionThe warm.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdfWhat is a rain shadow, and why does it happenSolutionThe warm.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdf
 

Recently uploaded

Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 

Recently uploaded (20)

Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 

) Code the following class. Hopefully the method names clearly imply.pdf

  • 1. ) Code the following class. Hopefully the method names clearly imply the specific purpose of each. Note that – indicates private and + is public (Rectangle) - xCoordinate : int - yCoordinate : int - height:int - width:int - color:string + Rectangle(x:int,y:int,h:int,w:int) + setHeight(h:int): void + setWidth(w:int): void + setColor(c:string): void + setXCoordinate(new X:int): void + setYCoordinate(new Y:int): void +getHeight():int +getWidth():int +getColor():string +getXCoordinate():int +getYCoordinate():int . (Rectangle) - xCoordinate : int - yCoordinate : int - height:int - width:int - color:string + Rectangle(x:int,y:int,h:int,w:int) + setHeight(h:int): void + setWidth(w:int): void + setColor(c:string): void + setXCoordinate(new X:int): void + setYCoordinate(new Y:int): void +getHeight():int +getWidth():int +getColor():string
  • 2. +getXCoordinate():int +getYCoordinate():int Solution Rectangle.cpp #include using namespace std; class Rectangle{ private: int xCoordinate; int yCoordinate; int height; int width; string color; public: Rectangle(int x,int y,int h,int w){ height =h; width = w; xCoordinate = x; yCoordinate = y; } void setHeight(int h){ height = h; } void setWidth(int w){ width = w; } void setColor(string c){ color = c; } void setXCoordinate(int X){ xCoordinate = X; } void setYCoordinate(int Y){ yCoordinate = Y;
  • 3. } int getHeight(){ return height; } int getWidth(){ return width; } string getColor(){ return color; } int getXCoordinate(){ return xCoordinate; } int getYCoordinate(){ return yCoordinate; } }; int main() { return 0; }