SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
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.

Más contenido relacionado

Más de 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
 

Más de 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
 

Último

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 

Último (20)

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 

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.