SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Part I (30 point) Create two integer variables: x and y. Print if those variables are in following
conditions: x [7, 12] y (9, 23) x, y [8, 20) and x > y
Part II (30 point) Create an hour value (integer) and print the representative String value of the
period of the day by using switch-case operation. Ex. 9 Morning, 17 Afternoon etc.
Part III (40 point) Print all integer numbers between the ranges given in Part I. For the last condi
tion set y a constant value. Note: Do not forget to justify your answers with comments.

Weitere ähnliche Inhalte

Mehr von agarshail

Pequired information The kolowing information applies ro th.pdf
Pequired information The kolowing information applies ro th.pdfPequired information The kolowing information applies ro th.pdf
Pequired information The kolowing information applies ro th.pdfagarshail
 
Perca Rana y Cerdo 1 Por qu estos organismos requieren.pdf
Perca Rana y Cerdo  1 Por qu estos organismos requieren.pdfPerca Rana y Cerdo  1 Por qu estos organismos requieren.pdf
Perca Rana y Cerdo 1 Por qu estos organismos requieren.pdfagarshail
 
Perceptions of gender are affected by all of these attribute.pdf
Perceptions of gender are affected by all of these attribute.pdfPerceptions of gender are affected by all of these attribute.pdf
Perceptions of gender are affected by all of these attribute.pdfagarshail
 
Pedro Gonzales un hispano de 37 aos llega en ambulancia d.pdf
Pedro Gonzales un hispano de 37 aos llega en ambulancia d.pdfPedro Gonzales un hispano de 37 aos llega en ambulancia d.pdf
Pedro Gonzales un hispano de 37 aos llega en ambulancia d.pdfagarshail
 
Penny Inc uses process costing All direct materials are ad.pdf
Penny Inc uses process costing All direct materials are ad.pdfPenny Inc uses process costing All direct materials are ad.pdf
Penny Inc uses process costing All direct materials are ad.pdfagarshail
 
Part C Short Essay Questions 13 points Answer in the spa.pdf
Part C Short Essay Questions  13 points Answer in the spa.pdfPart C Short Essay Questions  13 points Answer in the spa.pdf
Part C Short Essay Questions 13 points Answer in the spa.pdfagarshail
 
Pazarlama yntemleri asndan tketicilere pazarlamay B2C .pdf
Pazarlama yntemleri asndan tketicilere pazarlamay B2C  .pdfPazarlama yntemleri asndan tketicilere pazarlamay B2C  .pdf
Pazarlama yntemleri asndan tketicilere pazarlamay B2C .pdfagarshail
 
Paula tiene 25 aos es soltera y gana 40000 al ao Paula.pdf
Paula tiene 25 aos es soltera y gana 40000 al ao Paula.pdfPaula tiene 25 aos es soltera y gana 40000 al ao Paula.pdf
Paula tiene 25 aos es soltera y gana 40000 al ao Paula.pdfagarshail
 
Paydirt Limestone Incorporated was organized several years .pdf
Paydirt Limestone Incorporated was organized several years .pdfPaydirt Limestone Incorporated was organized several years .pdf
Paydirt Limestone Incorporated was organized several years .pdfagarshail
 
Pauline won a Financial Analyst competition and had the foll.pdf
Pauline won a Financial Analyst competition and had the foll.pdfPauline won a Financial Analyst competition and had the foll.pdf
Pauline won a Financial Analyst competition and had the foll.pdfagarshail
 
Paula is a shareholder and director of Aloha Pty Ltd a pr.pdf
Paula is a shareholder and director of Aloha Pty Ltd a pr.pdfPaula is a shareholder and director of Aloha Pty Ltd a pr.pdf
Paula is a shareholder and director of Aloha Pty Ltd a pr.pdfagarshail
 
Paula and Prudence both have a BMI Body Mass Index of 24 .pdf
Paula and Prudence both have a BMI Body Mass Index of 24 .pdfPaula and Prudence both have a BMI Body Mass Index of 24 .pdf
Paula and Prudence both have a BMI Body Mass Index of 24 .pdfagarshail
 
