VS 2010 Calculating Perimeter Of A Triangle?

Feb 24, 2011

Calculating Perimeter of a triangle

View 2 Replies


ADVERTISEMENT

Finding Area And Perimeter Of A Rectangle?

Sep 8, 2009

OK, so I just started this VB programming class at school. But I don't understand much because the teacher doesn't really teach us. He just types everything on the projector and expects us to keep up. We have this project in which we are supposed to build a form that accepts the length and width of a rectangle, and calculates the area and perimeter of the rectangle. CAN SOMEBODY PLEASE HELP ME?? I really have no clue how to do this, and more than half the other people in our class don't either, so finding help within the class is pretty much out of the question.

The user enters values for the length and width of a rectangle and clicks the Calculate button or presses the Enter key to activate that button. The application then displays the area and perimeter of the rectangle in the third and fourth labels on the right side of the form.

Specifications The formula for calculating the area is width * length. The formula for calculating the perimeter is 2 * width + 2 * length. The application should accept fractional decimal entries like 10.5 and 20.65. Assume that the user will enter valid numeric data for the length and width.

View 39 Replies

VB 2010 Pythagorean Theorem - Find The C In A Triangle

Nov 7, 2011

This morning we started doing a pythagorean theorem which basicly will convert a set of numbers into the answer. The theorem is a� + b� = c Basicly I wan't it to find the C in a triangle. Some thing I were told that we should use are :

[Code]....

View 10 Replies

VS 2010 Making A Logic For Pascal's Triangle

Jul 15, 2011

I've done many attempts but still didn't succeed in making a logic for pascal's triangle, I want you guys to get me start this task and I'll code it myself. url....

View 5 Replies

VS 2010 : Calculating Circumference And Radius?

Apr 20, 2011

im creating 2 programs for school but both have errors. One program will calculate circumference and area when you enter a radius. Heres the

Public Class Form1
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If TextBox1.Text <= 0 Then
TextBox2.AppendText("Enter a valid number.")

[code]....

View 4 Replies

VS 2010 Downloader, Calculating Speed?

Dec 10, 2011

Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click
Timer1.Start()

[code].....

View 24 Replies

VS 2010 - Calculating Type Of Combinations Of Character

Oct 4, 2010

I have a string that can be anywhere from 1 to 8 digits long of which each character is a hex number (0-9, A-F) and each character isn't necessarily unique. I need to calculate all possible combinations. Is there a specific term for this type of calculation or combination? I need to learn how to write a program to "calculate" all the possible combinations.

View 2 Replies

VS 2010 : Calculating The Price Of A Meal+taxes?

Sep 19, 2011

I need to create a simple program that will calculate de price of the meal+the taxes aswell as the tip.

The prov taxe= 8,5%
the fed taxe = 8%
and the tip is 15%

I need to use const for this one.heres what i came up with:

Private Sub partie4_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles partie4.Click
Dim repas As String
Dim sous_total As String

[code]....

The user has to type the price of the meal and then it should calculate the price but for some reason instead of *8,5% it will do x*8.5.

View 4 Replies

VS 2010 Calculating Staff Holiday Days

Dec 14, 2010

Currently I was making a program that will store staff holidays, with a form they can fill out when they take some.The form has Holiday Start and Holiday Finish as 2 Date Fields.Also 7 Check boxes(Monday to Sunday) so they can tick which days they would normally work.The problem i have is then we need to know how many days are being taken, for example.[code]But they have ticked they only work Tuesdays and Thursdays this means they would have only took 2 days holiday.How could i calculate this say if an employee took 1 month?

View 2 Replies

Visual Basic 2010 - Calculating The Difference Between Times?

Oct 19, 2011

I am trying to calculate the difference between 2 times.

So far I have 4 labels.

Label1 = Current date and time.
Label2 = Contains the exact time that the application was last closed.
Label3 = Contains the exact time that the application was opened.

Label4 = I want this label to say how much time in seconds had elapsed between the application last being closed and the application being opened again, in other words the difference in seconds between label 2 and label 3.

Below is what I have done so far, but despite repeated efforts I can't seem to find a way of getting the time difference to show in label 4?

[Code]....

View 5 Replies

VS 2010 (One App): 24-bit Word - Creating UDP Datagram - Calculating Checksum

Sep 22, 2011

I'm trying to create an app that controls a BSS BLU-80 (DSP) through Ethernet. I've written a few basic programs in the past, but nothing that used sockets or even required calculating a checksum. One of the values I need to send has to be 24 bits. This one really has me scratching my head. From the manufacturer's docs:

[Code]...

View 5 Replies

Best Way To Draw Triangle

Feb 1, 2010

I'm creating a movable scenary with, like 100 different flights. I want to create for every type of flight a triangle...so it's moves around and you have an idea how the airspace looksq like at what moment.Now my question is, what's the best way to draw these rectangles? I created a class 'Flight' and it has a Graphicspath in it. Now I want to update the triangle, which represents the aircraft, with the speed and heading...so it moves around well.

View 3 Replies

How To Fill A Triangle

Mar 20, 2010

Dim blackPen As New Pen(Color.Black, 3)
Dim ptsArray As PointF() = {New PointF(100.0F, 120.0F), New PointF(70.0F, 60.0F), _
New PointF(40.0F, 120.0F), New PointF(100.0F, 120.0F)}
e.Graphics.DrawLines(blackPen, ptsArray)

