Archive for 2010

Need to create a program for java. How do you go about writing this code?

December 31, 2010 - 12:29 am 2 Comments

1. Write an if statement that uses the flag as the condition. Remember that the flag is a Boolean variable, therefore is true or false. It does not have to be compared to anything.
2. The body of the if statemetn should contain two statements:
a) A statement that prints a message indicating that the user is eligible for a $2.00 discount
b) A statement that reduces the variable cost by 2.

public class Main {

public static void main(String[] args) {
double price = 98.22;
double discount = 2;
boolean eligibleForDiscount = true;

//Price before discount
System.out.println("Original Price: " + price);

//Checks if there is a discount
price = CheckDiscount(eligibleForDiscount, price, discount);

//Prints final result
System.out.println("Price is: " + price );
}

private static double CheckDiscount
(boolean eligibleForDiscount, double price, double discount){

//Checks to see if egligble for discount,
//is true, computes and returns discount,
//if false, returns origial discount.
System.out.print("!!2 Dollars off!!");
if (eligibleForDiscount == true) {
price = (price - discount);
}
return price;

}

}

How would I write this statement in words that 2nd grader would understand?

December 28, 2010 - 6:41 pm 7 Comments

The Statement is: You have the right to belong to a country and nobody can prevent you, without a good reason, from belonging to a country if you wish. I need to rewrite this statement in words so that a 2nd grader would understand it. And I have to provide a picture to go with it. Soo what kind of picture should I look for? … Please and Thankyou ever so much…=D
And also I need to Explain how it might apply to my life. And Give an example or description that relates me to the article

"You are allowed to belong in a country, and no one can stop you if they don’t have a good reason."

As for a picture,
you could use a picture of the UN, perhaps?

Please tell me if this sounds like a good thesis statement - important for graduation paper.?

December 26, 2010 - 6:17 pm 1 Comment

So as part of our graduation requirements we have to write a final reflection essay, my prompt is - What are your plans for after graduation? How did the high school classes, activities, and
resources assist you in preparing for your future, post-graduation plans? (Please use specific
examples.) I know what I want to put in the paper but need help combining it all into a thesis that flows and sound good and is solid.

I want to use responsibility, leadership, and self pride as my 3 body paragraph topics (im still iffy on using self pride so if you have a better suggestion please feel free to make it)

Heres what I have own my own as of now - High School has immensely helped prepare me for my future plans after graduation, it classes and after school activities have taught me responsibility, leadership, and the importance of self pride.

sound good or should I put it some other way????

this sounds like a good thesis statement

What are some good tips when writing a personal statement for Law School?

December 24, 2010 - 11:14 pm 2 Comments

I’m applying for law school soon and wanted to know if anyone has any tips for writing my personal statement. I have a great GPA and average LSAT score. I’m applying to Depaul, Loyola, John Marshall and Northern Illinois. Any help would be great. Thanks.

Don’t try to feed them a load. The folks reading your statement have lawyer minds and will rebel if you try to tell them what to think. The "show don’t tell" catchphrase comes into play here. Just be natural. No pretentiousness, not goobledygook, just tell them how it is straight out.

As for writing, I suggest you read about a dozen examples to get an idea. When you write, be concise, be clear, etc. If you’ve got to set the scene for a story don’t go into ridiculous detail–a couple of brush strokes to give them the idea and then get to the point.

if i said typical black person wouldnt that be a racist statement?

December 22, 2010 - 4:39 pm 19 Comments

so why is obama getting a free pass agian saying typical white person ?
i didnt attack your god , why do you attack me , i asked a simple question looking for opinions, if you cant form an answer , and act like adults go talk politics on myspace

Because the media loves him. They are trying to soften any idiotic words that fool says. Every time he opens his mouth, he is proving that he is racist and dumb.

The day before he called his grandmother a "typical white person" he basically said that she was a racist. So a racist is a typical white person in his mind. WOW!

serious4…it has been said many times by black people. If white people said "typical black person" they would be crucified as being racist.

jack spicer…If I said you were a hooker, then the next day said you were a typical white person, would you see that as a problem? It is the same thing. He basically called his grandmother a racist who made him cringe.

