Browse Source

first commit

master
Job Bautista 7 months ago
commit
a39b1261eb
74 changed files with 225 additions and 0 deletions
  1. +23
    -0
      COPYING
  2. +4
    -0
      README
  3. +1
    -0
      config/1
  4. +1
    -0
      config/2
  5. +1
    -0
      config/3
  6. +1
    -0
      config/4
  7. +1
    -0
      config/5
  8. +1
    -0
      config/score10name
  9. +1
    -0
      config/score1name
  10. +1
    -0
      config/score2name
  11. +1
    -0
      config/score3name
  12. +1
    -0
      config/score4name
  13. +1
    -0
      config/score5name
  14. +1
    -0
      config/score6name
  15. +1
    -0
      config/score7name
  16. +1
    -0
      config/score8name
  17. +1
    -0
      config/score9name
  18. +1
    -0
      config/testname
  19. +1
    -0
      questions/1
  20. +1
    -0
      questions/10
  21. +1
    -0
      questions/11
  22. +1
    -0
      questions/12
  23. +1
    -0
      questions/13
  24. +1
    -0
      questions/14
  25. +1
    -0
      questions/15
  26. +1
    -0
      questions/16
  27. +1
    -0
      questions/17
  28. +2
    -0
      questions/18
  29. +2
    -0
      questions/19
  30. +2
    -0
      questions/2
  31. +1
    -0
      questions/20
  32. +1
    -0
      questions/21
  33. +1
    -0
      questions/22
  34. +1
    -0
      questions/23
  35. +2
    -0
      questions/24
  36. +2
    -0
      questions/25
  37. +1
    -0
      questions/26
  38. +2
    -0
      questions/27
  39. +2
    -0
      questions/28
  40. +1
    -0
      questions/29
  41. +1
    -0
      questions/3
  42. +2
    -0
      questions/30
  43. +1
    -0
      questions/31
  44. +1
    -0
      questions/32
  45. +1
    -0
      questions/33
  46. +1
    -0
      questions/34
  47. +2
    -0
      questions/35
  48. +1
    -0
      questions/36
  49. +2
    -0
      questions/37
  50. +1
    -0
      questions/38
  51. +1
    -0
      questions/39
  52. +1
    -0
      questions/4
  53. +2
    -0
      questions/40
  54. +2
    -0
      questions/41
  55. +1
    -0
      questions/42
  56. +1
    -0
      questions/43
  57. +1
    -0
      questions/44
  58. +1
    -0
      questions/45
  59. +2
    -0
      questions/46
  60. +2
    -0
      questions/47
  61. +1
    -0
      questions/48
  62. +1
    -0
      questions/49
  63. +2
    -0
      questions/5
  64. +2
    -0
      questions/50
  65. +2
    -0
      questions/51
  66. +1
    -0
      questions/52
  67. +2
    -0
      questions/53
  68. +1
    -0
      questions/54
  69. +1
    -0
      questions/55
  70. +1
    -0
      questions/6
  71. +2
    -0
      questions/7
  72. +1
    -0
      questions/8
  73. +1
    -0
      questions/9
  74. +108
    -0
      test

+ 23
- 0
COPYING View File

@@ -0,0 +1,23 @@

Eiffel Forum License, version 2

1. Permission is hereby granted to use, copy, modify and/or
distribute this package, provided that:
* copyright notices are retained unchanged,
* any distribution of this package, whether modified or not,
includes this license text.
2. Permission is hereby also granted to distribute binary programs
which depend on this package. If the binary program depends on a
modified version of this package, you are encouraged to publicly
release the modified version of this package.

***********************

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT WARRANTY. ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THIS PACKAGE.

***********************

+ 4
- 0
README View File

@@ -0,0 +1,4 @@
PECS questionnaire turned into a bash script.

