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:
Answer: The standard web component layouts and templates makes the web page seem like many others but could also make it easier for users to interact and use the web page without much trouble. The approaches do limit creativity and originality in web page design but its better to have an easy to use web page that can still look good rather than something that is confusing for the users.
Explanation:
Answer:
Your answer will be output.
Hope this helps!
Answer:
The answer to the given question is the option "a".
Explanation:
A function is a block of organized code that provides the reusability of the code. It is used to perform a separate, complex action. In programming languages name is different like, functions, methods, subroutines, procedures, etc. but the working of the function is the same. The purpose of the function that does not return a value is the option
"a" and All the options are correct.
Answer:
A key benefit of inheritance is: an object can have several types, it is type compatible with any of its super classes
Explanation:
- Inheritance is one of the fundamental concepts of Object Oriented Programming.
- Inheritance allows classes (derived classes) to inherit the methods and properties of a class (base class).
- The class or classes that inherits the characteristics from another class is called a derived class, child class or sub class. Derived class can also has it own methods and attributes additionally.
- The class whose methods and properties are inherited by the derived class or classes is called a base class, super class or a parent class.
- Benefit of inheritance is that inheritance new objects can take properties of existing objects and an object can have many types.
- Also a child class can inherit from more than one super classes which is called multiple inheritance.
- Multiple inheritance allows a class to implement more than one abstract classes.
- An object can have several types. These types can be of an object's own class and also other types which include all classes that a class inherits.
- If a variable is declared to be the type of super class then value of that variable can refer to any instance that instantiated from any class that inherits that super class. This means that an object is type compatible with an of its super classes.