SlideShare a Scribd company logo
What are the values of the following expressions, assuming that n is 17 and m is 18?
n / 10 + n % 10 =
n % 2 + m % 2 =
(m + n) / 2 =
(m + n) / 2.0 =
(int) (0.5 * (m + n)) =
(int) Math.round(0.5 * (m + n)) =
Solution
Assuming the output required is in decimal and m and N are double.
n / 10 + n % 10 = 8.7
n % 2 + m % 2 = 1
(m + n) / 2 = 17.5
(int) (0.5 * (m + n)) = 17
(int) Math.round(0.5 * (m + n)) = 18

More Related Content

More from lakshmijewellery

True or FalseA budget variance is the difference between expected.pdf
True or FalseA budget variance is the difference between expected.pdfTrue or FalseA budget variance is the difference between expected.pdf
True or FalseA budget variance is the difference between expected.pdf
lakshmijewellery
 
This level of measurement includes continuous measures A. Nominal; .pdf
This level of measurement includes continuous measures A. Nominal; .pdfThis level of measurement includes continuous measures A. Nominal; .pdf
This level of measurement includes continuous measures A. Nominal; .pdf
lakshmijewellery
 
Throughout the middle ages European philosophers believed in…a sci.pdf
Throughout the middle ages European philosophers believed in…a sci.pdfThroughout the middle ages European philosophers believed in…a sci.pdf
Throughout the middle ages European philosophers believed in…a sci.pdf
lakshmijewellery
 
The term intangible assets is used in accounting to denotea. suc.pdf
The term intangible assets is used in accounting to denotea. suc.pdfThe term intangible assets is used in accounting to denotea. suc.pdf
The term intangible assets is used in accounting to denotea. suc.pdf
lakshmijewellery
 
The methyl-accepting chemotaxis proteins of bacteriaa) integrate m.pdf
The methyl-accepting chemotaxis proteins of bacteriaa) integrate m.pdfThe methyl-accepting chemotaxis proteins of bacteriaa) integrate m.pdf
The methyl-accepting chemotaxis proteins of bacteriaa) integrate m.pdf
lakshmijewellery
 
The lagging strand is replicated with a series of Okazaki fragments .pdf
The lagging strand is replicated with a series of Okazaki fragments .pdfThe lagging strand is replicated with a series of Okazaki fragments .pdf
The lagging strand is replicated with a series of Okazaki fragments .pdf
lakshmijewellery
 
The files etcpasswd and etcshadow can be manually edited. Why wo.pdf
The files etcpasswd and etcshadow can be manually edited. Why wo.pdfThe files etcpasswd and etcshadow can be manually edited. Why wo.pdf
The files etcpasswd and etcshadow can be manually edited. Why wo.pdf
lakshmijewellery
 
The dividends received deduction Must exceed the applicable percentag.pdf
The dividends received deduction Must exceed the applicable percentag.pdfThe dividends received deduction Must exceed the applicable percentag.pdf
The dividends received deduction Must exceed the applicable percentag.pdf
lakshmijewellery
 
The chordae tendinae of the AV valves are anchored to the ___ of the .pdf
The chordae tendinae of the AV valves are anchored to the ___ of the .pdfThe chordae tendinae of the AV valves are anchored to the ___ of the .pdf
The chordae tendinae of the AV valves are anchored to the ___ of the .pdf
lakshmijewellery
 
Read the case Kenny An Effective Supervisor and in a 2-3 page p.pdf
Read the case Kenny An Effective Supervisor and in a 2-3 page p.pdfRead the case Kenny An Effective Supervisor and in a 2-3 page p.pdf
Read the case Kenny An Effective Supervisor and in a 2-3 page p.pdf
lakshmijewellery
 
Q4. How are automated tools used in the maintenance of information .pdf
Q4. How are automated tools used in the maintenance of information .pdfQ4. How are automated tools used in the maintenance of information .pdf
Q4. How are automated tools used in the maintenance of information .pdf
lakshmijewellery
 
PLEASE PLEASE use your OWN words, DO NOT copy and paste please expla.pdf
PLEASE PLEASE use your OWN words, DO NOT copy and paste please expla.pdfPLEASE PLEASE use your OWN words, DO NOT copy and paste please expla.pdf
PLEASE PLEASE use your OWN words, DO NOT copy and paste please expla.pdf
lakshmijewellery
 