Maria….even if you do have a white husband (which I wouldn’t bet on) you are a racist. To even begin to imply that the double standard of today is AGAINST minorities is absurd. A minority can say anything against white people and get away with it. If a white person said anything which can even be TWISTED into being seen as racist (even if not stated in such a manor) is crucified by the media.

rachel..you posted that drivel as a question. Stop posting it as every answer. It is a crock. Go read the answer I left to your question and stop spreading your lies.

What does the statement mean in regards to mental retardation?

December 20, 2010 - 6:40 pm 3 Comments

"Mental Retardation is to a large degree a socially constructed category. Thus, paradigm shifts will occur and can be beneficial"

What does that statement mean?

It means that what we mean when we say "mental retardation" will change periodically due to changing perceptions and values; because the category is something created by society, society’s definition of it will change, sometimes with good results.

Letters and statements from my insurance company on a regular basis?

December 18, 2010 - 6:21 pm 2 Comments

I have a lot of medical bills. I send in a number of health insurance claims each year, and I receive letters and statements from my insurance company on a regular basis. However, many of the comments and explanations on those letters and statements don’t make any sense to me. Why can’t I understand what the insurance company is trying to say?

Some people have a hard time reading and comprehending what they are reading. Blame your education.

You can always call the number on the back of your insurance card, and the person there can explain it to you.

Microsoft Excel - IF statement using actual date.?

December 16, 2010 - 5:59 pm 2 Comments

i have a spreadsheet full of payment information. i want to create an IF that states when it gets to the first of December pay will increase 2.5% but i need it too read the computers date,

HOW?!?!?!?

Well, if you are trying to read the computer’s date, you could use the TODAY() function. That gives the current date and time.

So an if statement might go something like…

=IF(TODAY()>"12/1/2008",12.50, 10.00)

… where if it’s true, the value for the field is 12.50, if it’s false, the value is 10.00. Fill in the values you need there.

In C++ Programming, what is meant by a "goto" statement? Should a "goto" ever be used? If not, why not?

December 14, 2010 - 8:48 pm 3 Comments


A "goto" statment is used to transfer control from the point in the program where the goto is located to some other point in the program which is indicated by a label; and the name of that label is placed following the "goto" statement.

Most languages do not allow a "goto" statement to transfer control from within a procedure to some location outside that procedure, nor do they allow transfer of control from some point outside of a procedure to some point (other than the procedure’s entry point) inside the procedure.

The C language did have a construct that would allow you to return from a procedure without returning to the statement following the procedure call that activated the procedure, so that you could, for instance, make a decision while inside a procedure that on return the next statement block following the call to that procedure would be skipped over and not executed. But that wasn’t a simple "goto", and required being set up carefully beforehand (and was used only for handling critical exceptions).

The difficulty with "goto" statements stems from the fact that nested statement blocks use the stack to maintain temporary data references, and that transferring control INTO a nested block incurs the disadvantage of the compiler having to calculate the stack preparation for that without necessarily being able to determine the immediate execution context (i.e., the states of the variables which might be involved). Transferring control OUT of the nested block is only a matter of popping the stack and discarding the values which were there (and often the reason you want to exit the block is to avoid any further alteration of the states of any variables referenced there, such as when you are finished with a loop– early, even –and want to exit immediately), so it doesn’t matter that the temporary results are discarded.

Structured programming advocates caution that "goto" statements tend to produce "spaghetti code" if you use them a lot. From the standpoint of "good programming technique", which usually means writing highly readable and maintainable code, it’s better to use controlled loop constructs and subroutine calls to transfer control from one point in a program to another, because the form of the program text is more likely to clearly delineate program structure and flow. (It also may mean that you spent more time carefully designing your code.)

How to write a personal statement for college?

December 12, 2010 - 6:15 pm 2 Comments

I am currently applying for college and am writing my personal statement but haven’t any ideas what to put! Tips on writing personal statements, example personal statements ect would be helpful please.

The first part; why you want to do the course. The second part; why they should want you on the course. The third part; a bit about yourself.

Just be honest and big yourself up.

Good luck