Patient is a 25yearold male without medical history brough.pdf
Patient is a 25yearold male without medical history brough.pdfPatient is a 25yearold male without medical history brough.pdf
Patient is a 25yearold male without medical history brough.pdfagarshail
 
Patient Age Gender Date of Report History Copy and past.pdf
Patient Age  Gender Date of Report History Copy and past.pdfPatient Age  Gender Date of Report History Copy and past.pdf
Patient Age Gender Date of Report History Copy and past.pdfagarshail
 
paso 1 lee el texto a continuacin Nubes y niebla como fue.pdf
paso 1 lee el texto a continuacin  Nubes y niebla como fue.pdfpaso 1 lee el texto a continuacin  Nubes y niebla como fue.pdf
paso 1 lee el texto a continuacin Nubes y niebla como fue.pdfagarshail
 
Part Five Remember where commas are used as discussed in c.pdf
Part Five Remember where commas are used as discussed in c.pdfPart Five Remember where commas are used as discussed in c.pdf
Part Five Remember where commas are used as discussed in c.pdfagarshail
 
Participants are asked to respond to a single item assessing.pdf
Participants are asked to respond to a single item assessing.pdfParticipants are asked to respond to a single item assessing.pdf
Participants are asked to respond to a single item assessing.pdfagarshail
 
Passive vs Active Portfolio Management Susans current port.pdf
Passive vs Active Portfolio Management Susans current port.pdfPassive vs Active Portfolio Management Susans current port.pdf
Passive vs Active Portfolio Management Susans current port.pdfagarshail
 
pathogens are organisms that are not normally pathogenic but.pdf
pathogens are organisms that are not normally pathogenic but.pdfpathogens are organisms that are not normally pathogenic but.pdf
pathogens are organisms that are not normally pathogenic but.pdfagarshail
 
Parte I el problema Matt y Flora son estudiantes universita.pdf
Parte I el problema Matt y Flora son estudiantes universita.pdfParte I el problema Matt y Flora son estudiantes universita.pdf
Parte I el problema Matt y Flora son estudiantes universita.pdfagarshail
 

Mehr von agarshail (20)

Pequired information The kolowing information applies ro th.pdf
Pequired information The kolowing information applies ro th.pdfPequired information The kolowing information applies ro th.pdf
Pequired information The kolowing information applies ro th.pdf
 
Perca Rana y Cerdo 1 Por qu estos organismos requieren.pdf
Perca Rana y Cerdo  1 Por qu estos organismos requieren.pdfPerca Rana y Cerdo  1 Por qu estos organismos requieren.pdf
Perca Rana y Cerdo 1 Por qu estos organismos requieren.pdf
 
Perceptions of gender are affected by all of these attribute.pdf
Perceptions of gender are affected by all of these attribute.pdfPerceptions of gender are affected by all of these attribute.pdf
Perceptions of gender are affected by all of these attribute.pdf
 
Pedro Gonzales un hispano de 37 aos llega en ambulancia d.pdf
Pedro Gonzales un hispano de 37 aos llega en ambulancia d.pdfPedro Gonzales un hispano de 37 aos llega en ambulancia d.pdf
Pedro Gonzales un hispano de 37 aos llega en ambulancia d.pdf
 
Penny Inc uses process costing All direct materials are ad.pdf
Penny Inc uses process costing All direct materials are ad.pdfPenny Inc uses process costing All direct materials are ad.pdf
Penny Inc uses process costing All direct materials are ad.pdf
 
Part C Short Essay Questions 13 points Answer in the spa.pdf
Part C Short Essay Questions  13 points Answer in the spa.pdfPart C Short Essay Questions  13 points Answer in the spa.pdf
Part C Short Essay Questions 13 points Answer in the spa.pdf
 
Pazarlama yntemleri asndan tketicilere pazarlamay B2C .pdf
Pazarlama yntemleri asndan tketicilere pazarlamay B2C  .pdfPazarlama yntemleri asndan tketicilere pazarlamay B2C  .pdf
Pazarlama yntemleri asndan tketicilere pazarlamay B2C .pdf
 
