1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lyrx [107]
3 years ago
15

Write the pseudocode for the following: A function called fahrenheitToCelsius that accepts a Real Fahrenheit temperature, perfor

ms the conversion, and returns the Real Celsius temperature. A function called celsiusToFahrenheit that accepts a Real Celsius temperature, performs the conversion, and returns the Real Fahrenheit temperature. A main module that asks user to enter a Fahrenheit temperature, calls the fahrenheitToCelsius function, and displays the Celsius temperature with a user-friendly message. It then asks the user to enter a Celsius temperature, calls the celsiusToFahrenheit function, and displays the Fahrenheit temperature with a user-friendly message.
Computers and Technology
1 answer:
V125BC [204]3 years ago
8 0

Explanation:

import java.util.Scanner;

public class Main{

    public  static float CtoF(float celsius)

    {

        return 9 * (celsius / 5) + 32;

    }

public  static float FtoC(float fahrenheit)

{

   return (fahrenheit - 32) * 5 / 9;

}

    public static void main(String []args){

       System.out.println("Hello World");

       float temperature;

       Scanner in = new Scanner(System.in);

   System.out.println("Enter temperature in Fahrenheit");

   temperature = in.nextFloat();

   System.out.println("Fahrenheit value = " + FtoC(temperature));

   System.out.println("Enter temperature in Fahrenheit");

   temperature = in.nextFloat();

   System.out.println("Celcius value = " + CtoF(temperature));

    }

}

In this program we get input through the scanner object and it needs "java.util.Scanner" header file. We are getting the relevant input and that input is passed on the relevant function which has the ability to convert to Celsius and Fahrenheit.

Formula:

To Fahrenheit: 9 * (celsius / 5) + 32;

To celcius: (fahrenheit - 32) * 5 / 9;

You might be interested in
The sign used for closing a tag is​
iragen [17]

Answer:

The sign used for closing a tag is answer is /.

Explanation:

I program all the time and when I am programming in HTML I use tags all the time so I basically memorized it.

8 0
3 years ago
Most nosql data stores were created to address problems associated with storing large amounts of distributed data in __________.
finlep [7]
NoSQL is primarily designed for supporting the decision making systems. Most NoSQL data stores were created to address problems associated with storing large amounts of distributed data in relational database management systems(RDBMS).
RDBMS is system used for the management of the database.D<span>ata is stored in the form of related tables.</span>
3 0
4 years ago
Henry conducted a survey on an ad done by his company. In the survey, he asked people to evaluate the ad and state whether they
Llana [10]
The answer is (C) Rating scale test

These are set of categories designed to get a response from set information about a qualitative or a quantitative attribute. Common examples include a 1-10 rating scale or the Likert response scale. One is required to select a number or an option considered to reflect the perceived quality of something, say a product.






4 0
4 years ago
Emily created her company's first newsletter. She made sure to repeat design elements such as color schemes and
max2010maxim [7]

Answer:

Her goal was to Provide consistency

Explanation:

i dont rly have one

8 0
3 years ago
What is adobe photoshop?
Hitman42 [59]
Its a photoshop that u need to pay for
4 0
3 years ago
Read 2 more answers
Other questions:
  • Someone who participates online for social reasons usually has a:
    9·1 answer
  • What is the purpose of system calls, and how do system calls relate to the OS and to the concept of dual-mode (kernel-mode and u
    14·1 answer
  • Toshiba Corporation makes computer chips. Toshiba Corporation would be classified as a A. merchandising company. B. manufacturin
    15·1 answer
  • In JAVA please:
    15·1 answer
  • which of the following uses technical and artistic skills to create visual products that communicate information to an audience?
    14·1 answer
  • Is anyone else recieving a notification from brainly near the search bar about a message and click it and there nothing there???
    8·1 answer
  • The mainframe computer are the ____ and most ____ computers..​
    11·1 answer
  • Write a program that will input temperatures for consecutive days. The program will store these values into an array and call a
    9·1 answer
  • What are the ten application areas of computer?​
    10·1 answer
  • If you are going to develop a special computer, what would it be and explain it's purpose.​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!