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
ADVERTISEMENT
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
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
Jul 16, 2010
I have created an shareware application using vb.net visual studio 2008 for windows desktop, and packaged it using innosetup 5.3.8. The problem is when i have installed the application in C:Program FilesApplication and it runs successfully(use trial period of the application), Im also able to install the application once again freshly with the same setup by installing in different directory.eg C:Program FilesApplication new . The application in C:Program FilesApplication new does not have any settings of the already installed one.
Where do i went wrong . Do i need to take care of this in my application(vb.net) or innosetup. How to take care of the already installed path in innosetup or carry the settings of already installed application to newly installed path by upgrading the older one.
I dont want to write any thing in registry because the application does not want any administrative permission requirements.If i install the application in same path it gets updated with the older settings being taken over to this new one and it works fine.
View 1 Replies
Aug 6, 2009
I was thinking about creating a program that creates an .exe file. (I know that that is very difficult but I have 3 days that I'm not sleeping because i'm thinkin about it)The program should create the .exe file on button clickThe created exe should be in Normal Windows State, it should have only a button that doesn't do anything and it's path should be C:UsersAdministratorDesktop
View 4 Replies
Jan 15, 2012
how can I add a user to a table in a mysql database without datagridview? [code]
View 6 Replies
Jan 4, 2012
How can I add a user to a table in a mysql database without datagridview? I already have this:
Code:
Dim conn As MySqlConnection
'connect to DB
conn = New MySqlConnection()
conn.ConnectionString = "server=localhost; user id=root; password=test; database=test_addtable"
[Code] .....
View 2 Replies
Jul 27, 2011
i developed an application which takes input from drop down list and then creates files when we click on that button for specified value in dropdownlist.And if we click on send button it sends to remote database.All the application is working fine. Can any one suggest me how to run this application without user interaction.I dont have any idea about task scheduler, people said it can be done with task scheduler.
View 3 Replies
Jul 13, 2009
I have this pascal code and I need someone to help convert it to visual basic. Find Below the codes:
USES
crt,dos,synthvar,txt2phon,{dectmodu,}lsipmodu,{lsirmodu,}intonatn,lexstres,irmutils;
CONST
c0=#0;
[code]....
View 7 Replies
May 23, 2011
In VB there is a function called LineInput [URL]Is there one for Pascal? Or do I have to write my own?
View 1 Replies
Jul 25, 2010
I understand the structure as a type ,but i can't get the case to work inside my structure as i can in the pascal record.
Should i use structure or class or will this just not convert..?
I know a database would be simpler but i want to use binary files.
CODE:
View 9 Replies
Jan 27, 2010
as part of my alevel course i had to learn Pascal and now moved on to VB.NET.in Pascal there was a data type called 'real' where a number could have floating point values) my question is this; what in VB.NET is the equivalent to the Pascal real??
View 3 Replies
Sep 17, 2009
I am working with a Vb.net 2005 application. On the application I have a Create table button which when clicked creates a table in Sql server with the code shown below;
Code: Private Sub BtnCrtTable_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCrtTable.Click
[Code]...
This is really a pre-defined table and the data is already specified to be inserted to the table. However, my primarily task is to read a flat file which has the data and consider the first line as the column to be column names.
Therefore, initially I created an open dialogue to browse for the text file and store the path such as E:Datafile est.txt, in a TextBox1 visible at run time. Now the task is to change the above "create table" to read the txt file (column names are on the first line) and then create the table in the database.
View 5 Replies
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
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
Jun 18, 2009
How do I draw a triangle?
View 10 Replies
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
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
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
Sep 19, 2007
triangle of stars like the one shown below
*
* *
* * *
* * * *
View 5 Replies
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
Jan 7, 2012
make an INVERTED triangle with *'s
View 4 Replies
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
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
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
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
Dec 28, 2010
How to edit my Form1's shape like triangle
View 9 Replies
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
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
Feb 24, 2011
Calculating Perimeter of a triangle
View 2 Replies