SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
CMPE 101: Object Oriented Programming Worksheet 2D Istanbul Bilgi University Spring 2023
Part I (s0 point) Create two integer variables: x and y. Print if those variables are in following
conditions: x[4,17] y(2,26) - x,y(6,23) and y>x Part II (30 point) Create an integer value and print
the representative String value of the agreeunent scale by using switch-ease operation. Ex. 1
Strongly dikagree, 2 Disagree, 3 Neutral ete. Part III (40 point) Print all integer mumbers between
the ranges given in Part I. For the last condition set y a constant value. Note: Do not forget to
justify your answers with comments.

Weitere ähnliche Inhalte

Mehr von aggarwalcollection1

Compare las conferas con las plantas con flores completando.pdf
Compare las conferas con las plantas con flores completando.pdfCompare las conferas con las plantas con flores completando.pdf
Compare las conferas con las plantas con flores completando.pdfaggarwalcollection1
 
Compare and contrast meningitis caused by S agalactiae and .pdf
Compare and contrast meningitis caused by S agalactiae and .pdfCompare and contrast meningitis caused by S agalactiae and .pdf
Compare and contrast meningitis caused by S agalactiae and .pdfaggarwalcollection1
 
Compare human and Gut bacteria E coli the two species gl.pdf
Compare human and Gut bacteria E coli  the two species gl.pdfCompare human and Gut bacteria E coli  the two species gl.pdf
Compare human and Gut bacteria E coli the two species gl.pdfaggarwalcollection1
 
Compare and contrast chemiosmosis in mitochondria and chloro.pdf
Compare and contrast chemiosmosis in mitochondria and chloro.pdfCompare and contrast chemiosmosis in mitochondria and chloro.pdf
Compare and contrast chemiosmosis in mitochondria and chloro.pdfaggarwalcollection1
 
Combined Response I At first glance the specific immune sy.pdf
Combined Response I At first glance the specific immune sy.pdfCombined Response I At first glance the specific immune sy.pdf
Combined Response I At first glance the specific immune sy.pdfaggarwalcollection1
 
Companies need to protect their internal resources Protecti.pdf
Companies need to protect their internal resources Protecti.pdfCompanies need to protect their internal resources Protecti.pdf
Companies need to protect their internal resources Protecti.pdfaggarwalcollection1
 
COMP 2111 Assignment 3 1 What is the minimum number of entr.pdf
COMP 2111 Assignment 3 1 What is the minimum number of entr.pdfCOMP 2111 Assignment 3 1 What is the minimum number of entr.pdf
COMP 2111 Assignment 3 1 What is the minimum number of entr.pdfaggarwalcollection1
 
COLLAPSE Research the ofstream cite your sources Which Hea.pdf
COLLAPSE Research the ofstream cite your sources Which Hea.pdfCOLLAPSE Research the ofstream cite your sources Which Hea.pdf
COLLAPSE Research the ofstream cite your sources Which Hea.pdfaggarwalcollection1
 
Companies have used stealth marketing for almost two decades.pdf
Companies have used stealth marketing for almost two decades.pdfCompanies have used stealth marketing for almost two decades.pdf
Companies have used stealth marketing for almost two decades.pdfaggarwalcollection1
 
Common stock value Constant growth Use the constantgrowth .pdf
Common stock value Constant growth  Use the constantgrowth .pdfCommon stock value Constant growth  Use the constantgrowth .pdf
Common stock value Constant growth Use the constantgrowth .pdfaggarwalcollection1
 
Clostridium difficile has become a concerning problem in the.pdf
Clostridium difficile has become a concerning problem in the.pdfClostridium difficile has become a concerning problem in the.pdf
Clostridium difficile has become a concerning problem in the.pdfaggarwalcollection1
 
Como director de proyecto de la construccin de un nuevo hot.pdf
Como director de proyecto de la construccin de un nuevo hot.pdfComo director de proyecto de la construccin de un nuevo hot.pdf
Como director de proyecto de la construccin de un nuevo hot.pdfaggarwalcollection1
 
