Answer:
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim foodCharge, tax, tip, totalCharge As Double
foodCharge = Val(TextBox1.Text)
tax = 0.07 * foodCharge
tip = 0.15 * 100
totalCharge = foodCharge + tax + tip
Label5.Text = tax
Label6.Text = tip
Label7.Text = totalCharge
End Sub
End Class
Explanation:
- This is implemented using Visual Basic programming language
- Firstly we declared all the variables using DIM key word
- Then the calculation for each variable is done according to the specification of the question
- On the form (See attached Image) the controls for receiving the user input is created as well as the controls for the output.
- See the attached sample run below:
<span>Words or names defined by the programmers are called as programmer defined symbols or identifiers. These are called as variables which are just simple storage locations and making available for the program to use. No two variables are same in the code of the program.</span>
The answers are :
JPEG - Compresses well without losing quality, it should be used for the web
TIFF - Can be saved in an uncompressed file format with a high resolution, it is a common file format used for professional print services
BMP - Can be saved in a compressed or uncompressed file format, It is a common file format used for either web or print
<span>FLV or SWF - Used to publish a rendered video for use on the web</span>
C. The light bulb
Light is not a part of the flashlight and everything is working together to output light from the bulb