Wednesday, March 28, 2012

Like us,me OR them

Case1 : Somebody created a page on facebook. It's their personal fanpage. They are your friend and so they asked you to 'like' their page. You had to in order to maintain you relationship, sorry :-\ (you had to like)
Case 2 : Your other friend recently started a start-up and on the day they found you online (on chat) they requested you to do the same and like their page. Mind you you don't know why, how it helps you or worse, you may not even like the page in reality but cause of friendship you liked.
Case 3 : Your friend asked you to like a page so that their chances of winning something fore referring likes would increase. You wanted them to win the prize and so you joined their quest to winning the prize (and then congratulate them later)- not bad that's being a well wisher.

The word like-verb according to the dictionary on
reference.com means to find agreeable of to take pleasure in. Recently there's been an increased craving of people wanting likes on Facebook pages.Don't mistake me for trying to tell you not to obey your 'friends' favor requests, they are your friends whom you choose.

My beef, if any, would be on the owners of the pages. I know you're happy counting likes and that translates to a wider audience and eventually you have a platform to influence others.

There are a few reasons why this won't work for the people who wanted likes from anybody

1. Interests: The people who end up in the sum of your 'likes' have no interests there. Don't market beef to vegetarians please.
2. Adverts: There are adverts and on Facebook they can be targeted to a people with a certain interest. Your adverts will always end up with the wrong kind of people who liked a page but in reality have not the slightest interests similar with the liked pages.
3. Growth: I like to think, "Rome was not built in a day". The part of this which i like is that there's the joy that is brought by growth; normal growth. Getting a thousand likes a week is enjoyable but the rate of growth won't last. It matters, it gives you a history, a story to tell. There's a normal growth curve which is observed by every growing entity/Org, yours is no exceptional.


A perfect example of pushing a product users is G+, they literally registered people physically while people register themselves on twitter and continue to grow the network by word of mouth. Look at pinterest, It's become so popular yet no much effort was used to sign up users (I presume) Facebook itself grew as it's usage spread among friends.
Or simply chema chajiuza kibaya chajitembeza
So to my point, create a product or service that touches lives and the people will like it. Naturally. I will, be all ears,

Monday, March 26, 2012

JavaScript issues, care to help?

This Javascript is giving me a headache,It's due in an hours time but can't seem to finish.
somebody help me out by either debugging or sharing with a friend who might be in the light of js (javascript)
I know it's a minor thing that's refusing to work but i'm drained out kabisa for now..... comment on the post anything you think can help me. thanks

here is my code
------------------------------------------------------------------

//function start is called when the start button is clicked on the page
function start(){
document.write("
Course grades ");
document.write("
course " + " grade " + " hours " );
subjects = prompt ("How many subjects?");
var i = 0;
while (i
var input=prompt("Enter Course Name, Grade and credit hours as shown in the text field below of click okay with no data to terminate.","Course/Grade/Credit hours");
if (input!=null && input!=" "){
var mySplitResult = input.split("/"); // splits the input using by the '/' positions
//assigning slit elements to variables
var course = mySplitResult[0];
var grade = mySplitResult[1];
var hours = mySplitResult[2];
document.write("
" + course + " " + grade + " " + hours );

//new variables to help calculate totals
var totalhours= +hours;

var gradepoints;
var sumpoints=0;
// conditions for calculating points according to the grade
var multiplier;
if (grade=='A' || grade =='a'){ multiplier=4;}
if (grade=='B+'|| grade =='b+'){ multiplier=3.5;}
if (grade=='B' || grade =='b'){ multiplier=3;}
if (grade=='C+'|| grade =='c+'){ multiplier=2.5;}
if (grade=='C' || grade =='c'){ multiplier=2;}
if (grade=='D' || grade =='d'){multiplier=1;}
if (grade=='F' || grade=='AF' ||grade=='WF' ||grade=='f' || grade=='af' ||grade=='wf' ){
multiplier=0;}
gradepoints= hours*multiplier;
}
var sumpoints= sumpoints+gradepoints;

i++;
}
var avpoints = sumpoints/hours;
var credithours= +hours;
var sumpoints_courses;
var GPA=sumpoints/credithours;
// outputs the course grades, gpa, total points
document.write("

total points are " + sumpoints);
document.write("
" + "number of hours = " + totalhours );
document.write("
and your GPA = " + avpoints);
document.write("");
}// end of function start


The Problem
After clicking the start button, you're asked to say the number of subjects you should input- good
It prompts you for the 5 subjects to be entered in the format 'Course/Grade/Credit hours'- good

after doing that It's supposed to compute the totals of all the subjects you entered, unfortunately it only does the computation of the last subject, care to help?






Here is an extract of the que,

Once the course grades have been stored, the page should compute the student's overall GPA. According to the XYZ University Bulletin, grade point averages are computed as follows:
1. Grade points (a.k.a. quality points) are assigned to each course based on the grade and number of credit hours:
  • A yields 4 points for each hour
  • B+ yields 3.5 points for each hour
  • B yields 3 points for each hour
  • C+ yields 2.5 points for each hour
  • C yields 2 points for each hour
  • D yields 1 point for each hour
  • F, AF, and WF yield 0 points for each hour
2. The grade point average (a.k.a. quality point average) is computed by dividing the total number of grade points earned by the total number of credit hours.
For example, suppose a student entered the following course information (with each line entered in a different dialog box):
THL100 B+ 3
PHL107 A 3
ENG120 C+ 3
MTH245 A 4
CSC221 A 3
The total number of grade points earned by this student is
(3.5 * 3) + (4 * 3) + (2.5 * 3) + (4 * 4) + (4 * 3) =
10.5 + 12 + 7.5 + 16 + 12 =
58
Dividing this total by the number of credit hours completed yields a GPA of 58/16 = 3.625.
Your page should display the total number of grade points, number or hours, and GPA, as well as all of the course information in a readable form. This information should not be displayed in the page until all user input has been processed. For example,

COURSE GRADE HOURS
THL100 B+ 3
PHL107 A 3
ENG120 C+ 3
MTH245 A 4
CSC221 A 3
Total grade points = 58
Number of hours = 16
GPA = 3.625