SlideShare una empresa de Scribd logo
1 de 2
3: Freudian Sip e coffee and are on a tight budget, you certainly want to be sure you get your
money's worth. You like cream in your coffee, but you realized that asking for "no room"
means that you also get less coffee, the barrista will leave enough room in the cup for you to add
your cream. So you wonder how much you lose when you ask for "room". answer that
question, you measured the geometry of a small Freudian Sip coffee cup, and then gathered some
drta on how the cup was filled with "room" versus "no room". You asked for 5 small coffees
"with room" and with room, and measured the depth of the liquid, measuring along the side of
the cup (d'). You will create an application (user interface worksheet and main Sub procedure)
to analyze data. d (mm) with room no room Top rim of cup 22 Rt 4.0 cm Rb 3.2 cm H 4.2 cm
Averages: Fluid bottom of cup lost with room the User create output cells the average with your
liquid depth measurements. Enter the input data shown. Create the three for depths and
percentage of lost coffee for pours with "no room". Using your geometry reference book, you
looked up the formula for calculating the volume of a right circular cone section: Hints: 1) Let e
s cup cone angle from vertical, then tan(6) (R Rb)/H 2) Let Rrs the fluid level radius, then sin(6)
(Rt Rr)/d. Write a Sub procedure that does the following: a. Reads the cup geometry into
procedure variables, and the fluid depth measurements into a two-dimensional static array. b.
Calculates the average depths for "with room" and for "no room", and write the results to the
output cells. c. Calculates the volume of coffee for each case, storing these results in procedure
variables. d. Calculates and writes out the percent of coffee lost for the "with room" case,
relative to the "no room case.
Solution
public class MyCylinder 03 { 04 Â Â Â Â public static void main (String[] args) 05 Â Â Â Â {
06 Â Â Â Â Â Â Â Â double radius =
Double.parseDouble(JOptionPane.showInputDialog(null,"enter radius")); 07
        double Length = 1; 08         double volume = Math.PI * radius
* radius * Length; 09 Â Â Â Â Â Â Â Â System.out.println("volume " + volume); 10
         11     } 12 }
3- Freudian Sip e coffee and are on a tight budget- you certainly want.docx

Más contenido relacionado

Más de todd621

4) What is the Reynolds number- Give an equation but also an explanati.docx
4) What is the Reynolds number- Give an equation but also an explanati.docx4) What is the Reynolds number- Give an equation but also an explanati.docx
4) What is the Reynolds number- Give an equation but also an explanati.docxtodd621
 
3- After water vapor- CO2 is the next most important atmospheric trace.docx
3- After water vapor- CO2 is the next most important atmospheric trace.docx3- After water vapor- CO2 is the next most important atmospheric trace.docx
3- After water vapor- CO2 is the next most important atmospheric trace.docxtodd621
 
2014 Health Savings Accounts (HSA) Exam - Scenario 4- Carlos and Julie.docx
2014 Health Savings Accounts (HSA) Exam - Scenario 4- Carlos and Julie.docx2014 Health Savings Accounts (HSA) Exam - Scenario 4- Carlos and Julie.docx
2014 Health Savings Accounts (HSA) Exam - Scenario 4- Carlos and Julie.docxtodd621
 
2014 2013 LINK TO TEXT LINK TO TEXT The following account b.docx
2014 2013 LINK TO TEXT LINK TO TEXT            The following account b.docx2014 2013 LINK TO TEXT LINK TO TEXT            The following account b.docx
2014 2013 LINK TO TEXT LINK TO TEXT The following account b.docxtodd621
 
2- There are 3 mechanisms of heat transfer and all are important in ma.docx
2- There are 3 mechanisms of heat transfer and all are important in ma.docx2- There are 3 mechanisms of heat transfer and all are important in ma.docx
2- There are 3 mechanisms of heat transfer and all are important in ma.docxtodd621
 
2- Marvin Services Corporation had the following accounts and balances.docx
2- Marvin Services Corporation had the following accounts and balances.docx2- Marvin Services Corporation had the following accounts and balances.docx
2- Marvin Services Corporation had the following accounts and balances.docxtodd621
 
2- The following are types of organisms- A- bacteria- B- fungi- C- alg.docx
2- The following are types of organisms- A- bacteria- B- fungi- C- alg.docx2- The following are types of organisms- A- bacteria- B- fungi- C- alg.docx
2- The following are types of organisms- A- bacteria- B- fungi- C- alg.docxtodd621
 
18- Ray was chosen by his boss to lead a team of coworkers during a co.docx
18- Ray was chosen by his boss to lead a team of coworkers during a co.docx18- Ray was chosen by his boss to lead a team of coworkers during a co.docx
18- Ray was chosen by his boss to lead a team of coworkers during a co.docxtodd621
 
2- Accepted $16-700 on February 1- 2014- as a retainer for services to.docx
2- Accepted $16-700 on February 1- 2014- as a retainer for services to.docx2- Accepted $16-700 on February 1- 2014- as a retainer for services to.docx
2- Accepted $16-700 on February 1- 2014- as a retainer for services to.docxtodd621
 

Más de todd621 (9)

4) What is the Reynolds number- Give an equation but also an explanati.docx
4) What is the Reynolds number- Give an equation but also an explanati.docx4) What is the Reynolds number- Give an equation but also an explanati.docx
4) What is the Reynolds number- Give an equation but also an explanati.docx
 
3- After water vapor- CO2 is the next most important atmospheric trace.docx
3- After water vapor- CO2 is the next most important atmospheric trace.docx3- After water vapor- CO2 is the next most important atmospheric trace.docx
3- After water vapor- CO2 is the next most important atmospheric trace.docx
 
2014 Health Savings Accounts (HSA) Exam - Scenario 4- Carlos and Julie.docx
2014 Health Savings Accounts (HSA) Exam - Scenario 4- Carlos and Julie.docx2014 Health Savings Accounts (HSA) Exam - Scenario 4- Carlos and Julie.docx
2014 Health Savings Accounts (HSA) Exam - Scenario 4- Carlos and Julie.docx
 
2014 2013 LINK TO TEXT LINK TO TEXT The following account b.docx
2014 2013 LINK TO TEXT LINK TO TEXT            The following account b.docx2014 2013 LINK TO TEXT LINK TO TEXT            The following account b.docx
2014 2013 LINK TO TEXT LINK TO TEXT The following account b.docx
 
2- There are 3 mechanisms of heat transfer and all are important in ma.docx
2- There are 3 mechanisms of heat transfer and all are important in ma.docx2- There are 3 mechanisms of heat transfer and all are important in ma.docx
2- There are 3 mechanisms of heat transfer and all are important in ma.docx
 
2- Marvin Services Corporation had the following accounts and balances.docx
2- Marvin Services Corporation had the following accounts and balances.docx2- Marvin Services Corporation had the following accounts and balances.docx
2- Marvin Services Corporation had the following accounts and balances.docx
 
2- The following are types of organisms- A- bacteria- B- fungi- C- alg.docx
2- The following are types of organisms- A- bacteria- B- fungi- C- alg.docx2- The following are types of organisms- A- bacteria- B- fungi- C- alg.docx
2- The following are types of organisms- A- bacteria- B- fungi- C- alg.docx
 
18- Ray was chosen by his boss to lead a team of coworkers during a co.docx
18- Ray was chosen by his boss to lead a team of coworkers during a co.docx18- Ray was chosen by his boss to lead a team of coworkers during a co.docx
18- Ray was chosen by his boss to lead a team of coworkers during a co.docx
 
2- Accepted $16-700 on February 1- 2014- as a retainer for services to.docx
2- Accepted $16-700 on February 1- 2014- as a retainer for services to.docx2- Accepted $16-700 on February 1- 2014- as a retainer for services to.docx
2- Accepted $16-700 on February 1- 2014- as a retainer for services to.docx
 

Último

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
 
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.pdfNirmal Dwivedi
 
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.pdfPoh-Sun Goh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
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
 
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
 
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
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
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
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
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
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
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
 
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.pptxCeline George
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
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
 

Último (20)

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
 
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
 
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
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
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
 
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
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
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...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
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...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
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
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
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
 
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
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 

3- Freudian Sip e coffee and are on a tight budget- you certainly want.docx

  • 1. 3: Freudian Sip e coffee and are on a tight budget, you certainly want to be sure you get your money's worth. You like cream in your coffee, but you realized that asking for "no room" means that you also get less coffee, the barrista will leave enough room in the cup for you to add your cream. So you wonder how much you lose when you ask for "room". answer that question, you measured the geometry of a small Freudian Sip coffee cup, and then gathered some drta on how the cup was filled with "room" versus "no room". You asked for 5 small coffees "with room" and with room, and measured the depth of the liquid, measuring along the side of the cup (d'). You will create an application (user interface worksheet and main Sub procedure) to analyze data. d (mm) with room no room Top rim of cup 22 Rt 4.0 cm Rb 3.2 cm H 4.2 cm Averages: Fluid bottom of cup lost with room the User create output cells the average with your liquid depth measurements. Enter the input data shown. Create the three for depths and percentage of lost coffee for pours with "no room". Using your geometry reference book, you looked up the formula for calculating the volume of a right circular cone section: Hints: 1) Let e s cup cone angle from vertical, then tan(6) (R Rb)/H 2) Let Rrs the fluid level radius, then sin(6) (Rt Rr)/d. Write a Sub procedure that does the following: a. Reads the cup geometry into procedure variables, and the fluid depth measurements into a two-dimensional static array. b. Calculates the average depths for "with room" and for "no room", and write the results to the output cells. c. Calculates the volume of coffee for each case, storing these results in procedure variables. d. Calculates and writes out the percent of coffee lost for the "with room" case, relative to the "no room case. Solution public class MyCylinder 03 { 04 Â Â Â Â public static void main (String[] args) 05 Â Â Â Â { 06 Â Â Â Â Â Â Â Â double radius = Double.parseDouble(JOptionPane.showInputDialog(null,"enter radius")); 07 Â Â Â Â Â Â Â Â double Length = 1; 08 Â Â Â Â Â Â Â Â double volume = Math.PI * radius * radius * Length; 09 Â Â Â Â Â Â Â Â System.out.println("volume " + volume); 10 Â Â Â Â Â Â Â Â Â 11 Â Â Â Â } 12 }