Como epidemiloga que trabaja para la Organizacin Mundial d.pdf
Como epidemiloga que trabaja para la Organizacin Mundial d.pdfComo epidemiloga que trabaja para la Organizacin Mundial d.pdf
Como epidemiloga que trabaja para la Organizacin Mundial d.pdfaggarwalcollection1
 
Common stock valueVariable growth Lawrence Industries most .pdf
Common stock valueVariable growth Lawrence Industries most .pdfCommon stock valueVariable growth Lawrence Industries most .pdf
Common stock valueVariable growth Lawrence Industries most .pdfaggarwalcollection1
 
Commonly traded organizational currencies to benefit one ano.pdf
Commonly traded organizational currencies to benefit one ano.pdfCommonly traded organizational currencies to benefit one ano.pdf
Commonly traded organizational currencies to benefit one ano.pdfaggarwalcollection1
 
Comide the follswing function fZA2fx2x+3 Which of the f.pdf
Comide the follswing function fZA2fx2x+3 Which of the f.pdfComide the follswing function fZA2fx2x+3 Which of the f.pdf
Comide the follswing function fZA2fx2x+3 Which of the f.pdfaggarwalcollection1
 
Comience con una descripcin de la oviparidad y la viviparid.pdf
Comience con una descripcin de la oviparidad y la viviparid.pdfComience con una descripcin de la oviparidad y la viviparid.pdf
Comience con una descripcin de la oviparidad y la viviparid.pdfaggarwalcollection1
 
Common property resources like fish stocks in open waters te.pdf
Common property resources like fish stocks in open waters te.pdfCommon property resources like fish stocks in open waters te.pdf
Common property resources like fish stocks in open waters te.pdfaggarwalcollection1
 
CMW Cola is a large mature firm with total assets of 50 bil.pdf
CMW Cola is a large mature firm with total assets of 50 bil.pdfCMW Cola is a large mature firm with total assets of 50 bil.pdf
CMW Cola is a large mature firm with total assets of 50 bil.pdfaggarwalcollection1
 
Coat color and spotting pattern in the Cocker Spaniel depend.pdf
Coat color and spotting pattern in the Cocker Spaniel depend.pdfCoat color and spotting pattern in the Cocker Spaniel depend.pdf
Coat color and spotting pattern in the Cocker Spaniel depend.pdfaggarwalcollection1
 

Mehr von aggarwalcollection1 (20)

Compare las conferas con las plantas con flores completando.pdf
Compare las conferas con las plantas con flores completando.pdfCompare las conferas con las plantas con flores completando.pdf
Compare las conferas con las plantas con flores completando.pdf
 
Compare and contrast meningitis caused by S agalactiae and .pdf
Compare and contrast meningitis caused by S agalactiae and .pdfCompare and contrast meningitis caused by S agalactiae and .pdf
Compare and contrast meningitis caused by S agalactiae and .pdf
 
Compare human and Gut bacteria E coli the two species gl.pdf
Compare human and Gut bacteria E coli  the two species gl.pdfCompare human and Gut bacteria E coli  the two species gl.pdf
Compare human and Gut bacteria E coli the two species gl.pdf
 
Compare and contrast chemiosmosis in mitochondria and chloro.pdf
Compare and contrast chemiosmosis in mitochondria and chloro.pdfCompare and contrast chemiosmosis in mitochondria and chloro.pdf
Compare and contrast chemiosmosis in mitochondria and chloro.pdf
 
Combined Response I At first glance the specific immune sy.pdf
Combined Response I At first glance the specific immune sy.pdfCombined Response I At first glance the specific immune sy.pdf
Combined Response I At first glance the specific immune sy.pdf
 
Companies need to protect their internal resources Protecti.pdf
Companies need to protect their internal resources Protecti.pdfCompanies need to protect their internal resources Protecti.pdf
Companies need to protect their internal resources Protecti.pdf
 
COMP 2111 Assignment 3 1 What is the minimum number of entr.pdf
COMP 2111 Assignment 3 1 What is the minimum number of entr.pdfCOMP 2111 Assignment 3 1 What is the minimum number of entr.pdf
COMP 2111 Assignment 3 1 What is the minimum number of entr.pdf
 
