Visual Basic Console Help!!!!!!!!!!!?

1.  Temperature Conversion

 

   Write a program to convert a tremperature in degrees Fahrenheit to degrees Celciur or vice versa depends on the input.

 

Program Input:

   degree (number, the temperature users want to convert), unit (character,  either C for Celsius of F for Fahrenheit)

Program Output:

   result (number, the temperature after conversion) runit (character, either C for Celsius or F for Farenheit)

Relevant Formula:

   Celsius = 5/9 (Fahrenheit – 32) or Fahrenheit = Celsius x 9/5 + 32

 

Sample Run:

 

? 10,C

   10 C is equal to 50 F

Would you like to do more conversion? (Yes/No)

? yes

Enter the temperature and unit to to convert:  (example: 10,C)

? 10,F

   10 F is equal to -12.22222 C

Would you like to do more conversion? (Yes or No)

? yes

Enter the temperature and unit to convert:  (example: 10,C)

? -40,C

-40 C is equal to -40 F

Would you like to do more conversion? (Yes/ No)

? yes

Enter the temperature and unit to convert:  (example 10,C)

? -40, C

? -40,C is equal to -40 F

Would you like to do more conversion? (Yes/No)

? yes

Enter the temperature and unit to convert: (example: 10,C)

? 10,D

Invalid unit please try again

Would you like to do more conversion? (Yes/No)

? no

 

 

 

Problem requirement:

 

1.  Use looping to repeat the program execution until user enter “No”

2.  If users enter invalid unit (i.e. other than C and F), display an error message

3.  Program should run correctly with the same inputs and outputs as given in the Sample Run

Advertisements
This entry was posted in Visual display unit and tagged , , , . Bookmark the permalink.

One Response to Visual Basic Console Help!!!!!!!!!!!?

  1. Jake H says:

    You will never amount to anything in life you cannot write sucha simple program … you phail … with a ph!

    kthxbai

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s