| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Algorithms & Data Structures Discuss algorithms & data structures. Topics are not specific to any programming language. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Help with flow chart and Pseudo code (visio)
Hi, first time posting here. I am in a beginning algorithms class and we have to create a flow chart for a problem and then code a solution in VB. Anyway, the program premise consists of this:
Calculate the cost for painting a picture. The cost is dependent on the number of people and time of day. 1 Person= 100 2 people= 130 3 People= 150 4 people=165 More then 4 people= random number between 200-300 If saturday or sunday add 20% If 3 people on monday deduct 10% If 4 people on thursday deduct 15% I have written it out in pseudo code, if this isn't right let me know. We are only allowed to use if/else statements (no case or anything like that) and simple boolean expressions. Quote:
Also, in Visio, to represent a flow chart, I represent those complicated if/else statements? I think what I do is have a diamond with every "if- ifelse" line, and a then a rectangle for each "then" statement. Normally, in class, we had to options and each branching line was labeled "yes" or "no". Would I lable the lines "=3, =1, <4, ect?" Any help would be very, very much appreciated. |
|
#2
|
||||
|
||||
|
Re: Help with flow chart and Pseudo code (visio)
It is an assignment for my class. I don't mean to be rude, but I don't understand a thing you said or how it has anything to do with what I am working.
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|