SlideShare a Scribd company logo
Create a class called TempConverter
Write the main() method within the class
Declare a constant called BASE with the value 32. The data type must be int.
Declare a constant called CONVERSION_FACTOR having the value 9.0 / 5.0. The data type
must be double.
Declare two variables fahrenheitTemp and celsiusTemp. The data type must be double.
Accept the Celsius temperature from the user and assign it to celsiusTemp (Remember: To
accept input you have to import the java.util package and create the Scanner class object)
Calculate the Fahrenheit equivalent using the formula given above and store the result in
fahrenheitTemp
Display the Celsius temperature and its Fahrenheit equivalent

More Related Content

More from SeanuO9Payneq

Current and Deferred Taxes Accounting principles require us to recogni.docx
Current and Deferred Taxes Accounting principles require us to recogni.docxCurrent and Deferred Taxes Accounting principles require us to recogni.docx
Current and Deferred Taxes Accounting principles require us to recogni.docx
SeanuO9Payneq
 
Create a class in python called BankAccount with the following attribu.docx
Create a class in python called BankAccount with the following attribu.docxCreate a class in python called BankAccount with the following attribu.docx
Create a class in python called BankAccount with the following attribu.docx
SeanuO9Payneq
 
Cows have been bred by farmers over centuries to produce more milk- So.docx
Cows have been bred by farmers over centuries to produce more milk- So.docxCows have been bred by farmers over centuries to produce more milk- So.docx
Cows have been bred by farmers over centuries to produce more milk- So.docx
SeanuO9Payneq
 
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docxConvert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
SeanuO9Payneq
 
