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
snow_tiger [21]
3 years ago
5

Using the CelsiusToKelvin function as a guide, create a new function, changing the name to KelvinToCelsius, and modifying the fu

nction accordingly.
#include

double CelsiusToKelvin(double valueCelsius) {
double valueKelvin = 0.0;

valueKelvin = valueCelsius + 273.15;

return valueKelvin;
}


int main(void) {
double valueC = 0.0;
double valueK = 0.0;

valueC = 10.0;
printf("%lf C is %lf K\n", valueC, CelsiusToKelvin(valueC));

valueK = 283.15;
printf("%lf is %lf C\n", valueK, KelvinToCelsius(valueK));

return 0;
}

Computers and Technology
2 answers:
masya89 [10]3 years ago
6 0

Answer:

public static double kelvinToCelsius ( double valueKelvin ){

     double valueCelsius;

     

     valueCelsius = valueKelvin - 273.15;

     

     return valueCelsius;

     }

Explanation:

zubka84 [21]3 years ago
5 0

Answer:

The function modification to this question can be given as follows:

Modification Function:

double KelvinToCelsius(double valueKelvin) //defining method KelvinToCelsius

{

double valueCelsius = valueKelvin - 273.15; //defining variable valueCelsius and calculate value

return valueCelsius; //return value

}

The whole program to this question as follows:

Program:

#include <stdio.h> //include header file to use basic functions

double CelsiusToKelvin(double valueCelsius)//defining method CelsiusToKelvin

{

double valueKelvin = 0.0; //defining variable and assign a value

valueKelvin = valueCelsius + 273.15; //calculate value

return valueKelvin; //return value

}

double KelvinToCelsius(double valueKelvin) //defining method KelvinToCelsius

{

double valueCelsius = valueKelvin - 273.15; //defining variable valueCelsius and calculate value

return valueCelsius; //return value

}

int main() //defining main method

{

double valueC = 0.0,valueK = 0.0; //defining variable valueC and valueK assign value

valueC = 10.0; //change variable value

printf("%lf C is %lf K\n", valueC, CelsiusToKelvin(valueC));

valueK = 283.15; //change variable value

printf("%lf is %lf C\n", valueK, KelvinToCelsius(valueK));

return 0;

}

Output:

10.000000 C is 283.150000 K

283.150000 is 10.000000 C

Explanation:

In the above modification function, a function "KelvinToCelsius" is defined, which accepts double variable "valueKelvin" as a parameter, and the function returns a value, which is double type. Inside a function, another double variable valueCelsius is defined, which minus 273.15 from parameter value and, store this value in valueCelsius variable.

You might be interested in
Evaluate the merits of a hard disk drive or a solid state drive to use as the secondary storage
gavmur [86]

Answer:

good morning I am a little bit of a very nice and smart ways of learning and smart ways

5 0
3 years ago
Well I ended up figuring it out
coldgirl [10]

Immerse yourself in nature. Spending time in nature can reduce stress and increase feelings of vitality, awe, gratitude and compassion. The natural world helps remind people that they are but small beings on this planet and gives them a greater sense of the whole. Nature nurtures and restores. It is one of the greatest resources for happiness.

8 0
3 years ago
The key invention that enabled computers to go into every home and office is
Scrat [10]
<span><span />The Microprocessor is the key invention that enabled computers to go into every home and office. Microprocessor is a computer processor that enables the computer to run. It is also called as central processing unit. It is also a multipurpose and programmable device that accepts inputted data and process the data to provide an output. Microprocessor started from 8-bit design to 16bit, 32 bit, 64 bit and now it is produce a multi core design in the market. Faster and stronger design that can run heavier applications.</span>



8 0
4 years ago
Gabriel needs to create a formula that does not change when it is copied to cell b2. which formula should he create?
azamat
=sum(1+1)  it's a simple formula and won't change from any cells. Another you can do is to put a value in a specific cell, let's say, C3. Then have a formula that says, =sum(C3+2). But if you REALLY wanna impress someone - put a value in A1 - anything at all. Then put this formula in any other cell you want. If you change cells, you get a different answer. If you change the # in A1, you get different answers, all thanks to the RANDom function.  =SUM((RAND()*100)+A1)

4 0
4 years ago
Using computers can lead to a number of physical safety issues. State and explain TWO(2) of these types of issues.​​​​​
Ira Lisetskai [31]

The types of issues that is seen are:

  • Electrocution
  • Fire
  • Tripping over wires and others.

<h3>What is the physical safety about?</h3>

There are a lot of of physical safety issues that can come up from using ICT devices.

A fire outbreak can occur if there is an issue with the wiring of the computer system or when there is too much voltage supplied and this is therefore a type of physical safety issues in the computer room.

Note that Electrocution is said to be the death or bad injury that is known to be caused as a result of an electric shock from electric current that tends to pass through the body.

Hence, The types of issues that is seen are:

  • Electrocution
  • Fire
  • Tripping over wires and others.

Learn more about Electrocution from

brainly.com/question/1810934

#SPJ1

6 0
2 years ago
Other questions:
  • Chandra, a student working on a group project, is trying to decide how to have the whole group suggest revisions for an essay. S
    10·1 answer
  • 6. Write a program that can multiply an n x m matrix and m x n matrix together: The input specifications are these: Read n and m
    11·1 answer
  • Print person1's kids, apply the IncNumKids() function, and print again, outputting text as below. End each line with a newline.
    12·1 answer
  • What are the principal cybersecurity threats, both internal and external, and the principal safeguards that have been developed
    13·1 answer
  • When a module is executing what happens when the end of the module is reached?
    10·1 answer
  • True or false As the contents and topics of new magazines change year-to-year, you can see various trends and movements across s
    15·1 answer
  • What is a current trend in ERP systems?
    12·1 answer
  • How to tell if your cell phone is being tracked tapped or monitored by spy software?
    12·1 answer
  • The Horse table has the following columns:
    10·1 answer
  • Write algorithm and flowchart for the following<br>a.find the sum and average of any four numbers ​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!