answersLogoWhite

0


Best Answer

There is no average command in VB. You would have to write your own method for that.

I would write it like this

Public double getAverage()

{

double average;

average = totalAdded/ totalNumbers;

return average;

}

You would have to have totalAdded and totalNumbers as an instance variable.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you give average command in a calculator in visual basic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Different basic command use in visual foxpro?

what are the basic commands in Fox Pro


What are some of the projects Visual Basic?

There are countless programs that can be created using Visual Basic. Here are a few: - Minesweeper - Coin change calculator - Pacman - Text Editor - Random key generator - Calculator - Web Browser - Hangman


What are the events in visual basic?

every operating action you do or simply a response to a click of a command.


What Visual Basic command terminates a running program?

...the END statement. Example code... END


How can you open an external application in Visual studio 2005 using visual basic script?

To open a file simply use the command shell("directory")


Why is visual basic considered as a object oriented programming?

Visual Basic's form applications use objects such as Buttons and TextBoxes, these are known as objects, hence the name Object-Oriented. It is different to command line interfaces which only use text to communicate with the user, such as Command Prompt.


What is visual basic control?

Visual Basic Controls work on Visual Studio for Visual Basic and Applications that made by Visual Basic.


Comparison of visual basic and C?

The syntax and operation is very similar, but visual basic isn't as powerful. Think of it as a watered down, easier version of c. With C, you can create anything from a simple calculator application to a full blown operating system. Visual basic can't make anything as extensive as an operating system, but it is much faster to code in visual basic when you want to make form based programs, or applications.


The year of invention of visual basic?

Visual Basic was started in 1991.


Who invented the visual basic?

Visual Basic was created by a team at Microsoft.


Who developed visual basic?

Microsoft is the developer of visual basic


What is the difference between visual basic and visual c?

The programming language: Visual Basic is a BASIC-like (or BASIC-derived) language, Visual C is... well C.