1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vesna_86 [32]
3 years ago
15

Write a VB program to convert a temperature from Celsius to Fahrenheit and vice versa.

Computers and Technology
1 answer:
Ugo [173]3 years ago
8 0

Answer:

Dim c As Double

Dim f As Double

Private Sub CmdClr_Click()

TxtInput.Text = “”

TxtInput.SetFocus

End Sub

Private Sub Command1_Click()

c = Val(TxtInput.Text)

If Val(c) = 0 And TxtInput = “” Then

MsgBox “Enter Any number”, vbInformation, “Result”

TxtInput.SetFocus

Else

f = 9 * c \ 5 + 32

MsgBox “Fahrenheit :” & ” ” & f, vbInformation, “Result”

End If

End Sub

Private Sub Command2_Click()

f = Val(TxtInput.Text)

If Val(c) = 0 And TxtInput = “” Then

MsgBox “Enter Any number”, vbInformation, “Result”

TxtInput.SetFocus

Else

c = (f – 32) * 5 \ 9

MsgBox “Celsius :” & ” ” & c, vbInformation, “Result”

End If

End Sub

Explanation:

You might be interested in
How many binary digits are in 10^100.
Basile [38]

Answer:

333 binary digits.

Explanation:

8 0
2 years ago
Since nobody answered, I'm gonna just try this again. I really need help with this so please-
pantera1 [17]

Answer:

3.8

Explanation:

5 0
3 years ago
A __________ is a repository of data gathered from operational data and other sources that is designed to serve a particular com
VMariaS [17]
Data Mart is a smaller amount of data that is collected from a data warehouse.
8 0
3 years ago
Many mobile computers and mobile devices use LCD monitors. What does LCD stand for?
erica [24]
Liquid crystal display
4 0
3 years ago
True or False? To use a C++ library function, you must use an #include directive to include the appropriate header file.
lakkis [162]

Answer:

True

Explanation:

While programming in most programming languages, one will have need to use functions and variables defined in other class libraries. in C++, these functions and variables' definitions are contained in Header files, which can be imported and used into any C++ program by using the pre-processor #include statement. This statement is the equivalent of import in java and copy in other languages. Popular header files are the Maths class (Allows use of maths functions like power, square roots exponentiation etc), the input/output (allows usage of cout print statement and cin input statement)

7 0
3 years ago
Other questions:
  • What are personal skills? A manner of individual style How a person manages and expresses oneself One's ability to excel at spor
    13·2 answers
  • Differences between iphone 6 and 6s
    6·1 answer
  • Which of the following is an example of indirect perception checking?
    7·2 answers
  • You’re dying to see the flaming eyelashes in concert this summer what’s the best way to cop a few tickets
    6·1 answer
  • Which of the following are correct? I. Hold the middle mouse button to rotate the model on the screen. II. To pan the model, hol
    15·1 answer
  • Explain the four misconceptions about entrepreneurship.
    7·1 answer
  • My brainly has broke- XD
    11·1 answer
  • What will be displayed in the console when this program runs?
    15·1 answer
  • list three things that can spoil a printer if they are not of the correct specification and what damage may be caused​
    9·1 answer
  • Suppose that you are given the following partial data segment. what value does idtype contain, in decimal?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!