SlideShare a Scribd company logo
1 of 1
Download to read offline
To clarify, this is specifically for Java.
Write a program that asks the user to enter the length of sides for one or more squares. The user
indicates the end of the input by entering a negative sentinel value that is not use in finding the
average values. The average should be a value of type double so that it is computed with
fractional part.
Input: (Your input must match the following below):
Output: (Your output must match the following below): (Average data type should be double)

More Related Content

More from EricvtJFraserr

To do- Use the drop down list in column E to determine which entity ty.pdf
To do- Use the drop down list in column E to determine which entity ty.pdfTo do- Use the drop down list in column E to determine which entity ty.pdf
To do- Use the drop down list in column E to determine which entity ty.pdfEricvtJFraserr
ย 
To determine the mechanism by which N-WASp mediates activation by Cdc4.pdf
To determine the mechanism by which N-WASp mediates activation by Cdc4.pdfTo determine the mechanism by which N-WASp mediates activation by Cdc4.pdf
To determine the mechanism by which N-WASp mediates activation by Cdc4.pdfEricvtJFraserr
ย 
To avoid typos- copy and paste the portions of the IP address that wil.pdf
To avoid typos- copy and paste the portions of the IP address that wil.pdfTo avoid typos- copy and paste the portions of the IP address that wil.pdf
To avoid typos- copy and paste the portions of the IP address that wil.pdfEricvtJFraserr
ย 
Three Ways Heat Energy can move from one place to another (Define and.pdf
Three Ways Heat Energy can move from one place to another (Define and.pdfThree Ways Heat Energy can move from one place to another (Define and.pdf
Three Ways Heat Energy can move from one place to another (Define and.pdfEricvtJFraserr
ย 
This year Luke has calculated his gross tax liability at $1-900- Luke.pdf
This year Luke has calculated his gross tax liability at $1-900- Luke.pdfThis year Luke has calculated his gross tax liability at $1-900- Luke.pdf
This year Luke has calculated his gross tax liability at $1-900- Luke.pdfEricvtJFraserr
ย 
This Scottish economist was highly critical of the Mercantilists- A-Ad.pdf
This Scottish economist was highly critical of the Mercantilists- A-Ad.pdfThis Scottish economist was highly critical of the Mercantilists- A-Ad.pdf
This Scottish economist was highly critical of the Mercantilists- A-Ad.pdfEricvtJFraserr
ย 
This map shows the location and size of earthquakes in and around Turk.pdf
This map shows the location and size of earthquakes in and around Turk.pdfThis map shows the location and size of earthquakes in and around Turk.pdf
This map shows the location and size of earthquakes in and around Turk.pdfEricvtJFraserr
ย 
This medieval social- cultural- and economic movement that involved de.pdf
This medieval social- cultural- and economic movement that involved de.pdfThis medieval social- cultural- and economic movement that involved de.pdf
This medieval social- cultural- and economic movement that involved de.pdfEricvtJFraserr
ย 
This map shows a summary of earthquakes that occurred across the globe.pdf
This map shows a summary of earthquakes that occurred across the globe.pdfThis map shows a summary of earthquakes that occurred across the globe.pdf
This map shows a summary of earthquakes that occurred across the globe.pdfEricvtJFraserr
ย 
This map from the USGS' Earthquake Hazards Program website shows earth.pdf
This map from the USGS' Earthquake Hazards Program website shows earth.pdfThis map from the USGS' Earthquake Hazards Program website shows earth.pdf
This map from the USGS' Earthquake Hazards Program website shows earth.pdfEricvtJFraserr
ย 
Things wrong with my code- 1- The notes do not play when i press down.pdf
Things wrong with my code- 1- The notes do not play when i press down.pdfThings wrong with my code- 1- The notes do not play when i press down.pdf
Things wrong with my code- 1- The notes do not play when i press down.pdfEricvtJFraserr
ย 
This is my code- #include -llvm-IR-LegacyPassManager-h- #include -llv.pdf
This is my code-  #include -llvm-IR-LegacyPassManager-h- #include -llv.pdfThis is my code-  #include -llvm-IR-LegacyPassManager-h- #include -llv.pdf
This is my code- #include -llvm-IR-LegacyPassManager-h- #include -llv.pdfEricvtJFraserr
ย 
This chemical provides the body with energy a- Electro-energizing fusi.pdf
This chemical provides the body with energy a- Electro-energizing fusi.pdfThis chemical provides the body with energy a- Electro-energizing fusi.pdf
This chemical provides the body with energy a- Electro-energizing fusi.pdfEricvtJFraserr
ย 
This is computer network class Select the statement that is correct- D.pdf
This is computer network class Select the statement that is correct- D.pdfThis is computer network class Select the statement that is correct- D.pdf
This is computer network class Select the statement that is correct- D.pdfEricvtJFraserr
ย 
This assignment and the next (#5) involve design and development of a.pdf
This assignment and the next (#5) involve design and development of a.pdfThis assignment and the next (#5) involve design and development of a.pdf
This assignment and the next (#5) involve design and development of a.pdfEricvtJFraserr
ย 
These structures are formed in similar ways during embryonic developme.pdf
These structures are formed in similar ways during embryonic developme.pdfThese structures are formed in similar ways during embryonic developme.pdf
These structures are formed in similar ways during embryonic developme.pdfEricvtJFraserr
ย 
Think of a time you had an infectious disease- Describe the disease (s.pdf
Think of a time you had an infectious disease- Describe the disease (s.pdfThink of a time you had an infectious disease- Describe the disease (s.pdf
Think of a time you had an infectious disease- Describe the disease (s.pdfEricvtJFraserr
ย 
There is a longstanding conundrum in biological research and biotechno.pdf
There is a longstanding conundrum in biological research and biotechno.pdfThere is a longstanding conundrum in biological research and biotechno.pdf
There is a longstanding conundrum in biological research and biotechno.pdfEricvtJFraserr
ย 
There are several network threats and vulnerabilities- These threats c.pdf
There are several network threats and vulnerabilities- These threats c.pdfThere are several network threats and vulnerabilities- These threats c.pdf
There are several network threats and vulnerabilities- These threats c.pdfEricvtJFraserr
ย 
The unadjusted balance of Office Supplies at Dec- 31 is $8-400 and at (1).pdf
The unadjusted balance of Office Supplies at Dec- 31 is $8-400 and at (1).pdfThe unadjusted balance of Office Supplies at Dec- 31 is $8-400 and at (1).pdf
The unadjusted balance of Office Supplies at Dec- 31 is $8-400 and at (1).pdfEricvtJFraserr
ย 

More from EricvtJFraserr (20)

To do- Use the drop down list in column E to determine which entity ty.pdf
To do- Use the drop down list in column E to determine which entity ty.pdfTo do- Use the drop down list in column E to determine which entity ty.pdf
To do- Use the drop down list in column E to determine which entity ty.pdf
ย 
To determine the mechanism by which N-WASp mediates activation by Cdc4.pdf
To determine the mechanism by which N-WASp mediates activation by Cdc4.pdfTo determine the mechanism by which N-WASp mediates activation by Cdc4.pdf
To determine the mechanism by which N-WASp mediates activation by Cdc4.pdf
ย 
To avoid typos- copy and paste the portions of the IP address that wil.pdf
To avoid typos- copy and paste the portions of the IP address that wil.pdfTo avoid typos- copy and paste the portions of the IP address that wil.pdf
To avoid typos- copy and paste the portions of the IP address that wil.pdf
ย 
Three Ways Heat Energy can move from one place to another (Define and.pdf
Three Ways Heat Energy can move from one place to another (Define and.pdfThree Ways Heat Energy can move from one place to another (Define and.pdf
Three Ways Heat Energy can move from one place to another (Define and.pdf
ย 
This year Luke has calculated his gross tax liability at $1-900- Luke.pdf
This year Luke has calculated his gross tax liability at $1-900- Luke.pdfThis year Luke has calculated his gross tax liability at $1-900- Luke.pdf
This year Luke has calculated his gross tax liability at $1-900- Luke.pdf
ย 
This Scottish economist was highly critical of the Mercantilists- A-Ad.pdf
This Scottish economist was highly critical of the Mercantilists- A-Ad.pdfThis Scottish economist was highly critical of the Mercantilists- A-Ad.pdf
This Scottish economist was highly critical of the Mercantilists- A-Ad.pdf
ย 
This map shows the location and size of earthquakes in and around Turk.pdf
This map shows the location and size of earthquakes in and around Turk.pdfThis map shows the location and size of earthquakes in and around Turk.pdf
This map shows the location and size of earthquakes in and around Turk.pdf
ย 
This medieval social- cultural- and economic movement that involved de.pdf
This medieval social- cultural- and economic movement that involved de.pdfThis medieval social- cultural- and economic movement that involved de.pdf
This medieval social- cultural- and economic movement that involved de.pdf
ย 
This map shows a summary of earthquakes that occurred across the globe.pdf
This map shows a summary of earthquakes that occurred across the globe.pdfThis map shows a summary of earthquakes that occurred across the globe.pdf
This map shows a summary of earthquakes that occurred across the globe.pdf
ย 
This map from the USGS' Earthquake Hazards Program website shows earth.pdf
This map from the USGS' Earthquake Hazards Program website shows earth.pdfThis map from the USGS' Earthquake Hazards Program website shows earth.pdf
This map from the USGS' Earthquake Hazards Program website shows earth.pdf
ย 
Things wrong with my code- 1- The notes do not play when i press down.pdf
Things wrong with my code- 1- The notes do not play when i press down.pdfThings wrong with my code- 1- The notes do not play when i press down.pdf
Things wrong with my code- 1- The notes do not play when i press down.pdf
ย 
This is my code- #include -llvm-IR-LegacyPassManager-h- #include -llv.pdf
This is my code-  #include -llvm-IR-LegacyPassManager-h- #include -llv.pdfThis is my code-  #include -llvm-IR-LegacyPassManager-h- #include -llv.pdf
This is my code- #include -llvm-IR-LegacyPassManager-h- #include -llv.pdf
ย 
This chemical provides the body with energy a- Electro-energizing fusi.pdf
This chemical provides the body with energy a- Electro-energizing fusi.pdfThis chemical provides the body with energy a- Electro-energizing fusi.pdf
This chemical provides the body with energy a- Electro-energizing fusi.pdf
ย 
This is computer network class Select the statement that is correct- D.pdf
This is computer network class Select the statement that is correct- D.pdfThis is computer network class Select the statement that is correct- D.pdf
This is computer network class Select the statement that is correct- D.pdf
ย 
This assignment and the next (#5) involve design and development of a.pdf
This assignment and the next (#5) involve design and development of a.pdfThis assignment and the next (#5) involve design and development of a.pdf
This assignment and the next (#5) involve design and development of a.pdf
ย 
These structures are formed in similar ways during embryonic developme.pdf
These structures are formed in similar ways during embryonic developme.pdfThese structures are formed in similar ways during embryonic developme.pdf
These structures are formed in similar ways during embryonic developme.pdf
ย 
Think of a time you had an infectious disease- Describe the disease (s.pdf
Think of a time you had an infectious disease- Describe the disease (s.pdfThink of a time you had an infectious disease- Describe the disease (s.pdf
Think of a time you had an infectious disease- Describe the disease (s.pdf
ย 
There is a longstanding conundrum in biological research and biotechno.pdf
There is a longstanding conundrum in biological research and biotechno.pdfThere is a longstanding conundrum in biological research and biotechno.pdf
There is a longstanding conundrum in biological research and biotechno.pdf
ย 
There are several network threats and vulnerabilities- These threats c.pdf
There are several network threats and vulnerabilities- These threats c.pdfThere are several network threats and vulnerabilities- These threats c.pdf
There are several network threats and vulnerabilities- These threats c.pdf
ย 
The unadjusted balance of Office Supplies at Dec- 31 is $8-400 and at (1).pdf
The unadjusted balance of Office Supplies at Dec- 31 is $8-400 and at (1).pdfThe unadjusted balance of Office Supplies at Dec- 31 is $8-400 and at (1).pdf
The unadjusted balance of Office Supplies at Dec- 31 is $8-400 and at (1).pdf
ย 

Recently uploaded

Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
ย 
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
ย 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
ย 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
ย 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
ย 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
ย 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
ย 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
ย 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
ย 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
ย 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
ย 
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
ย 
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
ย 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesSHIVANANDaRV
ย 
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 17Celine George
ย 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
ย 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
ย 
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
ย 

Recently uploaded (20)

Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
ย 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
ย 
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 Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
ย 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
ย 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
ย 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
ย 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
ย 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
ย 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
ย 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
ย 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
ย 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
ย 
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...
ย 
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
ย 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
ย 
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
ย 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
ย 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
ย 
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
ย 

To clarify- this is specifically for Java- Write a program that asks t.pdf

  • 1. To clarify, this is specifically for Java. Write a program that asks the user to enter the length of sides for one or more squares. The user indicates the end of the input by entering a negative sentinel value that is not use in finding the average values. The average should be a value of type double so that it is computed with fractional part. Input: (Your input must match the following below): Output: (Your output must match the following below): (Average data type should be double)