Block of Code

Practical Examples for Programmers

  • Home
  • C++
  • Java
  • Visual Basic
  • Discrete Math
  • Ask a Question

Convert Temperatures

Write a program to synchronize the two thermometers shown in the Temperatures form in the figure below. When the scroll box of either thermometer is moved, the other thermometer should move to the corresponding temperature, and the two temperatures displayed above the thermometers should be updated.  Note:  F = (9/5)C + 32.

Convert Temperatures Screenshot

Suggested Control Names and Attributes( without container ):

Name Property Text Property Control Type Notes
 frmTemperature  Temperature Form Holds Controls
 txtFahrenheit TextBox Displays Fahrenheit temperature.  Read Only.
 txtCelsius TextBox Displays Celsius temperature.  Read Only.
 vsbFahrenheit VerticalScrollBar Adjust Fahrenheit temperature
 vsbCelsius VerticalScrollBar Adjust Celsius temperature

Secondary Sidebar

This is the secondary sidebar

Copyright © 2025 · Metro Pro Theme on Genesis Framework · WordPress · Log in