Laboratory 06
Laboratory 06
I. Objective:
At the end of this laboratory experiment, the students should be able to:
a) Learn how to use Visual Studio - VB.
b) Familiarize with the features, functions and capabilities of Visual Studio - VB
II. Materials:
Laptop/Desktop
Visual Studio
III. Overview:
Visual Studio is a powerful developer tool that you can use to complete the entire
development cycle in one place. It is a comprehensive integrated development
environment (IDE) that you can use to write, edit, debug, and build code, and then deploy
your app. Beyond code editing and debugging, Visual Studio includes compilers, code
completion tools, source control, extensions, and many more features to enhance every
stage of the software development process.
Visual Basic is often used in conjunction with the Windows Forms GUI library to make
desktop apps for Windows. Programming for Windows Forms with Visual Basic involves
dragging and dropping controls on a form using a GUI designer and writing corresponding
code for each control.
IV. Procedures/Problems:
Activity:
Requirements:
1. Allow the user to input for the four (4) resistor values and the voltage source.
2. When the user clicks the compute button, display the corresponding values in
the 3 tabs corresponding to the series, parallel and combination circuits. Make
sure to write the correct formula to compute the required values. Review your
Physics 2 notes.
3. Under Series and Parallel tabs, consider only the three (3) resistor values which
are connected as shown in the figure (in series and parallel) and the voltage
total value. Compute and display the required values as indicated on the form.
Page 1 of 2
CEA – Civil Engineering
COMPFP1 – COMPUTER FUNDAMENTALS AND PROGRAMMING
4. Under the Combination tab, consider the four (4) resistor values which are
connected in series and parallel and the voltage total value. Compute and
display the required values as indicated on the form.
5. Display the required values with four (4) decimal places and the appropriate unit
of measurements.
6. When the user clicks the clear button, remove (empty) all data entries including
the computed values in all tabs.
7. Terminate the program when terminate program button is clicked.
Sample Outputs:
Page 2 of 2