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
____ are programs that enable the browser to work with an embedded object.
DerKrebs [107]
HTML's to learn more go to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed
5 0
4 years ago
Your company has decided to store data files in Cloud Storage. The data would be hosted in a regional bucket to start with. You
Natasha_Volkova [10]

1. Necessary backup from cloud storage to client workstation or desktop or pc.

2. Delete 30 day and one year data from cloud storage.

<u>Explanation:</u>

Purging the data is used in database where necessary backup and purging the data up to certain years. So that database is access will be faster.

At cloud storage it has very limited storage's and by increasing storage will cost more to company or organization, as best practices every 30 day the purge old data should done in cloud storage's and with necessary backup  to be taken as precautionary measurement.

Once data is completed more than one year, with necessary backup delete old year data from cloud storages. Some cases old dead account where been deactivated also can deleted depends of organizations policy.

7 0
3 years ago
The Transmission Control Protocol(TCP)/Internet Protocol (IP) was developed to allow computers to talk using a standard language
dusya [7]
And what is the rest of the question?
6 0
3 years ago
The statement:
Kobotan [32]

Answer:

D. int* ptr;

Explanation:

int *ptr; it is pointer used to hold address of another integer variable.In the options provided we have int ptr that is an integer variable of name ptr.

*int ptr; is wrong this will give error because first we have to write the data type.

int ptr*; is an integer varaible with name ptr*.

int* ptr; is a pointer which can hold the address of another integer varaible.

4 0
4 years ago
Why do people enjoy codehs
Alex73 [517]

Answer: this is a moral question, but here is my view

Explanation:

we get to learn about things like java which i am currently learning for AP computer science A

6 0
3 years ago
Other questions:
  • The process of deciding a court case based on the basis of previous decisions is the principle of which of the following?
    10·1 answer
  • A(n) ____ is an entry in a cell that contains text such as "2016 Sales" or "Travel Expenses."
    10·1 answer
  • A car has an odometer which at the start of a journey shows 99940 and at the end shows 00230.what is the result of subtracting 9
    11·1 answer
  • So if i was a you tuber and i went to a very popular site and posted my channel link but i am not a very big you tuber what woul
    13·1 answer
  • PLEASE HELP!! WILL GIVE BRAINLIEST!!
    14·2 answers
  • The variables xp and yp have both been declared as pointers to integers, and have been assigned values. Write the code to exchan
    6·1 answer
  • How can i get games on my chromebook after my school has blocked almost everything... even zoom!
    14·1 answer
  • Please help it’s timed
    11·1 answer
  • Access your Practice Lab titles Access your exercise content Reports and files Access your settings Access help and support Comp
    12·1 answer
  • Why does virtual reality rely on slightly different views for each eye?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!