Develop a basic temperature class

Assignment Help C/C++ Programming
Reference no: EM131366

You have to develop a basic temperature class.  Base skeleton code and a simple driver have been provided for you.  In this assignment, you must complete the subsequnt items:

double fahrenheitToCelsius(double f)

This function should convert the supplied Fahrenheit value into its Celsius equivalent.  The formula for doing so is:
        
double kelvinToCelsius(double k)

This function should convert the supplied Kelvin value into its Celsius equivalent.  The formula for doing so is:

double getTemperature(TemperatureScale_t scale) const

This function returns the internal representation of the temperature, stored in Celsius, to the requested temperature scale.

void addTemperature(double temperature, TemperatureScale_t scale)

This function adds the specified temperature, using the specified scale, to the current temperature.

void subtractTemperature(double temperature, TemperatureScale_t scale)

This function subtracts the specified temperature, using the specified scale, to the from the current temperature.

string toString(TemperatureScale_t output_scale = Celsius)

This function converts the Temperature into its string representation.  The conversion to Celsius is already provided and can be used as a template for outputting as Fahrenheit and Kelvin.

Reference no: EM131366

Questions Cloud

Total quality management : Total Quality Management and similar managerial commitments
Project plan written report : Sufficient information to enable the organisation's Board of Executives to understand the rationale for the program and the activities required to design, implement and evaluate the program including any additional data that would need to be colle..
Analyse the article or case study : Analyse the article or case study
Find an equation for the sphere : Find an equation for the sphere, in the form of a level surface
Develop a basic temperature class : You have to develop a basic temperature class
Catfish creek canoe company : Report on Catfish Creek Canoe Company
Case study (southwestern university) - forecasting problem : Case Study (Southwestern University) - Forecasting Problem
Relative positioning and interactive positioning : Relative Positioning and Interactive Positioning by Dragging and Clicking and some Simple Animation
Commercial law to open a meditation studio : Commercial Law open a meditation studio and looks around the inner city suburb of Paddington for suitable premises

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Design a nested program

How many levels of nesting are there in this design?

  Describe the probability of the moves

Write a program in C++ to describe the Probability of the moves

  Model-view-controller

Explain Model-View-Controller paradigm

  Develop a simple poker game

Develop a simple poker game

  Write two short c programs and solve exam-style problem

Write two short C programs and solve four exam-style problems.

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

  Prepare a linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM

  Calculation of mortgage interest rates

Instruction of pointers and the calculation of mortgage interest rates.

  Loops and if conditions

Write a program that requests a password

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd