Efficient C++ Surveying Sample Program
Efficient C++ Surveying Sample Program
Sample Program
Surveying about Depression Sample Program
OBJECTIVE:
• To help the researchers conduct their survey efficiently,
easy and faster especially for students nowadays. With
this program, the result can be given right after they
finish the survey. The survey can also be given online
anytime and anywhere as long as they have an internet
connection. It can be useful for a large sample size
survey. The usage of paper and pen is not necessary
anymore for this modernized survey.
ALGORITHM:
Step 1 : Input a1, a2,a3, a4, a5, a6, a7 , a8, a9,
Step 2: Score = (a1+a2+a3+a4+a5+a6+a7+a8+a9)
Step 3:
if (Score <= 4)
print "Depression Severity: Minimal"
else if (Score <=9)
print "Depression Severity: Mild"
else if (Score <=15)
print "Depression Severity: Moderate"
else if (Score <= 19)
print "Depression Severity: Moderately Severe. Seek professional help."
else if (Score >= 20 )
print "Depression Severity: Severe. Seek professional help immediately."
else
print "You are fine."
End if
FLOWCHART:
COMPLETE PROGRAM
SAMPLE RUN