Archive for the ‘if statement’ Category

What kind of person would make a statement like this: killed until dead?

March 9, 2010 - 5:21 am 16 Comments

If a person makes a statement that they want somebody: ‘killed until dead’ as if they don’t understand what other result would occur if a person is killed, does that mean they’re very young without the full understanding of consequences of actions? It scares me there might be children allowed online unsupervised to make violent statements and their mind might become as warped as those 10 year olds who killed James Bulger. Or could it be an adult who isn’t all there or just trying to get a reaction?

lol, sometimes its too easy on here…… I actually feel guilty sometimes for taking advantage of peoples gullability.

How to write a priority encoder code for VHDL using a loop statement?

March 7, 2010 - 8:08 am 1 Comment

I wrote a code using an IF statement, now i have to write it using a loop statement
——————————————–
library ieee;
use ieee.std_logic_1164.all;
———————————————
entity priorityencoder is
port ( d: IN BIT_VECTOR(7 downto 0);
q: OUT INTEGER RANGE 0 to 7);
end priorityencoder;
———————————————-
ARCHITECTURE a OF priorityencoder IS
BEGIN
PROCESS (d)
BEGIN
IF (d(7)=’1′)THEN
q<=7;
ElSIF (d(6)=’1′)THEN
q<=6;
ElSIF (d(5)=’1′)THEN
q<=5;
ElSIF (d(4)=’1′)THEN
q<=4;
ElSIF (d(3)=’1′)THEN
q<=3;
ElSIF (d(2)=’1′)THEN
q<=2;
ElSIF (d(1)=’1′)THEN
q<=1;
ELSE
q<=0;
END IF;
END PROCESS;
END a;

You may contact a VHDL expert live at website like ijug.net ,etc .

Read the following statement about the 1040 Form and determine if it is True or False?

March 5, 2010 - 6:19 am 4 Comments

T or F Standard deductions are listed just above the total taxable income on the 1040 tax form.

false, exemption amount deduction is listed just above total taxable income

Should I print my personal statement for a graduate program application on any special type of paper?

March 3, 2010 - 5:31 am 1 Comment

I have my resume printed on heavier ‘resume’ paper and for the personal statement portion of my application it asks you to attach your own sheet so I was wondering if my personal statement should be on resume paper too, or if it should just be on regular printer paper. Thanks.

Personally, I think it’s nice when someone makes the effort to make all aspects of an application look as polished as possible, including using nice paper, but it’s certainly not a requirement, and I doubt anyone would think worse of your application if you don’t use heavy paper. That is to say, go ahead of use the heavy paper if you can afford it, but otherwise, plain paper is not a big deal.

Do YOU think the statement, if you don’t use it you lose it, is TRUE?

March 1, 2010 - 8:23 am 9 Comments

I am young, wealthy, and attractive (born into it)

I have dated a girl from penthouse magazine, and lots of adult dancers, go go dancers, models, etc

I live in LA, but am in Carolina right now at my parents mansion for investment advice and have been here without girl interaction for a while.

Went to a gentleman’s club tonight and OMG MY GAME WAS AWFUL LOLOLOLOLOLOL

I was like…I am the same guy who’s been approved by PENTHOUSE GIRLS, ADULT DANCERS,etc

BUT

tonight I was STUTTERING and just staring at girls creeping them out n stuff LOLOLOLOLOLOLOLOL!!!!

I have literally gone 24 girls in a row without getting shut down. Most of these girls are extremely hot too.

Tonight I got shut down by 2 and snarled at by one LOL
Don’t hate. Some people’s fantasy is other people’s reality. Truth.

I think it’s great that you validate yourself by the fact you’ve boned a penthouse girl.

Here in the real world, contracting herpes from multiple strippers and porn stars isn’t actually a turn on. Perhaps that’s why you’re only able to pick up "ladies" in the sex industry.

Is a statement credit for a credit card only applied to a balance?

February 27, 2010 - 7:36 am 1 Comment

When a company offers a statement credit, does that amount appear on your card free for you to spend or is it only applied to an existing balance on the card?

In other words, do you get anything if you have no balance?

A credit would be applied to the balance. If your balance was 0, the credit would give you a negative balance. You can make charges and use up the credit balance.

What is considered improper argument in an opening statement in a trial?

February 25, 2010 - 8:25 am 1 Comment

I am doing an opening statement for my mock trial and I do not want to draw an objection. I was wondering if someone could give me an example of what is and what is not improper argument.

Opening and closing statements are basically where the attorney can blow smoke and talk much more openly to the jury than in any other portion of the trial. The big thing to avoid in an opening statement is attacking any specific witness or piece of evidence, especially since nothing has been presented yet. It is perfectly fine to make general statements, such as "The defense is going to tell you that this was an accident, but we will prove otherwise". However, it is not acceptable to say "Joe Smith is a liar and will tell you this is an accident" or "The defense is going to present a store receipt as Joe Smith’s that we think is not his receipt", as the other side has not immediate recourse to refute those assertions, other than an objection. Keep it general while addressing what you intend to prove and how you believe the other party is in the wrong, and talk with certainty that your version of events is correct. Talk about how great your client is as a person/father/mother/etc.if you are the defense, or how you will show that the defendant was conclusively responsible for this awful crime if you are the prosecution (again without citing specific as to how that will be proven). Many judges will advise the attorneys of a set time limit for opening statements before the trial begins, otherwise the attorney will simply talk in circles in an attempt to sway the jury before any evidence is even presented. Many close cases have been decided by the attorney’s ability to come across as the more believable person in opening and closing statements.

