Solved

Flowchart problem

Posted on 2012-04-11
2
237 Views
Last Modified: 2012-04-12
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
Comment
Question by:gorean4u
2 Comments
 
LVL 57

Expert Comment

by:giltjr
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

by:
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question