I have the outline of a triangle right where I want it. I need to fill it so it's a solid color. Can anyone give me a start on filling it? (Using VB.NET 2008)

View 3 Replies

Way To Draw A Triangle

Jun 18, 2009

How do I draw a triangle?

View 10 Replies

Way To Texture A Triangle (2D)

Nov 24, 2010

Currently working on a 2D engine, not for gaming but for design software / visualisation for machines. So far it is comming along quite fine. I started to wonder if it were possible to draw a triangle and fill it with some form of a a texture, or even better a polygon and fill that with a texture.

I know that DX can do that for me :P but I am realy focussing on GDI+ at the moment.

View 1 Replies

Calculate Angles Of A Triangle?

Nov 9, 2009

How can i calculate the angles of a triangle, where i have the lengths in cm of all 3 sides?

heres an example where i already know the angles. i know its a sin, cos or tan formula, but nothing i've tried works.

View 14 Replies

How To Draw Right And Spherical Triangle

Nov 12, 2009

How to draw a right triangle and spherical triangle using vb.net 2008? Where you're going to consider the angles and sides of the triangles.......

View 1 Replies

How To Print A Triangle Of Stars

Sep 19, 2007

triangle of stars like the one shown below
*
* *
* * *
* * * *

View 5 Replies

Make An INVERTED Triangle With *'s

Apr 14, 2011

I am taking an Intro to VB class in college and for on of our assignments we need to make several shapes with *'s. The user is prompted by an input box where they decide how large to make the shapes. The only one that I am struggling with is the inverted triangle. Here is what it should look like if the user would select to have 5 rows.

* * * * *
* * * *
* * *
* *
*

Here is the code that I have written for the REGULAR triangle.

Private Sub btnTriangle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTriangle.Click
Dim numstars As Integer

[Code].....

View 4 Replies

Make An INVERTED Triangle With *'s?

Jan 7, 2012

make an INVERTED triangle with *'s

View 4 Replies

Point Inside A Triangle Or Not

Mar 10, 2009

i was asked to do a program which can find if a 2d point is inside a triangle or not, only the 3 points of the triangle were given. i planned to do this using the slopes of the 3 sides, then with y-y1=m(x-x1) using the other vertex and the point being checked see if the slope was the same sign and on the same side of the line. if this was true for all 3 then the point is inside the triangle the problem is i cant think of a logical expression for the if/then/else structure to show this anyone know what i should use or should i just go down a completely different route?

View 3 Replies

Printing An Inverse Triangle?

Jun 10, 2010

I need to figure out how to print a triangle on a console application such that it looks as follows:

View 2 Replies

Inverted Triangle In Menustrip Text

Nov 17, 2011

I have a menu strip on a form and to assist the users and to make it more aesthetically pleasing I want to add an inverted triangle at the end of each menu title to make it more obvious there are other options available if you click on it.I am currently using Times New Roman as a font but that can be changed if necessary.

View 4 Replies

Create An Asterisks Triangle In A Richtextbox?

Mar 30, 2012

i'm trying to create an asterisks triangle in a richtextbox. the design that i need is

---------*
--------**
-------***

[code]....

all the way down to 10 asterisk at the bottom and 9 spaces a 1 asterisks at the top. I'm a beginner to visual basic and coding in general.

The code that i have right now is:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim Stars, Lines As Integer

[Code]....

View 6 Replies

Draw A Random Triangle In A Timer?

Sep 26, 2009

i'm trying to draw a random triangle in a timer, + draw an arc + the angle in degrees in each angle. i can't get drawarc working.

heres my code:

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code].....

View 4 Replies

Edit The Form1's Shape Like Triangle?

Dec 28, 2010

How to edit my Form1's shape like triangle

View 9 Replies

How To Calculate Angles Of Right Triangle Given Lengths

Apr 5, 2011

I'm working on a Pythagorean Theorem program that calculates the sides and angles of a right triangle. I have the side measurements and all that down, but I can't find the Visual Basic function that will allow me to calculate the angles from the side measurements. I've tried asin and sinh, but both give me the wrong measure.

View 2 Replies

Structures - How To Find Hypotenuse For Triangle

Sep 29, 2009

I am working with a structure for a triangle.

Here is the code:
Public Structure Triangle
Shared a As Double = 1
Shared b As Double = 1
Shared c As Double = Triangle.FindC
Public angleABC As Double
[Code] .....

I am receiving an error in the function. "Triangle.angleABC" is generating :"Reference to a non-shared member requires an object reference". I need to find the hypotenuse for this Triangle. I have tried setting the variable as an object, this does nothing for the error. Also I've tried to use Public in the function and I receive an error stating it needs to be shared. I would like to work the the Structure with out running any functions on it first.

View 1 Replies

Create An Application That Creates Pascal's Triangle?

Nov 2, 2011

I need to create an application that creates Pascal's triangle the user would enter the number of rows, and using the formula (which i do not know... :/) would create the triangle. For example: the user enters 5 rows
triangle:

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1

as you can see the numbers are created by adding the 2 numbers above it starting with 1 at the top

View 6 Replies

Forms :: How To Remove 'resize Triangle' From StatusStrip

Feb 17, 2011

I have a Form with a StatusStrip Component docked at the bottom.The form has fixed width and is not resizable.However the StatusStrip has a little 'resize triangle' at the right. (6 little dots)This gives the impression that the window is resizable.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved