write an if statement for: If a varable named salary is greater than 1500
and if a varable named hours is greater than 40then print "Worker gets a
Bonus" else print "Worker does nit get a Bonus"
write a while looop that will execute exacally 10 times to computet the
gross pay for 10 workers. Each time the loop executes find the gross pay
and then print that gross [ay for each worker. You will need to declare
your varables and use names that you think ius best to fit this operation.
You can start your counter at any number.
write an if statement for: If the letter K is equal to the varable letter,
then increment a varable by 5,else decrement the varable by 5.
Set up a case statement to compare the varable state to NY, VA, NC, and
SC. If it is equal to NY print "New York", if it is equal to VA print
"Virginia", if it is equal to NC print "North Carolina", if it is equal to
SC print South Carolina". the default should print "No State Found in the
Database". Do not forget to declare varables that you need to use and you
can seet the varable name towhat you want to see.
Write pseudocode for the following. Set up a do-untill loop for number
32. Don't forget ro set up your varables.
""A for loop for number 32. Do not forget to set up the varables.
All of these I need to write pseudocode for, please help me I understand
it somewhat, I just want to be sure I get it right. I need it by today if
you don't mind. Thank you so very much!!:)
Mike - 13 Dec 2005 15:40 GMT
Mike - 13 Dec 2005 15:43 GMT
Hey Alb, if you post the code that you have worked on under each
question, it'll be much easier to help you with your questions.
Thomas Fritsch - 13 Dec 2005 15:52 GMT
> All of these I need to write pseudocode for, please help me I understand
> it somewhat, I just want to be sure I get it right. I need it by today if
> you don't mind. Thank you so very much!!:)
Please read <http://mindprod.com/jgloss/homework.html> to understand why
it is extremely unlikely to get the desired response here.

Signature
Thomas
Rhino - 13 Dec 2005 17:33 GMT
> write an if statement for: If a varable named salary is greater than 1500
> and if a varable named hours is greater than 40then print "Worker gets a
[quoted text clipped - 24 lines]
> it somewhat, I just want to be sure I get it right. I need it by today if
> you don't mind. Thank you so very much!!:)
This newsgroup is not here to do people's homework for them.
We are happy to help people with specific problems _IF_ we see some sign of
effort from them. Posting your homework question is NOT sufficient sign of
effort!
You need to post the homework question _AND_ your best guess for the
solution. I'm talking about actual code (or, in your case, pseudocode), not
a one sentence English paraphrase of what the code would do. That will
satisfy most people here that you are making a genuine effort, not just
trying to get someone else to do your homework for you.
For each of your questions, write your best guess for what the solution
should be and we will try to help you refine your solution if it is wrong or
tell you that it is right.
Does your teacher really just want pseudocode? Doesn't he/she want you to
write the real code too? Or is that some future lesson?
Rhino
Roedy Green - 13 Dec 2005 22:44 GMT
>write an if statement for: If a varable named salary is greater than 1500
>and if a varable named hours is greater than 40then print "Worker gets a
>Bonus" else print "Worker does nit get a Bonus"
see http://mindprod.com/jgloss/homework.html
http://mindprod.com/jgloss/newsgroups.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Oliver Wong - 13 Dec 2005 22:50 GMT
I don't see why this assignment is difficult, particularly since the
answer needs to be in the form of pseudo code, rather than actual Java code.
I'll do all the odd-numbered problems, and leave the even numbered ones up
to you.
Problem:
> write an if statement for: If a varable named salary is greater than 1500
> and if a varable named hours is greater than 40then print "Worker gets a
> Bonus" else print "Worker does nit get a Bonus"
Answer:
If
a varable named salary is greater than 1500
and
if a varable named hours is greater than 40
then
print "Worker gets a Bonus"
else
print "Worker does nit get a Bonus"
[even numbered problem skipped]
Problem:
> write an if statement for: If the letter K is equal to the varable letter,
> then increment a varable by 5,else decrement the varable by 5.
Answer:
If
the letter K is equal to the varable letter,
then
increment a varable by 5,
else
decrement the varable by 5.
[even numbered problem skipped]
Problem:
> Write pseudocode for the following. Set up a do-untill loop for number
> 32. Don't forget ro set up your varables.
>
> ""A for loop for number 32. Do not forget to set up the varables.
This one is a bit harder, as it doesn't make sense in English, so I have
to sort of "guess" what is desired.
Answer:
set up the varables; //sic
for i goes from 1 to 32 {
;
}
- Oliver