Write a program that demonstrates the class

Assignment Help Basic Computer Science
Reference no: EM131111088

Need help with C++.

The following table lists the freezing and boiling points of several substances.

Substance Freezing Point Boiling Point
Ethyl Alcohol -173 172
Oxygen -362 -306
Water 32 212

Design a class that stores a temperature in a the appropriate accessor and mutator functions. In addition to appropriate constructors, the class should have the following member functions:

isEthylFreezing. This function should return the bool value true if the tem- perature stored in the temperature field is at or below the freezing point of ethyl alcohol. Otherwise, the function should return false.

isEthylBoiling. This function should return the bool value true if the temper- ature stored in the temperature field is at or above the boiling point of ethyl alcohol. Otherwise, the function should return false.

isOxygenFreezing. This function should return the bool value true if the tem- perature stored in the temperature field is at or below the freezing point of oxy- gen. Otherwise, the function should return false.

isOxygenBoiling. This function should return the bool value true if the tem- perature stored in the temperature field is at or above the boiling point of oxy- gen. Otherwise, the function should return false.

isWaterFreezing. This function should return the bool value true if the tem- perature stored in the temperature field is at or below the freezing point of water. Otherwise, the function should return false.

isWaterBoiling. This function should return the bool value true if the temper- ature stored in the temperature field is at or above the boiling point of water. Otherwise, the function should return false.

Write a program that demonstrates the class. The program should ask the user to enter a temperature, and then display a list of the substances that will freeze at that temperature and those that will boil at that temperature. For example, if the temperature is 20 the class should report that water will freeze and oxygen will boil at that temperature.

C++ language only.

Here is what the program output should look like with example input: -400

Reference no: EM131111088

Questions Cloud

Affan debt payments-to-income ratio : Affan Chawdry has monthly net income of $1,050. He has a house payment of $450 per month, a car loan with payments of $250 per month, a Visa card with payments of $50 per month, and a credit card with a local department store with payments of $100..
The pattern-analysis rules to the control chart : University of Waterloo (Canada) statistician S.H. Stciner applied control chart methodology to the manufacturing of a horseshoe-shaped metal fastener called a robotics clamp (Applied Statistics, Vol. 47,1998).
The piston on the double-acting cylinder : 2a)When the piston on the double-acting cylinder is retracted (completes the instroke), the piston activates the roller control the left side of the 5/3 pilot valve, releasing air at the top left of the 5/3 and causing the piston to outstroke. Air in..
How should a business use working capital analysis : Compare and contrast the Internal Rate of Return (IRR), the Net Present Value (NPV) and Payback approaches to capital rationing. Which do you think is better? Why? Provide examples and evidence from two articles from ProQuest to support your posi..
Write a program that demonstrates the class : Write a program that demonstrates the class. The program should ask the user to enter a temperature, and then display a list of the substances that will freeze at that temperature and those that will boil at that temperature. For example, if the t..
Annual interest rate of approximately : Please show your working-A person borrows $200 from a payday loan company, and pays $10 interest for two weeks. This would result in an annual interest rate of approximately ___ percent. Ignore compounding.
The process under statistical control : In their text, Quantitative Analysis of Management (1997), B. Render (Rollins College) and R. M. Stair (Florida State University), present the case of the Bayfield Mud Company. Bayfield supplies boxcars of 50-pound bags of mud treating agents to t..
Describe one organization/agency that would be involved : Describe one organization/agency that would be involved in care delivery for your hypothetical patient. Provide specific details related to: The geographic location in which it is located an dThe primary diagnosis of your hypothetical patient.
Quotations for numerous currencies : The "Market" section of the Bloomberg website provides interest rate quotations for numerous currencies. Its address is www.bloomberg.com.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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