Paula tiene 25 aos es soltera y gana 40000 al ao Paula.pdf
Paula tiene 25 aos es soltera y gana 40000 al ao Paula.pdfPaula tiene 25 aos es soltera y gana 40000 al ao Paula.pdf
Paula tiene 25 aos es soltera y gana 40000 al ao Paula.pdf
 
Paydirt Limestone Incorporated was organized several years .pdf
Paydirt Limestone Incorporated was organized several years .pdfPaydirt Limestone Incorporated was organized several years .pdf
Paydirt Limestone Incorporated was organized several years .pdf
 
Pauline won a Financial Analyst competition and had the foll.pdf
Pauline won a Financial Analyst competition and had the foll.pdfPauline won a Financial Analyst competition and had the foll.pdf
Pauline won a Financial Analyst competition and had the foll.pdf
 
Paula is a shareholder and director of Aloha Pty Ltd a pr.pdf
Paula is a shareholder and director of Aloha Pty Ltd a pr.pdfPaula is a shareholder and director of Aloha Pty Ltd a pr.pdf
Paula is a shareholder and director of Aloha Pty Ltd a pr.pdf
 
Paula and Prudence both have a BMI Body Mass Index of 24 .pdf
Paula and Prudence both have a BMI Body Mass Index of 24 .pdfPaula and Prudence both have a BMI Body Mass Index of 24 .pdf
Paula and Prudence both have a BMI Body Mass Index of 24 .pdf
 
Patient is a 25yearold male without medical history brough.pdf
Patient is a 25yearold male without medical history brough.pdfPatient is a 25yearold male without medical history brough.pdf
Patient is a 25yearold male without medical history brough.pdf
 
Patient Age Gender Date of Report History Copy and past.pdf
Patient Age  Gender Date of Report History Copy and past.pdfPatient Age  Gender Date of Report History Copy and past.pdf
Patient Age Gender Date of Report History Copy and past.pdf
 
paso 1 lee el texto a continuacin Nubes y niebla como fue.pdf
paso 1 lee el texto a continuacin  Nubes y niebla como fue.pdfpaso 1 lee el texto a continuacin  Nubes y niebla como fue.pdf
paso 1 lee el texto a continuacin Nubes y niebla como fue.pdf
 
Part Five Remember where commas are used as discussed in c.pdf
Part Five Remember where commas are used as discussed in c.pdfPart Five Remember where commas are used as discussed in c.pdf
Part Five Remember where commas are used as discussed in c.pdf
 
Participants are asked to respond to a single item assessing.pdf
Participants are asked to respond to a single item assessing.pdfParticipants are asked to respond to a single item assessing.pdf
Participants are asked to respond to a single item assessing.pdf
 
Passive vs Active Portfolio Management Susans current port.pdf
Passive vs Active Portfolio Management Susans current port.pdfPassive vs Active Portfolio Management Susans current port.pdf
Passive vs Active Portfolio Management Susans current port.pdf
 
pathogens are organisms that are not normally pathogenic but.pdf
pathogens are organisms that are not normally pathogenic but.pdfpathogens are organisms that are not normally pathogenic but.pdf
pathogens are organisms that are not normally pathogenic but.pdf
 
Parte I el problema Matt y Flora son estudiantes universita.pdf
Parte I el problema Matt y Flora son estudiantes universita.pdfParte I el problema Matt y Flora son estudiantes universita.pdf
Parte I el problema Matt y Flora son estudiantes universita.pdf
 

Kürzlich hochgeladen

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 

Kürzlich hochgeladen (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

Part I 30 point Create two integer variables x and y Pri.pdf

  • 1. Part I (30 point) Create two integer variables: x and y. Print if those variables are in following conditions: x [7, 12] y (9, 23) x, y [8, 20) and x > y Part II (30 point) Create an hour value (integer) and print the representative String value of the period of the day by using switch-case operation. Ex. 9 Morning, 17 Afternoon etc. Part III (40 point) Print all integer numbers between the ranges given in Part I. For the last condi tion set y a constant value. Note: Do not forget to justify your answers with comments.