Write a program which can hold 3 types of temperatures. Kelvin, Celsius and Fahrenheit in C#
  • 1st program will ask user to input type of temperature which can be (K, C & F).
     Next user will ask to enter temperature in that unit. 
    Our program will then convert that temperature into other two units and display all. 
    Please note that your class will have following features. 
    1. Attributes: Three attributes which can hold 3 types of temperature values 

    2. Constructors: Null and parametric constructors 

    3. Methods
    a. C to K
    b. C to F 
    c. K to C 
    d. K to F
    e. F to C
    f. F to K 

    4. Operators:
    a. Overload all arithmetic operators: +, -, *, / 
    b. Overload all relational operators: ==, !=, <=, >=, >, < 
    c. Overload Increment and decrement operators: ++, -- 
    d. Overload Arithmetic assignment operators: +=, -=, *=, /=

    5. Set & Get properties:
     All attributes will be private and provide both set and get properties for all attributes so that these can be accessed outside our class.
  • 2 Comments sorted by
  • please ask a specific question related to error.

  • Great Article… I love to read your articles because your writing style is too good, 
    its is very very helpful for all of us and I never get bored while reading your article because 
    it becomes more and more interesting from the starting lines until the end. So Thank you for sharing a 
    COOL Meaningful stuff with us…Keep it up..!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Optimum Creative