VB Exercise 4.9 - Exercise 4-9 .In this exercise you are...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Exercise 4-9 ….In this exercise you are given the Boiling and Freezing points of several substances. The challenge is to create a program that allows the user to input a temperature and finds which substances will Boil or freeze at that temperature. Below is the Form and code for this exercise. The constants at the beginning are not used; but they give the boiling and freezing points of each substance. Start Program Code 'A call to one of the Visual Basic libraries that allows use of ‘shortened control characters Imports Microsoft.VisualBasic.ControlChars Public Class Form1 Const MercBoil As Decimal = 676 'Mercury Boils at 676 degrees F Const MercFreeze As Decimal = -38 'Mercury Freezess at -38 ºF Const WaterBoil As Decimal = 212 'Water Boils at 212 degrees F Const WaterFreeze As Decimal = 32 'Water Freezes at 32 degrees F Const EABoil As Decimal = 172 'Ethyl Alcohol boils at 172 ºF Const EAFreeze As Decimal = -173 'Ethyl Alcohol Freezes at -173 ºF Const OxyBoil As Decimal = -306
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

VB Exercise 4.9 - Exercise 4-9 .In this exercise you are...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online