SlideShare a Scribd company logo
import java.util.Scanner; public class MathFunctions { public static void main (String [] args) {
Scanner scnr = new Scanner(System.in); double x; double y; double z; x = scnr.nextDouble(); y
= scnr.nextDouble(); /* Your code goes here */ System.out.printf("%.1fn", z); // This will output
z with 1 decimal place. } }

More Related Content

More from RyanEAcTuckern

III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docxIII- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
RyanEAcTuckern
 
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docxIII Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
RyanEAcTuckern
 
Imagine that you are planning an upcoming social media campaign for on.docx
Imagine that you are planning an upcoming social media campaign for on.docxImagine that you are planning an upcoming social media campaign for on.docx
Imagine that you are planning an upcoming social media campaign for on.docx
RyanEAcTuckern
 
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docxIguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
RyanEAcTuckern
 
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docxIII- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
RyanEAcTuckern
 
If the three subunits of a vertebrate ATP synthase are in the followi.docx
If the three  subunits of a vertebrate ATP synthase are in the followi.docxIf the three  subunits of a vertebrate ATP synthase are in the followi.docx
If the three subunits of a vertebrate ATP synthase are in the followi.docx
RyanEAcTuckern
 
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docxIf the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
RyanEAcTuckern
 
If Dorothy went to the prom with Daniel in early May- It was the perfe.docx
If Dorothy went to the prom with Daniel in early May- It was the perfe.docxIf Dorothy went to the prom with Daniel in early May- It was the perfe.docx
If Dorothy went to the prom with Daniel in early May- It was the perfe.docx
RyanEAcTuckern
 
Identify the principal diagnosis and secondary diagnosis and place the.docx
Identify the principal diagnosis and secondary diagnosis and place the.docxIdentify the principal diagnosis and secondary diagnosis and place the.docx
Identify the principal diagnosis and secondary diagnosis and place the.docx
RyanEAcTuckern
 
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docxIdentify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
RyanEAcTuckern
 
identify Each stage of meiosis and briefly explain what occurs during.docx
identify Each stage of meiosis and briefly explain what occurs during.docxidentify Each stage of meiosis and briefly explain what occurs during.docx
identify Each stage of meiosis and briefly explain what occurs during.docx
RyanEAcTuckern
 
I- Construct a membership table for the following combination of the s.docx
I- Construct a membership table for the following combination of the s.docxI- Construct a membership table for the following combination of the s.docx
I- Construct a membership table for the following combination of the s.docx
RyanEAcTuckern
 
I'm working with Android Studio to make a basic project- Your origina.docx
I'm working with Android Studio to make a basic project-  Your origina.docxI'm working with Android Studio to make a basic project-  Your origina.docx
I'm working with Android Studio to make a basic project- Your origina.docx
RyanEAcTuckern
 
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docxI- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
RyanEAcTuckern
 
I need a help with my scenario question below on the course ACCCES CON.docx
I need a help with my scenario question below on the course ACCCES CON.docxI need a help with my scenario question below on the course ACCCES CON.docx
I need a help with my scenario question below on the course ACCCES CON.docx
RyanEAcTuckern
 
i nut the ndeated z score- The graph depicts the standard normal ditkb.docx
i nut the ndeated z score- The graph depicts the standard normal ditkb.docxi nut the ndeated z score- The graph depicts the standard normal ditkb.docx
i nut the ndeated z score- The graph depicts the standard normal ditkb.docx
RyanEAcTuckern
 
I need this solution in C language - Monitor the input signals and de.docx
I need this solution in C language  - Monitor the input signals and de.docxI need this solution in C language  - Monitor the input signals and de.docx
I need this solution in C language - Monitor the input signals and de.docx
RyanEAcTuckern
 
I need help with this- circle the correct choice within the parenthesi.docx
I need help with this- circle the correct choice within the parenthesi.docxI need help with this- circle the correct choice within the parenthesi.docx
I need help with this- circle the correct choice within the parenthesi.docx
RyanEAcTuckern
 
I NEED HELP!!!!!! DCOM 224 A new systems administrator has a quest.docx
I NEED HELP!!!!!!   DCOM 224   A new systems administrator has a quest.docxI NEED HELP!!!!!!   DCOM 224   A new systems administrator has a quest.docx
I NEED HELP!!!!!! DCOM 224 A new systems administrator has a quest.docx
RyanEAcTuckern
 
Hypospadias repair and chordee repair Find the code answer and rationa.docx
Hypospadias repair and chordee repair Find the code answer and rationa.docxHypospadias repair and chordee repair Find the code answer and rationa.docx
Hypospadias repair and chordee repair Find the code answer and rationa.docx
RyanEAcTuckern
 

More from RyanEAcTuckern (20)

III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docxIII- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
 
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docxIII Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
 
Imagine that you are planning an upcoming social media campaign for on.docx
Imagine that you are planning an upcoming social media campaign for on.docxImagine that you are planning an upcoming social media campaign for on.docx
Imagine that you are planning an upcoming social media campaign for on.docx
 
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docxIguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
 
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docxIII- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
 
If the three subunits of a vertebrate ATP synthase are in the followi.docx
If the three  subunits of a vertebrate ATP synthase are in the followi.docxIf the three  subunits of a vertebrate ATP synthase are in the followi.docx
If the three subunits of a vertebrate ATP synthase are in the followi.docx
 
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docxIf the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
 
If Dorothy went to the prom with Daniel in early May- It was the perfe.docx
If Dorothy went to the prom with Daniel in early May- It was the perfe.docxIf Dorothy went to the prom with Daniel in early May- It was the perfe.docx
If Dorothy went to the prom with Daniel in early May- It was the perfe.docx
 
Identify the principal diagnosis and secondary diagnosis and place the.docx
Identify the principal diagnosis and secondary diagnosis and place the.docxIdentify the principal diagnosis and secondary diagnosis and place the.docx
Identify the principal diagnosis and secondary diagnosis and place the.docx
 
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docxIdentify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
 
identify Each stage of meiosis and briefly explain what occurs during.docx
identify Each stage of meiosis and briefly explain what occurs during.docxidentify Each stage of meiosis and briefly explain what occurs during.docx
identify Each stage of meiosis and briefly explain what occurs during.docx
 
I- Construct a membership table for the following combination of the s.docx
I- Construct a membership table for the following combination of the s.docxI- Construct a membership table for the following combination of the s.docx
I- Construct a membership table for the following combination of the s.docx
 
I'm working with Android Studio to make a basic project- Your origina.docx
I'm working with Android Studio to make a basic project-  Your origina.docxI'm working with Android Studio to make a basic project-  Your origina.docx
I'm working with Android Studio to make a basic project- Your origina.docx
 
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docxI- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
 
I need a help with my scenario question below on the course ACCCES CON.docx
I need a help with my scenario question below on the course ACCCES CON.docxI need a help with my scenario question below on the course ACCCES CON.docx
I need a help with my scenario question below on the course ACCCES CON.docx
 
i nut the ndeated z score- The graph depicts the standard normal ditkb.docx
i nut the ndeated z score- The graph depicts the standard normal ditkb.docxi nut the ndeated z score- The graph depicts the standard normal ditkb.docx
i nut the ndeated z score- The graph depicts the standard normal ditkb.docx
 
I need this solution in C language - Monitor the input signals and de.docx
I need this solution in C language  - Monitor the input signals and de.docxI need this solution in C language  - Monitor the input signals and de.docx
I need this solution in C language - Monitor the input signals and de.docx
 
I need help with this- circle the correct choice within the parenthesi.docx
I need help with this- circle the correct choice within the parenthesi.docxI need help with this- circle the correct choice within the parenthesi.docx
I need help with this- circle the correct choice within the parenthesi.docx
 
I NEED HELP!!!!!! DCOM 224 A new systems administrator has a quest.docx
I NEED HELP!!!!!!   DCOM 224   A new systems administrator has a quest.docxI NEED HELP!!!!!!   DCOM 224   A new systems administrator has a quest.docx
I NEED HELP!!!!!! DCOM 224 A new systems administrator has a quest.docx
 
Hypospadias repair and chordee repair Find the code answer and rationa.docx
Hypospadias repair and chordee repair Find the code answer and rationa.docxHypospadias repair and chordee repair Find the code answer and rationa.docx
Hypospadias repair and chordee repair Find the code answer and rationa.docx
 

Recently uploaded

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
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
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
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
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 

Recently uploaded (20)

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
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
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
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
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 

import java-util-Scanner- public class MathFunctions { public static v.docx

  • 1. import java.util.Scanner; public class MathFunctions { public static void main (String [] args) { Scanner scnr = new Scanner(System.in); double x; double y; double z; x = scnr.nextDouble(); y = scnr.nextDouble(); /* Your code goes here */ System.out.printf("%.1fn", z); // This will output z with 1 decimal place. } }