Explore BrainMass
Share

Explore BrainMass

    Application for Geometric Calculations VB.NET

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    You have been hired by an engineering company to develop software to perform advanced geometric calculation. Your new boss asked you to develop an application that allows engineers to calculate the surface area and the volume of a sphere. For this, you will need to use the following formulas.

    Surface Area p = 4r2
    Volume = 4/3 p r3

    Remember p is equal to 3.14.

    1.Allow the user to enter one value in the application (i.e., the radius value).
    2.Use NumericUpdown controls to allow the user to enter the values.
    3.Display the result in a text box and set it as read-only.
    4.Make the Calculate button the Accept button.
    5.Create a Clear button to clear the result text box and reset both NumericUpdown controls.
    6.Create an Exit button.
    7.Use labels to identify the input and output controls.
    8.Create a radio button group that will allow the user to choose which calculation to perform in the application (surface area or volume).
    9.Use a group box to enclose the radio buttons.

    © BrainMass Inc. brainmass.com October 9, 2019, 6:19 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/application-geometric-calculations-vb-net-85205

    Solution Summary

    ========================================================================
    MICROSOFT FOUNDATION CLASS LIBRARY : geom3
    ========================================================================

    AppWizard has created this geom3 application for you. This application
    not only demonstrates the basics of using the Microsoft Foundation classes
    but is also a starting point for writing your application.

    This file contains a summary of what you will find in each of the files that
    make up your geom3 application.

    geom3.dsp
    This file (the project file) contains information at the project level and
    is used to build a single project or subproject. Other users can share the
    project (.dsp) file, but they should export the makefiles locally.

    geom3.h
    This is the main header file for the application. It includes other
    project specific headers (including Resource.h) and declares the
    CGeom3App application class.

    geom3.cpp
    This is the main application source file that contains the application
    class CGeom3App.

    geom3.rc
    This is a listing of all of the Microsoft Windows resources that the
    program uses. It includes the icons, bitmaps, and cursors that are stored
    in the RES subdirectory. This file can be directly edited in Microsoft
    Visual C++.

    geom3.clw
    This file contains information used by ClassWizard to edit existing
    classes or add new classes. ClassWizard also uses this file to store
    information needed to create and edit message maps and dialog data
    maps and to create prototype member functions.

    resgeom3.ico
    This is an icon file, which is used as the application's icon. This
    icon is included by the main resource file geom3.rc.

    resgeom3.rc2
    This file contains resources that are not edited by Microsoft
    Visual C++. You should place all resources not editable by
    the resource editor in this file.

    /////////////////////////////////////////////////////////////////////////////

    AppWizard creates one dialog class:

    geom3Dlg.h, geom3Dlg.cpp - the dialog
    These files contain your CGeom3Dlg class. This class defines
    the behavior of your application's main dialog. The dialog's
    template is in geom3.rc, which can be edited in Microsoft
    Visual C++.

    /////////////////////////////////////////////////////////////////////////////

    Other standard files:

    StdAfx.h, StdAfx.cpp
    These files are used to build a precompiled header (PCH) file
    named geom3.pch and a precompiled types file named StdAfx.obj.

    Resource.h
    This is the standard header file, which defines new resource IDs.
    Microsoft Visual C++ reads and updates this file.

    /////////////////////////////////////////////////////////////////////////////

    $2.19