Block of Code

Practical Examples for Programmers

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

Temperature Conversions

Using Visual Basic, write a program that displays a Celsius-to-Fahrenheit conversion table in a list box. Entries in the table should range from 10 to 40 degrees Celsius in increments of 5 degrees. See the figure below. Note: The formula f = (9/5 * c) + 32 converts Celsius to Fahrenheit.

Temperature Conversions Screenshot

Suggested Control Names and Attributes:

Name Property Text Property Control Type Notes
 frmTemperatures Temperatures Form Holds Controls
 btnDisplay Display Conversion Table Button Triggers event to display table
 lstOutput ListBox Displays conversion table

Secondary Sidebar

This is the secondary sidebar

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