lmayer@elgin.edu

lab1

European Vacation lab

 

Problem 1: You are going on vacation in Europe and need to be able to convert miles to kilometers.  Write both a Qbasic and Visual Basic application to do this. Use the conversion of 1 mile equals 1.61.kilometers.

 

Problem 2: You are going on vacation in Europe. So that you know what type of coat to wear, you’ll need to be able to convert Celsius to Fahrenheit.  Write both a Qbasic and Visual Basic application to do this.
To convert a Celsius temperature into degrees Fahrenheit:

Tf = ((9/5)*Tc)+32

For example, to convert a Celsius temperature of 100 into degrees Fahrenheit, first multiply the Celsius temperature reading by nine-fifths to get 180. Then add 32 to 180 and get 212°F.