Purchase Solution

Programming in visual basic

Not what you're looking for?

Ask Custom Question

Create a calculator application.

The user interface should consist of buttons for the digits 0 through 9, a button for each arithmetic operator, a Clear button and two label boxes to display the results. One label box should hold the current number and be located at the top of the form. The other label box should be located to the right of the calculator buttons. As you click each numeric button, the number is appended to the current number that appears in the label at the top of the form. When you click an arithmetic operator button, the current number and the operator should be appended to the display in the label at the right of the form on a new line, followed by the result of the calculation on a new line, and the contents of the current number label box should be cleared.

The application must have a menu system that allows the user to change the font and color of the label boxes, show the "About" dialog box, and gracefully exit the application.

Program Requirements
You must center the form on the screen.
You must use label boxes for on-screen output.
You must use labels to make the application understandable
You must catch any arithmetic exceptions that occur during calculations and display an error message
You must use at least one user-defined FUNCTION and one user-defined SUB procedure.
You must have an "About"dialog box with information about yourself.
You must provide a graceful exit on the menu.

Purchase this Solution

Solution Summary

The solution discusses programming in visual basic.

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.