Nuclear Tree Focus on the relationships (monophyly, sister groups, .pdf
Nuclear Tree Focus on the relationships (monophyly, sister groups, .pdfNuclear Tree Focus on the relationships (monophyly, sister groups, .pdf
Nuclear Tree Focus on the relationships (monophyly, sister groups, .pdf
lakshmijewellery
 
Marine flowering plants produce. a sporophyte a gametophyte tetr.pdf
Marine flowering plants produce.  a sporophyte  a gametophyte  tetr.pdfMarine flowering plants produce.  a sporophyte  a gametophyte  tetr.pdf
Marine flowering plants produce. a sporophyte a gametophyte tetr.pdf
lakshmijewellery
 
How important is Logistics Support Analysis to the ILS process Brie.pdf
How important is Logistics Support Analysis to the ILS process Brie.pdfHow important is Logistics Support Analysis to the ILS process Brie.pdf
How important is Logistics Support Analysis to the ILS process Brie.pdf
lakshmijewellery
 
how to play .wav files in a java program on multiple devices!!! For .pdf
how to play .wav files in a java program on multiple devices!!! For .pdfhow to play .wav files in a java program on multiple devices!!! For .pdf
how to play .wav files in a java program on multiple devices!!! For .pdf
lakshmijewellery
 
Identify the major provisions of the Affordable Care Act that will h.pdf
Identify the major provisions of the Affordable Care Act that will h.pdfIdentify the major provisions of the Affordable Care Act that will h.pdf
Identify the major provisions of the Affordable Care Act that will h.pdf
lakshmijewellery
 
I have a simple TCP clientserver socket set up in Python. How can I.pdf
I have a simple TCP clientserver socket set up in Python. How can I.pdfI have a simple TCP clientserver socket set up in Python. How can I.pdf
I have a simple TCP clientserver socket set up in Python. How can I.pdf
lakshmijewellery
 
Find the effective rate corresponding to the given nominal rate. (Ro.pdf
Find the effective rate corresponding to the given nominal rate. (Ro.pdfFind the effective rate corresponding to the given nominal rate. (Ro.pdf
Find the effective rate corresponding to the given nominal rate. (Ro.pdf
lakshmijewellery
 
C++ AssignmentPlease read all the requirements and the overloading.pdf
C++ AssignmentPlease read all the requirements and the overloading.pdfC++ AssignmentPlease read all the requirements and the overloading.pdf
C++ AssignmentPlease read all the requirements and the overloading.pdf
lakshmijewellery
 

More from lakshmijewellery (20)

True or FalseA budget variance is the difference between expected.pdf
True or FalseA budget variance is the difference between expected.pdfTrue or FalseA budget variance is the difference between expected.pdf
True or FalseA budget variance is the difference between expected.pdf
 
This level of measurement includes continuous measures A. Nominal; .pdf
This level of measurement includes continuous measures A. Nominal; .pdfThis level of measurement includes continuous measures A. Nominal; .pdf
This level of measurement includes continuous measures A. Nominal; .pdf
 
Throughout the middle ages European philosophers believed in…a sci.pdf
Throughout the middle ages European philosophers believed in…a sci.pdfThroughout the middle ages European philosophers believed in…a sci.pdf
Throughout the middle ages European philosophers believed in…a sci.pdf
 
The term intangible assets is used in accounting to denotea. suc.pdf
The term intangible assets is used in accounting to denotea. suc.pdfThe term intangible assets is used in accounting to denotea. suc.pdf
The term intangible assets is used in accounting to denotea. suc.pdf
 
The methyl-accepting chemotaxis proteins of bacteriaa) integrate m.pdf
The methyl-accepting chemotaxis proteins of bacteriaa) integrate m.pdfThe methyl-accepting chemotaxis proteins of bacteriaa) integrate m.pdf
The methyl-accepting chemotaxis proteins of bacteriaa) integrate m.pdf
 
The lagging strand is replicated with a series of Okazaki fragments .pdf
The lagging strand is replicated with a series of Okazaki fragments .pdfThe lagging strand is replicated with a series of Okazaki fragments .pdf
The lagging strand is replicated with a series of Okazaki fragments .pdf
 
The files etcpasswd and etcshadow can be manually edited. Why wo.pdf
The files etcpasswd and etcshadow can be manually edited. Why wo.pdfThe files etcpasswd and etcshadow can be manually edited. Why wo.pdf
The files etcpasswd and etcshadow can be manually edited. Why wo.pdf
 
The dividends received deduction Must exceed the applicable percentag.pdf
The dividends received deduction Must exceed the applicable percentag.pdfThe dividends received deduction Must exceed the applicable percentag.pdf
The dividends received deduction Must exceed the applicable percentag.pdf
 
The chordae tendinae of the AV valves are anchored to the ___ of the .pdf
The chordae tendinae of the AV valves are anchored to the ___ of the .pdfThe chordae tendinae of the AV valves are anchored to the ___ of the .pdf
The chordae tendinae of the AV valves are anchored to the ___ of the .pdf
 
Read the case Kenny An Effective Supervisor and in a 2-3 page p.pdf
Read the case Kenny An Effective Supervisor and in a 2-3 page p.pdfRead the case Kenny An Effective Supervisor and in a 2-3 page p.pdf
Read the case Kenny An Effective Supervisor and in a 2-3 page p.pdf
 
Q4. How are automated tools used in the maintenance of information .pdf
Q4. How are automated tools used in the maintenance of information .pdfQ4. How are automated tools used in the maintenance of information .pdf
Q4. How are automated tools used in the maintenance of information .pdf
 
PLEASE PLEASE use your OWN words, DO NOT copy and paste please expla.pdf
PLEASE PLEASE use your OWN words, DO NOT copy and paste please expla.pdfPLEASE PLEASE use your OWN words, DO NOT copy and paste please expla.pdf
PLEASE PLEASE use your OWN words, DO NOT copy and paste please expla.pdf
 
Nuclear Tree Focus on the relationships (monophyly, sister groups, .pdf
Nuclear Tree Focus on the relationships (monophyly, sister groups, .pdfNuclear Tree Focus on the relationships (monophyly, sister groups, .pdf
Nuclear Tree Focus on the relationships (monophyly, sister groups, .pdf
 
Marine flowering plants produce. a sporophyte a gametophyte tetr.pdf
Marine flowering plants produce.  a sporophyte  a gametophyte  tetr.pdfMarine flowering plants produce.  a sporophyte  a gametophyte  tetr.pdf
Marine flowering plants produce. a sporophyte a gametophyte tetr.pdf
 
How important is Logistics Support Analysis to the ILS process Brie.pdf
How important is Logistics Support Analysis to the ILS process Brie.pdfHow important is Logistics Support Analysis to the ILS process Brie.pdf
How important is Logistics Support Analysis to the ILS process Brie.pdf
 
how to play .wav files in a java program on multiple devices!!! For .pdf
how to play .wav files in a java program on multiple devices!!! For .pdfhow to play .wav files in a java program on multiple devices!!! For .pdf
how to play .wav files in a java program on multiple devices!!! For .pdf
 
Identify the major provisions of the Affordable Care Act that will h.pdf
Identify the major provisions of the Affordable Care Act that will h.pdfIdentify the major provisions of the Affordable Care Act that will h.pdf
Identify the major provisions of the Affordable Care Act that will h.pdf
 
I have a simple TCP clientserver socket set up in Python. How can I.pdf
I have a simple TCP clientserver socket set up in Python. How can I.pdfI have a simple TCP clientserver socket set up in Python. How can I.pdf
I have a simple TCP clientserver socket set up in Python. How can I.pdf
 
Find the effective rate corresponding to the given nominal rate. (Ro.pdf
Find the effective rate corresponding to the given nominal rate. (Ro.pdfFind the effective rate corresponding to the given nominal rate. (Ro.pdf
Find the effective rate corresponding to the given nominal rate. (Ro.pdf
 
C++ AssignmentPlease read all the requirements and the overloading.pdf
C++ AssignmentPlease read all the requirements and the overloading.pdfC++ AssignmentPlease read all the requirements and the overloading.pdf
C++ AssignmentPlease read all the requirements and the overloading.pdf
 

Recently uploaded

CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
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
 
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
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
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
 
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)
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
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
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
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.
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 

Recently uploaded (20)

CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
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
 
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
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
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
 
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...
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
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
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
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
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 

What are the values of the following expressions, assuming that n is.pdf

  • 1. What are the values of the following expressions, assuming that n is 17 and m is 18? n / 10 + n % 10 = n % 2 + m % 2 = (m + n) / 2 = (m + n) / 2.0 = (int) (0.5 * (m + n)) = (int) Math.round(0.5 * (m + n)) = Solution Assuming the output required is in decimal and m and N are double. n / 10 + n % 10 = 8.7 n % 2 + m % 2 = 1 (m + n) / 2 = 17.5 (int) (0.5 * (m + n)) = 17 (int) Math.round(0.5 * (m + n)) = 18