SlideShare a Scribd company logo
1 of 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

More Related Content

More from 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
 

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

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Scopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsScopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS Publications
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 

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