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
g100num [7]
3 years ago
15

(Temperature Conversions) Write a program that converts integer Fahrenheit temperatures from 0 to 212 degrees to floating-point

Celsius temperatures with 3 digits of precision. Perform the calculation using the formula celsius = 5.0 / 9.0 * ( fahrenheit - 32 ); The output should be printed in two right-justified columns of 10 characters each, and the Celsius temperatures should be preceded by a sign for both positive and negative values.
Computers and Technology
1 answer:
Kruka [31]3 years ago
6 0

Answer:

#include <stdio.h>

int main()

{

//Store temp in Fahrenheit

int temp_fahrenheit;

//store temp in Celsius

float temp_celsius;

printf("\nTemperature conversion from Fahrenheit to Celsius is given below: \n\n");

printf("\n%10s\t%12s\n\n", "Fahrenheit", "Celsius");

//For loop to convert

temp_fahrenheit=0;

while(temp_fahrenheit <= 212)

{

temp_celsius = 5.0 / 9.0 *(temp_fahrenheit - 32);

printf("%10d\t%12.3f\n", temp_fahrenheit, temp_celsius);

temp_fahrenheit++;

}

return 0;

}

Explanation:

The program above used a while loop for its implementation.

It is a temperature conversion program that converts integer Fahrenheit temperatures from 0 to 212 degrees to floating-point Celsius temperatures with 3 digits of precision.

This can be calculated or the calculation was Perform using the formula celsius = 5.0 / 9.0 * ( fahrenheit - 32 ).

The expected output was later printed in two right-justified columns of 10 characters each, and the Celsius temperatures was preceded by a sign for both positive and negative values.

You might be interested in
A file named numbers.txt contains an unknown number of lines, each consisting of a single positive integer. Write some code that
Nadusha1986 [10]

Answer:

What language?

Explanation:

7 0
3 years ago
What is one way to process your thoughts about the information you are reading?
tatuchka [14]
Make a connection to what you already know about the material
4 0
2 years ago
You have been doing a lot of web surfing lately as part of your research for your course and along the way you have noticed a gr
creativ13 [48]

The generated code component that executes on the web server is the following does Laura tell you is NOT a component of the active server page.

a. the generated code component that executes on the web server

<u>Explanation:</u>

Asp technology is where it is a combination of both  HTML and visual basic programming. Asp web pages are executed in server and display as Html to the end-users.

With the HTML coding, only static pages can be developed whereas through ASP web pages are developed and which contains visual basic coding languages and for client-side validates in ASP web pages either javascript or visual basic scripts are used.

Each ASP web pages are compiled at the server end and executed and complied out HTML pages are shown in web pages.

We need to install the ASP component at the server to execute the ASP web pages.

3 0
2 years ago
What is the part of a file, the .pptx, or .txt etc called?
Lunna [17]
It is called the file extension or filename extension. It is a suffix that indicates the file format.
7 0
3 years ago
Read 2 more answers
The user cannot use a computer system without.................... software<br><br>​
zheka24 [161]

Answer:

the user cannot use a computer system without hardware and software

4 0
3 years ago
Read 2 more answers
Other questions:
  • What is the difference between pulse code modulation and delta modulation? Provide examples.
    11·1 answer
  • Calculated fields can be entered in queries. What row should you type a calculated field in?
    13·1 answer
  • Given a floating point variable fraction, write a statement that displays the value of fraction on the screen. Do not display an
    13·1 answer
  • Karen took an assessment with 291 questions, and it described her preferred style of working, learning, leading, risk-taking and
    13·1 answer
  • What is an example of a governmental influence ?
    9·2 answers
  • What is the value of variable num after the following code segment is executed?
    5·1 answer
  • What are the four common tags used on webpages?
    11·1 answer
  • Microsoft vs Sony who wins ​
    13·2 answers
  • Write a program that produces an expense report for a trip to Lagos, Nigeria. Use the Internet to research the cost to travel to
    13·1 answer
  • An end-user license agreement protects _____.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!