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
patriot [66]
3 years ago
5

#include using namespace std; double CelsiusToKelvin(double valueCelsius) { double valueKelvin; valueKelvin = valueCelsius + 273

.15; return valueKelvin; } /* Your solution goes here */ int main() { double valueC; double valueK; valueC = 10.0; cout << valueC << " C is " << CelsiusToKelvin(valueC) << " K" << endl; cin >> valueK; cout << valueK << " is " << KelvinToCelsius(valueK) << " C" << endl; return 0; }
Computers and Technology
1 answer:
otez555 [7]3 years ago
3 0

Answer:

//Below are the function which the user needs to add on the place of the "Your solution goes here".

double KelvinToCelsius(double valueKelvin)

{

   double valueCelsius;

   valueCelsius = valueKelvin - 273.15;

   return valueCelsius;

}

Explanation:

Missing information : The above question is missing which states to define one function which name is "KelvinToCelsius" and which takes one argument and changes the kelvin value into Celsius value. One header file syntax is also missing on the above question.

  • The above question wants to add a function to the place of the "Your solution goes here" and the work of the function is defined on the question.
  • So the above-defined function is used to return the value of Celsius if the user passes the value of kelvin.
  • The above-question also holds one function which takes the value of kelvin and returned Celsius, which returns value "283.15".
  • So if a user passes "283.15 for the kelvin value, then he got 10 which is defined as Celsius value on the question".
You might be interested in
Question # 4
natka813 [3]

Answer:

class

Explanation:

edg2020

4 0
3 years ago
So I emailed Brainly to deleted my account. Why haven’t they done so yet? I don’t want to get charged money for this app I was p
joja [24]

Answer:

Go to the Use the profile settings page. Click on "I want to delete my account" button located inside the Privacy tab on your profile settings page. Enter your Password.

Explanation:

8 0
3 years ago
In Java: Write a class called Shelf that contains instance data that repre-sents the length, breadth, and capacity of the shelf.
disa [49]

Answer:see explanation

Explanation:

Hello, the solution is the following:

in a file named Shelf.java :

public class Shelf{

   int length;

   int breadth;

   int capacity;

   boolean occupied;

   Shelf(int length,int breadth, int capacity){

       this.length = length;

       this.breadth = breadth;

       this.capacity = capacity;

       this.occupied = false;

   }

   

   //set methods

   public void setLength(int length){

       this.length = length;

   }

   public void setBreadth(int breadth){

       this.breadth = breadth;

   }

   public void setCapacity(int capacity){

       this.capacity = capacity;

   }

   public void setOccupied(boolean occupied){

       this.occupied = occupied;

   }

   

   //get methods

   public int getLength(){

       return this.length;

   }

   public int getBreadth(){

       return this.breadth;

   }

   public int getCapacity(){

       return this.capacity;

   }

   public boolean getOccupied(){

       return this.occupied;

   }

   

   //tostring method

   

   public String toString(){//overriding the toString() method  

 return "Shelf: \n"+" length: "+Integer.toString(this.length)+" breadth: "+Integer.toString(this.breadth)+" capacity: "+Integer.toString(this.capacity)+" occupied: "+Boolean.toString(this.occupied);

}  

}

in another file named ShelfCheck.java

public class ShelfCheck {

 public static void main(String[] args) {

   Shelf s1=new Shelf(100,150,300);

   Shelf s2=new Shelf(200,200,234);  

   Shelf s3=new Shelf(300,222,543);  

   Shelf s4=new Shelf(400,434,654);

   System.out.println(s1);

   System.out.println(s2);

   System.out.println(s3);

   System.out.println(s4);

   s4.setLength(5);

   System.out.println(s4);

   s2.setBreadth(2);

   System.out.println(s2);

   s3.setCapacity(1);

   System.out.println(s3);

   s1.setOccupied(true);

   System.out.println(s1);

 }

}

OUTPUT:

Shelf:

length: 100 breadth: 150 capacity: 300 occupied: false

Shelf:

length: 200 breadth: 200 capacity: 234 occupied: false

Shelf:

length: 300 breadth: 222 capacity: 543 occupied: false

Shelf:

length: 400 breadth: 434 capacity: 654 occupied: false

Shelf:

length: 5 breadth: 434 capacity: 654 occupied: false

Shelf:

length: 200 breadth: 2 capacity: 234 occupied: false

Shelf:

length: 300 breadth: 222 capacity: 1 occupied: false

Shelf:

length: 100 breadth: 150 capacity: 300 occupied: true

5 0
2 years ago
Write. A program to fine the difference of two number 25 and 17 . Also displays the output
Anon25 [30]

Answer:

Answer = 25-17

print("25-17", Answer)

Explanation:

You put the sum into a variable which in this case would be Answer and then you can output it with the question.

6 0
2 years ago
Hioo ^U^
AlexFokin [52]

Answer:

Hie ......... . thanks for the points

Have a good day

6 0
3 years ago
Other questions:
  • The item in this illustration that is highlighted is the _____. quick access tool bar view buttons status bar zoom control
    10·2 answers
  • 1. What does it mean to say that a country’s land area is positively correlated with its population?
    12·2 answers
  • Together, what do the divisions of the DHSMV do?
    12·1 answer
  • The area on your screen where you can access the tab and menu options for word is called what?
    8·2 answers
  • Refer to the exhibit. If a hacker on the outside network sends an IP packet with source address 172.30.1.50, destination address
    11·1 answer
  • Who is the founder of javascript? ​
    14·2 answers
  • A(n) ______ system is a set of programs that coordinates all the activities among computer or mobile device hardware. a. managem
    10·1 answer
  • Where would you go to access frequently used icons?
    12·2 answers
  • What is a characteristic of high-level languages?
    15·1 answer
  • Many ____ classes for certification are available on the Internet and by many companies that have set up intranets within their
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!