This program is to calculate commission and this is the pseudo I wrote for it. Tell me if I'm right.
1 Declare variables
2 get sales
3 calculate
if sale < 1500 Then
commision= sale * 0,02
else
commision= sale * 0,04
4 Dispaly commision
Vusumuzi
0
Light Poster
Recommended Answers
Jump to PostSeems right.
Jump to PostSeems OK, only on line 9 you are setting a string equal to a Single.
Jump to PostLook at line 7:
Result= Sale*0,04
It must be :Result= Sale*0.04
Also Commition variable is not used. Just remove it.
All 9 Replies
Jx_Man
987
Nearly a Senior Poster
Featured Poster
Vusumuzi
0
Light Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
ddanbe
commented:
Fine eye!
+14
Vusumuzi
0
Light Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Vusumuzi
0
Light Poster
Vusumuzi
0
Light Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.