Version 2 of the Eiffel License applies to the bash script and config/* files. I
don't own the copyright on the questions/* files.

+ 1
- 0
config/1 View File

@@ -0,0 +1 @@
Never

+ 1
- 0
config/2 View File

@@ -0,0 +1 @@
Rarely

+ 1
- 0
config/3 View File

@@ -0,0 +1 @@
Sometimes

+ 1
- 0
config/4 View File

@@ -0,0 +1 @@
Usually

+ 1
- 0
config/5 View File

@@ -0,0 +1 @@
Always

+ 1
- 0
config/score10name View File

@@ -0,0 +1 @@
Self-confidence

+ 1
- 0
config/score1name View File

@@ -0,0 +1 @@
Opportunity seeking

+ 1
- 0
config/score2name View File

@@ -0,0 +1 @@
Persistence

+ 1
- 0
config/score3name View File

@@ -0,0 +1 @@
Commitment to work contract

+ 1
- 0
config/score4name View File

@@ -0,0 +1 @@
Demand for efficiency and quality

+ 1
- 0
config/score5name View File

@@ -0,0 +1 @@
Risk-taking

+ 1
- 0
config/score6name View File

@@ -0,0 +1 @@
Goal setting

+ 1
- 0
config/score7name View File

@@ -0,0 +1 @@
Information seeking

+ 1
- 0
config/score8name View File

@@ -0,0 +1 @@
Systematic planning and monitoring

+ 1
- 0
config/score9name View File

@@ -0,0 +1 @@
Persuasion and networking

+ 1
- 0
config/testname View File

@@ -0,0 +1 @@
Personal Entrepreneurial Competencies Self-rating Questionnaire

+ 1
- 0
questions/1 View File

@@ -0,0 +1 @@
I look for things that need to be done.

+ 1
- 0
questions/10 View File

@@ -0,0 +1 @@
I feel confident that I will succeed at whatever I try to do.

+ 1
- 0
questions/11 View File

@@ -0,0 +1 @@
No matter whom I'm talking to, I'm a good listener.

+ 1
- 0
questions/12 View File

@@ -0,0 +1 @@
I do things that need to be done before being asked to by others.

+ 1
- 0
questions/13 View File

@@ -0,0 +1 @@
I try several times to get people to do what I would like them to do.

+ 1
- 0
questions/14 View File

@@ -0,0 +1 @@
I keep the promises I make.

+ 1
- 0
questions/15 View File

@@ -0,0 +1 @@
My own work is better than that of other people work with.

+ 1
- 0
questions/16 View File

@@ -0,0 +1 @@
I don't try something new without making sure I will succeed.

+ 1
- 0
questions/17 View File

@@ -0,0 +1 @@
It's a waste of time to worry about what to do with your life.

+ 2
- 0
questions/18 View File

@@ -0,0 +1,2 @@
I seek the advice of people who know a lot about the tasks I am
working in.

+ 2
- 0
questions/19 View File

@@ -0,0 +1,2 @@
I think about the advantages and disadvantages or different ways of
accomplishing things.

+ 2
- 0
questions/2 View File

@@ -0,0 +1,2 @@
When I am faced with a difficult problem, I spend a lot of time trying
to find a solution.

+ 1
- 0
questions/20 View File

@@ -0,0 +1 @@
I do not spend much time thinking how to influence others.

+ 1
- 0
questions/21 View File

@@ -0,0 +1 @@
I change my mind if others disagree strongly with me.

+ 1
- 0
questions/22 View File

@@ -0,0 +1 @@
I feel resentful when I don't get my way.

+ 1
- 0
questions/23 View File

@@ -0,0 +1 @@
I like challenges and new opportunities.

+ 2
- 0
questions/24 View File

@@ -0,0 +1,2 @@
When something gets in the way of what I'm trying to do, I keep on
trying to accomplish what I want.

+ 2
- 0
questions/25 View File

@@ -0,0 +1,2 @@
I am happy to do someone else's work if necessary, to get the job done
on time.

+ 1
- 0
questions/26 View File

@@ -0,0 +1 @@
It bothers me when my time is wasted.

+ 2
- 0
questions/27 View File

@@ -0,0 +1,2 @@
I weigh my chances of succeeding or failing before I decide to do
something.

+ 2
- 0
questions/28 View File

@@ -0,0 +1,2 @@
The more specific I can be about what I want out of life, the more
chances I have to succeed.

+ 1
- 0
questions/29 View File

@@ -0,0 +1 @@
I take action without wasting time gathering information.

+ 1
- 0
questions/3 View File

@@ -0,0 +1 @@
I complete my work on time.

+ 2
- 0
questions/30 View File

@@ -0,0 +1,2 @@
I try to think of all the problems I may encounter and plan what to do
if each problem occurs.

+ 1
- 0
questions/31 View File

@@ -0,0 +1 @@
I get important people to help me accomplish my goals.

+ 1
- 0
questions/32 View File

@@ -0,0 +1 @@
When trying something challenging, I feel confident that I will succeed.

+ 1
- 0
questions/33 View File

@@ -0,0 +1 @@
I prefer activities that I know well and with which I am comfortable.

+ 1
- 0
questions/34 View File

@@ -0,0 +1 @@
When faced with major difficulties, I quickly go on to other things.

+ 2
- 0
questions/35 View File

@@ -0,0 +1,2 @@
When I am doing a job for someone, I make a special effort to make sure
that person is happy with my work.

+ 1
- 0
questions/36 View File

@@ -0,0 +1 @@
In the past, I have had failures.

+ 2
- 0
questions/37 View File

@@ -0,0 +1,2 @@
I am never entirely happy with the way things are done; I always think
there must be a better way.

+ 1
- 0
questions/38 View File

@@ -0,0 +1 @@
I do things that are risky.

+ 1
- 0
questions/39 View File

@@ -0,0 +1 @@
I have a very clear plan for my life.

+ 1
- 0
questions/4 View File

@@ -0,0 +1 @@
It bothers me when things are not done very well.

+ 2
- 0
questions/40 View File

@@ -0,0 +1,2 @@
When working on a project for someone, I ask many questions to be sure
I understand what that person wants.

+ 2
- 0
questions/41 View File

@@ -0,0 +1,2 @@
I deal with problems as they arise, rather than spend time trying to
anticipate them.

+ 1
- 0
questions/42 View File

@@ -0,0 +1 @@
In order to reach my goals, I think of solutions that benefit.

+ 1
- 0
questions/43 View File

@@ -0,0 +1 @@
I do very good work.

+ 1
- 0
questions/44 View File

@@ -0,0 +1 @@
There have been occasions when I took advantage of someone.

+ 1
- 0
questions/45 View File

@@ -0,0 +1 @@
I try things that are very new and different from what I have done before.

+ 2
- 0
questions/46 View File

@@ -0,0 +1,2 @@
I try several ways to overcome things that get in the way of reaching
my goals.

+ 2
- 0
questions/47 View File

@@ -0,0 +1,2 @@
My family and personal life are more important to me than work deadlines
I set for myself.

+ 1
- 0
questions/48 View File

@@ -0,0 +1 @@
I find ways to complete tasks faster at work and at home.

+ 1
- 0
questions/49 View File

@@ -0,0 +1 @@
I do things that others consider risky.

+ 2
- 0
questions/5 View File

@@ -0,0 +1,2 @@
I prefer situations in which I can control the outcomes as much as
possible.

+ 2
- 0
questions/50 View File

@@ -0,0 +1,2 @@
I am as concerned about meeting my weekly goals as I am for my yearly
goals.

+ 2
- 0
questions/51 View File

@@ -0,0 +1,2 @@
I go to several different sources to get information for tasks or
projects.

+ 1
- 0
questions/52 View File

@@ -0,0 +1 @@
If one approach to a problem does not work, I think of another approach.

+ 2
- 0
questions/53 View File

@@ -0,0 +1,2 @@
I am able to get people who have strong opinions or ideas to change
their minds.

+ 1
- 0
questions/54 View File

@@ -0,0 +1 @@
I stick with my decisions even if others disagree strongly with me.

+ 1
- 0
questions/55 View File

@@ -0,0 +1 @@
When I don't know something, I don't mind admitting it.

+ 1
- 0
questions/6 View File

@@ -0,0 +1 @@
I like to think about the future.

+ 2
- 0
questions/7 View File

@@ -0,0 +1,2 @@
When starting a new task or project, I gather a great deal of
information before going ahead.

+ 1
- 0
questions/8 View File

@@ -0,0 +1 @@
I plan a large project by breaking it down into smaller tasks.

+ 1
- 0
questions/9 View File

@@ -0,0 +1 @@
I get others to support my recommendations.

+ 108
- 0
test View File

@@ -0,0 +1,108 @@
#!/bin/bash
#
# Copyright 2020, Job Bautista
# Licensed under the Eiffel Forum License 2.
# See the COPYING file for the full license text.

question=1

programdone () {
echo "Program done. Exiting."
exit
}

echo "Welcome to the" `cat config/testname`.
echo "Read each statement carefully and answer honestly based on how well"
echo "it describes you. There are five choices. Enter the number you selected."
echo "---------------------------------------------------------------------------"

echo "5="`cat config/5`
echo "4="`cat config/4`
echo "3="`cat config/3`
echo "2="`cat config/2`
echo "1="`cat config/1`


read -p "Ready? (y/yes to proceed, anything else to exit): " ready
case $ready in
"yes" | "YES" | "Yes" | "y" | "Y")
while [ $question -le 55 ]
do
echo "$question." `cat questions/$question`
read -p "Answer: " num$question
((question++))
done
;;
*)
programdone
;;
esac

score1pre=$((num1 + num12 + num23 - num34 + num45))
score2pre=$((num2 + num13 + num24 - num35 + num46))
score3pre=$((num3 + num14 + num25 + num36 - num47))
score4pre=$((num4 + num15 + num26 + num37 - num48))
score5pre=$((num5 - num16 + num27 + num38 + num49))
score6pre=$((num6 - num17 + num28 + num39 + num50))
score7pre=$((num7 + num18 - num29 + num40 + num51))
score8pre=$((num8 + num19 + num30 - num41 + num52))
score9pre=$((num9 - num20 + num31 + num42 + num53))
score10pre=$((num10 - num21 + num32 + num43 + num54))
correctionpre=$((num11 - num22 - num33 - num44 + num55))
correction=$((correctionpre+18))
score1=$((score1pre+6))
score2=$((score2pre+6))
score3=$((score3pre+6))
score4=$((score4pre+6))
score5=$((score5pre+6))
score6=$((score6pre+6))
score7=$((score7pre+6))
score8=$((score8pre+6))
score9=$((score9pre+6))
score10=$((score10pre+6))
echo "---------------------------------------------------------------------------"
echo "Results (without correction):"
echo `cat config/score1name` "= $score1"
echo `cat config/score2name` "= $score2"
echo `cat config/score3name` "= $score3"
echo `cat config/score4name` "= $score4"
echo `cat config/score5name` "= $score5"
echo `cat config/score6name` "= $score6"
echo `cat config/score7name` "= $score7"
echo `cat config/score8name` "= $score8"
echo `cat config/score9name` "= $score9"
echo `cat config/score10name` "= $score10"
echo "Correction Factor = $correction"

if [ $correction -le 19 ]
then
programdone
else
case $correction in
24 | 25)
subtract=7
;;
22 | 23)
subtract=5
;;
20 | 21)
subtract=3
;;
*)
echo "This shouldn't happen. Either you inputted a number greater than 5, or this is a bug."
programdone
;;
esac
echo "---------------------------------------------------------------------------"
echo "Results (with correction):"
echo $((score1 - subtract))
echo $((score2 - subtract))
echo $((score3 - subtract))
echo $((score4 - subtract))
echo $((score5 - subtract))
echo $((score6 - subtract))
echo $((score7 - subtract))
echo $((score8 - subtract))
echo $((score9 - subtract))
echo $((score10 - subtract))
fi

Loading…
Cancel
Save