[go: up one dir, main page]

0% found this document useful (0 votes)
55 views2 pages

Laboratory 06

This document provides an overview of a lab activity on Visual Basic. The objective is for students to learn how to use Visual Studio VB and familiarize themselves with its features. The activity involves building a program with a user interface that allows a user to input resistor values and voltage. It then displays computed values for series, parallel, and combination circuits in separate tabs when the user clicks "compute." The program should clear all data when the user clicks "clear" and terminate when the user clicks "terminate program."
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views2 pages

Laboratory 06

This document provides an overview of a lab activity on Visual Basic. The objective is for students to learn how to use Visual Studio VB and familiarize themselves with its features. The activity involves building a program with a user interface that allows a user to input resistor values and voltage. It then displays computed values for series, parallel, and combination circuits in separate tabs when the user clicks "compute." The program should clear all data when the user clicks "clear" and terminate when the user clicks "terminate program."
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CEA – Civil Engineering

COMPFP1 – COMPUTER FUNDAMENTALS AND PROGRAMMING

Name: ____________________ Date: __________________


Rating: _________________

Lab Activity #6:


Visual Basic

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 an object-oriented programming language developed by Microsoft. Using


Visual Basic makes it fast and easy to create type-safe .NET apps.

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:

Built a program that has the following user interface.

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

You might also like