if else statement java program?

February 23, 2010 - 5:08 am 1 Comment

Hi I am just trying to figure the if-else statements and I was just wondering why on the lines with

if (Grade == "A" || Grade== "B" || Grade=="C" || Grade== "D" || Grade=="F")
{
System.out.println ("Enter Percentage Weights: ");
}
else
{ System.exit(0);

}

System.out.println ("Exam 1: ");,

that even if I put A it just exits and also on the lines
EX1Score = keyboard.next();

if (EX1Score == "y" || EX1Score == "yes" || EX1Score == "Y" || EX1Score == "YES")
{
System.out.println("Marks scored in Exam 1:");

int Exam1Score = keyboard.nextInt();//The numerical value of the user’s score on exam one

}
else
{
System.out.println("Do you know your lab score");

why even if I put y or the others it skips to the lab question anyway

import java.util.Scanner;
public class GradeCalculation {

/*
* GradeCalculation.java
* Author: Nawasca Baity
* Last edited: 02/15/2010
*
* Purpose: A brief one or two paragraph description of the
* program. What does it do? How does it do it?)
*
* Statement of Academic Honesty:
*
* The following code represents my own work. I have neither
* received nor given inappropriate assistance. I have not copied
* or modified code from any source other than the course webpage
* or the course textbook. I recognize that any unauthorized
* assistance or plagiarism will be handled in accordance with
* the University of Georgia’s Academic Honesty Policy and the
* policies of this course.
*
*/
public static void main(String[] args) {

String Grade;// This will be the overall grade the user hopes to make in the class

String EX1Score;//Yes or No if they know the numerical grade of exam one

String EX2Score;//Yes or No if they know the numerical grade of exam two

String FinalExamScore;//Yes or No if they know the numerical grade of final exam

String LabGrade; //Yes or No if they know the numerical grade of Labs

String ProjectGrade; //Yes or No if they know the numerical grade of projects

System.out.println ("Grading Scale");

System.out.println ("A 90 - 100");

System.out.println ("B 80 - 89");

System.out.println ("C 70 - 79");

System.out.println ("D 50 - 69");

System.out.println ("F Below" );

Scanner keyboard= new Scanner (System.in);

System.out.println ("What letter grade do you want to achieve for the course?: ");

Grade = keyboard.next();

if (Grade == "A" || Grade== "B" || Grade=="C" || Grade== "D" || Grade=="F")
{
System.out.println ("Enter Percentage Weights: ");
}
else
{ System.exit(0);

}

System.out.println ("Exam 1: ");

int Exam1 = keyboard.nextInt();//The weight of exam one

System.out.println ("Exam 2: ");

int Exam2 = keyboard.nextInt();//The weight of exam two

System.out.println ("Final Exam: ");

int FinalExam = keyboard.nextInt();//The weight of the final exam

System.out.println ("Labs: ");

int Labs = keyboard.nextInt();//The weight of the labs

System.out.println ("Projects: ");

int Projects = keyboard.nextInt();//The weight of the projects

if (Exam1 + Exam2 + FinalExam + Labs + Projects <100)

{System.out.println("Weights don’t add up to 100, program exiting… ");

System.exit(0);//System exits if the values of the weight do not add up to 100
}

else
{ System.exit(0);

}

System.out.println ("Enter your scores out of a 100: ");

System.out.println ("Do you know your Exam 1 score?");

EX1Score = keyboard.next();

if (EX1Score == "y" || EX1Score == "yes" || EX1Score == "Y" || EX1Score == "YES")
{
System.out.println("Marks scored in Exam 1:");

int Exam1Score = keyboard.nextInt();//The numerical value of the user’s score on exam one

}
else
{
System.out.println("Do you know your lab score");

LabGrade = keyboard.next();

System.out.println("Do you know your project score");

ProjectGrade = keyboard.next();
}

}
}

Thank You, I just can’t seem to figure it out

If you use the == operator with strings, it only returns true if they’re the EXACT SAME object. Example:
String x="A";
String y="A";
x==x; //true
x==y;//false
x=="A";//false

What you want is if the string contents are the same. Use the String.equals(String) method instead.
x.equals(y);//true

How often am I supposed to receive a bank statement?

February 21, 2010 - 5:13 am 7 Comments

I think it’s a bank statement anyway - a piece of paper containing details of what has gone in and out of your account that month?

I’ve had my account for 4 months now, and I have only ever had one bank statement, I was just wondering if this was normal because I thought it was a monthly thing. I’m with HSBC if it helps.

You have the option of quarterly or monthly.

It sounds like you have the former set up. If you have online banking there should be an option to change it somewhere. Otherwise phone them and ask them to move it to monthly.

How do I get my witness statement recanted?

February 19, 2010 - 7:19 am 2 Comments

I’m 17, if that matters. The accused hasn’t had a bond set up or a trial yet. He got arrested on Friday, October 30. Who do I go to in order to get a statement recanted? Do I have to do it in person or can I communicate via mail or telephone?
I didn’t try to charge anyone with anything. I just wrote a bit of what happened during an argument. I don’t believe that everything was accurate.

You should do it in person. Depending on the nature of your correction, they might arrest you for making a false statement — which will be easier if you’re already in the police department.