COLLAPSE Research the ofstream cite your sources Which Hea.pdf
COLLAPSE Research the ofstream cite your sources Which Hea.pdfCOLLAPSE Research the ofstream cite your sources Which Hea.pdf
COLLAPSE Research the ofstream cite your sources Which Hea.pdf
 
Companies have used stealth marketing for almost two decades.pdf
Companies have used stealth marketing for almost two decades.pdfCompanies have used stealth marketing for almost two decades.pdf
Companies have used stealth marketing for almost two decades.pdf
 
Common stock value Constant growth Use the constantgrowth .pdf
Common stock value Constant growth  Use the constantgrowth .pdfCommon stock value Constant growth  Use the constantgrowth .pdf
Common stock value Constant growth Use the constantgrowth .pdf
 
Clostridium difficile has become a concerning problem in the.pdf
Clostridium difficile has become a concerning problem in the.pdfClostridium difficile has become a concerning problem in the.pdf
Clostridium difficile has become a concerning problem in the.pdf
 
Como director de proyecto de la construccin de un nuevo hot.pdf
Como director de proyecto de la construccin de un nuevo hot.pdfComo director de proyecto de la construccin de un nuevo hot.pdf
Como director de proyecto de la construccin de un nuevo hot.pdf
 
Como epidemiloga que trabaja para la Organizacin Mundial d.pdf
Como epidemiloga que trabaja para la Organizacin Mundial d.pdfComo epidemiloga que trabaja para la Organizacin Mundial d.pdf
Como epidemiloga que trabaja para la Organizacin Mundial d.pdf
 
Common stock valueVariable growth Lawrence Industries most .pdf
Common stock valueVariable growth Lawrence Industries most .pdfCommon stock valueVariable growth Lawrence Industries most .pdf
Common stock valueVariable growth Lawrence Industries most .pdf
 
Commonly traded organizational currencies to benefit one ano.pdf
Commonly traded organizational currencies to benefit one ano.pdfCommonly traded organizational currencies to benefit one ano.pdf
Commonly traded organizational currencies to benefit one ano.pdf
 
Comide the follswing function fZA2fx2x+3 Which of the f.pdf
Comide the follswing function fZA2fx2x+3 Which of the f.pdfComide the follswing function fZA2fx2x+3 Which of the f.pdf
Comide the follswing function fZA2fx2x+3 Which of the f.pdf
 
Comience con una descripcin de la oviparidad y la viviparid.pdf
Comience con una descripcin de la oviparidad y la viviparid.pdfComience con una descripcin de la oviparidad y la viviparid.pdf
Comience con una descripcin de la oviparidad y la viviparid.pdf
 
Common property resources like fish stocks in open waters te.pdf
Common property resources like fish stocks in open waters te.pdfCommon property resources like fish stocks in open waters te.pdf
Common property resources like fish stocks in open waters te.pdf
 
CMW Cola is a large mature firm with total assets of 50 bil.pdf
CMW Cola is a large mature firm with total assets of 50 bil.pdfCMW Cola is a large mature firm with total assets of 50 bil.pdf
CMW Cola is a large mature firm with total assets of 50 bil.pdf
 
Coat color and spotting pattern in the Cocker Spaniel depend.pdf
Coat color and spotting pattern in the Cocker Spaniel depend.pdfCoat color and spotting pattern in the Cocker Spaniel depend.pdf
Coat color and spotting pattern in the Cocker Spaniel depend.pdf
 

Kürzlich hochgeladen

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 

Kürzlich hochgeladen (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 

CMPE 101 Object Oriented Programming Worksheet 2D Istanbul .pdf

  • 1. CMPE 101: Object Oriented Programming Worksheet 2D Istanbul Bilgi University Spring 2023 Part I (s0 point) Create two integer variables: x and y. Print if those variables are in following conditions: x[4,17] y(2,26) - x,y(6,23) and y>x Part II (30 point) Create an integer value and print the representative String value of the agreeunent scale by using switch-ease operation. Ex. 1 Strongly dikagree, 2 Disagree, 3 Neutral ete. Part III (40 point) Print all integer mumbers between the ranges given in Part I. For the last condition set y a constant value. Note: Do not forget to justify your answers with comments.