Solved

Flowchart problem

Posted on 2012-04-11
235 Views
Here is what I have programmed so far

Private Sub cmdExecute_Click()
'Declare variables
Dim intN As Integer
Dim intF As Integer
Dim intCounter As Integer

'Initiallize variables
intF = 2
intCounter = 0
intN = Val(txtDesiredIn.Text)

'Input Values
Do
If intN > 1 Then
intN = intN / intF
intCounter = intCounter + 1
End If
Loop Until intN < 1

'Display Values
lblDisplay.Caption = intCounter
lblDisplay.Visible = True
Flowchart.pdf
0
Question by:gorean4u

LVL 57

Expert Comment

ID: 37838733
This looks like a class assignment.  We can not write the program for you.  We can give you guidance, but you need to tell us exactly what you don't understand.
0

LVL 17

Accepted Solution

Thibault St john Cholmondeley-ffeatherstonehaugh the 2nd earned 500 total points
ID: 37838900
your code displays values after the loop exits, but your flowchart displays values every iteration and does nothing when the loop reaches the exit conditions and completes.
We need to know what you need to know to be able to help you.
0

Featured Post

EE introduced a new rating method known as Level, which displays in your avatar as LVL. The new Level is a numeric ranking that is based on your Points. This article discusses the rationale behind the new method and provides the mathematical formula…
Digital marketing agencies have encountered both the opportunities and difficulties that emerge from working with a wide-ranging organizations.
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…