convert this the relational model to a UML diagram ( draw a UML diagra.docx
convert this the relational model to a UML diagram ( draw a UML diagra.docxconvert this the relational model to a UML diagram ( draw a UML diagra.docx
convert this the relational model to a UML diagram ( draw a UML diagra.docx
SeanuO9Payneq
 
Cornucopians are people who believe that the sheer number of people is.docx
Cornucopians are people who believe that the sheer number of people is.docxCornucopians are people who believe that the sheer number of people is.docx
Cornucopians are people who believe that the sheer number of people is.docx
SeanuO9Payneq
 
Create a project to compute your checking account balance- Form- Inclu.docx
Create a project to compute your checking account balance- Form- Inclu.docxCreate a project to compute your checking account balance- Form- Inclu.docx
Create a project to compute your checking account balance- Form- Inclu.docx
SeanuO9Payneq
 
Create a dichotomous key for the following arthropods with 13 possible.docx
Create a dichotomous key for the following arthropods with 13 possible.docxCreate a dichotomous key for the following arthropods with 13 possible.docx
Create a dichotomous key for the following arthropods with 13 possible.docx
SeanuO9Payneq
 
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docxCreate a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
SeanuO9Payneq
 
could you plase help me doing an ER diagram for the HU mentor program.docx
could you plase help me doing an ER diagram for the HU mentor program.docxcould you plase help me doing an ER diagram for the HU mentor program.docx
could you plase help me doing an ER diagram for the HU mentor program.docx
SeanuO9Payneq
 
Convert the following ER model to a dimensional model to evaluate the.docx
Convert the following ER model to a dimensional model to evaluate the.docxConvert the following ER model to a dimensional model to evaluate the.docx
Convert the following ER model to a dimensional model to evaluate the.docx
SeanuO9Payneq
 
Constuct a trequency datrbution and a relative frequency histogram bor.docx
Constuct a trequency datrbution and a relative frequency histogram bor.docxConstuct a trequency datrbution and a relative frequency histogram bor.docx
Constuct a trequency datrbution and a relative frequency histogram bor.docx
SeanuO9Payneq
 
Determining wages paid The wages payable and wages expense accounts at.docx
Determining wages paid The wages payable and wages expense accounts at.docxDetermining wages paid The wages payable and wages expense accounts at.docx
Determining wages paid The wages payable and wages expense accounts at.docx
SeanuO9Payneq
 
Design a secure and efficient wireless network for a three story offic.docx
Design a secure and efficient wireless network for a three story offic.docxDesign a secure and efficient wireless network for a three story offic.docx
Design a secure and efficient wireless network for a three story offic.docx
SeanuO9Payneq
 
Description of procedure- The patient was brought to the operating roo.docx
Description of procedure- The patient was brought to the operating roo.docxDescription of procedure- The patient was brought to the operating roo.docx
Description of procedure- The patient was brought to the operating roo.docx
SeanuO9Payneq
 
Describe the origin and fate of a lysosome enzyme- - Start with DNA in.docx
Describe the origin and fate of a lysosome enzyme- - Start with DNA in.docxDescribe the origin and fate of a lysosome enzyme- - Start with DNA in.docx
Describe the origin and fate of a lysosome enzyme- - Start with DNA in.docx
SeanuO9Payneq
 
Describe the effects of aging on the Integumentary system.docx
Describe the effects of aging on the Integumentary system.docxDescribe the effects of aging on the Integumentary system.docx
Describe the effects of aging on the Integumentary system.docx
SeanuO9Payneq
 
Describe Intramembranous Ossification.docx
Describe Intramembranous Ossification.docxDescribe Intramembranous Ossification.docx
Describe Intramembranous Ossification.docx
SeanuO9Payneq
 
Describe the different types of estimates in at least 1 paragraph-Expl.docx
Describe the different types of estimates in at least 1 paragraph-Expl.docxDescribe the different types of estimates in at least 1 paragraph-Expl.docx
Describe the different types of estimates in at least 1 paragraph-Expl.docx
SeanuO9Payneq
 
Derk owns 250 shares of stock in Rose Corporation- The remaining 750 s.docx
Derk owns 250 shares of stock in Rose Corporation- The remaining 750 s.docxDerk owns 250 shares of stock in Rose Corporation- The remaining 750 s.docx
Derk owns 250 shares of stock in Rose Corporation- The remaining 750 s.docx
SeanuO9Payneq
 

More from SeanuO9Payneq (20)

Current and Deferred Taxes Accounting principles require us to recogni.docx
Current and Deferred Taxes Accounting principles require us to recogni.docxCurrent and Deferred Taxes Accounting principles require us to recogni.docx
Current and Deferred Taxes Accounting principles require us to recogni.docx
 
Create a class in python called BankAccount with the following attribu.docx
Create a class in python called BankAccount with the following attribu.docxCreate a class in python called BankAccount with the following attribu.docx
Create a class in python called BankAccount with the following attribu.docx
 
Cows have been bred by farmers over centuries to produce more milk- So.docx
Cows have been bred by farmers over centuries to produce more milk- So.docxCows have been bred by farmers over centuries to produce more milk- So.docx
Cows have been bred by farmers over centuries to produce more milk- So.docx
 
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docxConvert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
 
convert this the relational model to a UML diagram ( draw a UML diagra.docx
convert this the relational model to a UML diagram ( draw a UML diagra.docxconvert this the relational model to a UML diagram ( draw a UML diagra.docx
convert this the relational model to a UML diagram ( draw a UML diagra.docx
 
Cornucopians are people who believe that the sheer number of people is.docx
Cornucopians are people who believe that the sheer number of people is.docxCornucopians are people who believe that the sheer number of people is.docx
Cornucopians are people who believe that the sheer number of people is.docx
 
Create a project to compute your checking account balance- Form- Inclu.docx
Create a project to compute your checking account balance- Form- Inclu.docxCreate a project to compute your checking account balance- Form- Inclu.docx
Create a project to compute your checking account balance- Form- Inclu.docx
 
Create a dichotomous key for the following arthropods with 13 possible.docx
Create a dichotomous key for the following arthropods with 13 possible.docxCreate a dichotomous key for the following arthropods with 13 possible.docx
Create a dichotomous key for the following arthropods with 13 possible.docx
 
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docxCreate a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
 
could you plase help me doing an ER diagram for the HU mentor program.docx
could you plase help me doing an ER diagram for the HU mentor program.docxcould you plase help me doing an ER diagram for the HU mentor program.docx
could you plase help me doing an ER diagram for the HU mentor program.docx
 
Convert the following ER model to a dimensional model to evaluate the.docx
Convert the following ER model to a dimensional model to evaluate the.docxConvert the following ER model to a dimensional model to evaluate the.docx
Convert the following ER model to a dimensional model to evaluate the.docx
 
Constuct a trequency datrbution and a relative frequency histogram bor.docx
Constuct a trequency datrbution and a relative frequency histogram bor.docxConstuct a trequency datrbution and a relative frequency histogram bor.docx
Constuct a trequency datrbution and a relative frequency histogram bor.docx
 
Determining wages paid The wages payable and wages expense accounts at.docx
Determining wages paid The wages payable and wages expense accounts at.docxDetermining wages paid The wages payable and wages expense accounts at.docx
Determining wages paid The wages payable and wages expense accounts at.docx
 
Design a secure and efficient wireless network for a three story offic.docx
Design a secure and efficient wireless network for a three story offic.docxDesign a secure and efficient wireless network for a three story offic.docx
Design a secure and efficient wireless network for a three story offic.docx
 
Description of procedure- The patient was brought to the operating roo.docx
Description of procedure- The patient was brought to the operating roo.docxDescription of procedure- The patient was brought to the operating roo.docx
Description of procedure- The patient was brought to the operating roo.docx
 
Describe the origin and fate of a lysosome enzyme- - Start with DNA in.docx
Describe the origin and fate of a lysosome enzyme- - Start with DNA in.docxDescribe the origin and fate of a lysosome enzyme- - Start with DNA in.docx
Describe the origin and fate of a lysosome enzyme- - Start with DNA in.docx
 
Describe the effects of aging on the Integumentary system.docx
Describe the effects of aging on the Integumentary system.docxDescribe the effects of aging on the Integumentary system.docx
Describe the effects of aging on the Integumentary system.docx
 
Describe Intramembranous Ossification.docx
Describe Intramembranous Ossification.docxDescribe Intramembranous Ossification.docx
Describe Intramembranous Ossification.docx
 
Describe the different types of estimates in at least 1 paragraph-Expl.docx
Describe the different types of estimates in at least 1 paragraph-Expl.docxDescribe the different types of estimates in at least 1 paragraph-Expl.docx
Describe the different types of estimates in at least 1 paragraph-Expl.docx
 
Derk owns 250 shares of stock in Rose Corporation- The remaining 750 s.docx
Derk owns 250 shares of stock in Rose Corporation- The remaining 750 s.docxDerk owns 250 shares of stock in Rose Corporation- The remaining 750 s.docx
Derk owns 250 shares of stock in Rose Corporation- The remaining 750 s.docx
 

Recently uploaded

math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
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
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
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
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 

Recently uploaded (20)

math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
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
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
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
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 

Create a class called TempConverter Write the main() method within the.docx

  • 1. Create a class called TempConverter Write the main() method within the class Declare a constant called BASE with the value 32. The data type must be int. Declare a constant called CONVERSION_FACTOR having the value 9.0 / 5.0. The data type must be double. Declare two variables fahrenheitTemp and celsiusTemp. The data type must be double. Accept the Celsius temperature from the user and assign it to celsiusTemp (Remember: To accept input you have to import the java.util package and create the Scanner class object) Calculate the Fahrenheit equivalent using the formula given above and store the result in fahrenheitTemp Display the Celsius temperature and its Fahrenheit equivalent