SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
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.

Mais conteúdo relacionado

Mais de agarshail

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
agarshail
 
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
agarshail
 
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
agarshail
 

Mais de 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
 

Último

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
heathfieldcps1
 
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
KarakKing
 

Último (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
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
 
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)
 
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
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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.
 
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
 
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
 
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...
 
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Ă...
 
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
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

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.