Author Topic: Attention Programmers or people who know java  (Read 6986 times)

nub

  • VM-68
  • Posts: 244
Attention Programmers or people who know java
« on: January 27, 2009, 03:15:53 PM »
if you can solve these and give them to me $10 PayPal!

9. Write a program that uses while loops to perform the following steps:
a. prompt the user to input two integers:firstNum and secondNum.(firstNum must be less than secondNum)
b. Output all the odd numbers between firstNum and secondNum
c. Output all of the even numbers between firstNum and secondNum
d. Output all the numbers and their squares between 1 and 10
e. output the sum of squares of all the odd numbers between firstNum and secondNum
f. output all the uppercase letters.


10. Redo that problem using for loops


11. Redo using do ..... while loops

13. suppose that m and n are integers and m is nonzero. recall that m is called a divisor of n if n = mt for some integer t; that is, when m divides n, the remainder is 0. Moreover, m is called a proper divisor of m < n and m divides n, A positive integer is called perfect if it is the sum of its positive proper divisors. For example, the positive proper divisors of 28 are 1,2,4,7, and 14, and 1+2+4+7+14 = 28. Therefore, 28 is a perfect. Write a program that does the following:

a. Outputs the first four perfect integers.
b.Take as input a positive integer and then outputs whether the integer is perfect. 


Thanks to anyone who can help me out.
-Nub

DrRickDaglessMD

  • 68 Carbine
  • Posts: 376
Re: Attention Programmers or people who know java
« Reply #1 on: January 27, 2009, 03:20:20 PM »
Are you asking us to do your homework?

Honestly?

- Dag

eMo

  • VM-68
  • Posts: 184
Re: Attention Programmers or people who know java
« Reply #2 on: January 27, 2009, 03:33:29 PM »
I'll help you. I wont do it for you.

pm me on irc

lekky

  • Autococker
  • Posts: 2449
Re: Attention Programmers or people who know java
« Reply #3 on: January 27, 2009, 05:04:23 PM »
lol

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: Attention Programmers or people who know java
« Reply #4 on: January 27, 2009, 05:43:48 PM »
After reading the post, I do not agree to the prospect of providing the answers, but... The questions are interesting enough that I would like to see the resultant programming steps.

nub

  • VM-68
  • Posts: 244
Re: Attention Programmers or people who know java
« Reply #5 on: January 27, 2009, 06:45:24 PM »
well if someone can help me I will be on IRC tonight and pretty much all day tommorrow.
The name is Jbrown  or Jbrown|laptop   depends on if the internet screws up.

Thanks.

Garrett

  • Autococker
  • Posts: 1372
Re: Attention Programmers or people who know java
« Reply #6 on: January 27, 2009, 08:39:20 PM »
I would do it for money but it sounds like you have help already.  PM me if you still need a hand.

IronFist

  • Autococker
  • Posts: 1304
Re: Attention Programmers or people who know java
« Reply #7 on: January 27, 2009, 10:07:37 PM »
What course is this for? Why are you taking it? Is this high school or university work? If university, what is your major?

nub

  • VM-68
  • Posts: 244
Re: Attention Programmers or people who know java
« Reply #8 on: January 27, 2009, 10:09:49 PM »
intro to computer science.
high school
and im taking it because i like to be in a class with a computer

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Attention Programmers or people who know java
« Reply #9 on: January 28, 2009, 10:23:30 AM »
What course is this for? Why are you taking it? Is this high school or university work? If university, what is your major?

http://w4r.mserle.com/mp3s/IronFist_Code-Mercinary-(Cheating-Is-Another-Way-To-Win).mp3

:)

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: Attention Programmers or people who know java
« Reply #10 on: January 28, 2009, 12:17:40 PM »
nuff said

werd

DrRickDaglessMD

  • 68 Carbine
  • Posts: 376
Re: Attention Programmers or people who know java
« Reply #11 on: January 28, 2009, 02:09:46 PM »
I don't know what is worse: a) that you are so morally bankrupt as to barefacedly ask us to help you cheat on your highschool assignments, or b) that you are also too lazy to even google the question (which yields a number of sites with the exact same questions, with answers. I guess your teachers are lazy too).

- Dag

Laged

  • 68 Carbine
  • Posts: 374
Re: Attention Programmers or people who know java
« Reply #12 on: January 28, 2009, 02:23:48 PM »
Or maybe his teachers just want to find out who is smart enough to google it. Maybe it was the whole point of it - why would you have to write a program which already exists?

IronFist

  • Autococker
  • Posts: 1304
Re: Attention Programmers or people who know java
« Reply #13 on: January 28, 2009, 02:53:42 PM »
http://w4r.mserle.com/mp3s/IronFist_Code-Mercinary-(Cheating-Is-Another-Way-To-Win).mp3

:)

"Fo a mere fifty dollas or so, you can have your homework code completed on the low, ready to go out the 'doh"

nub needs to learn to pimp sufficient stacks of cash off of his parents, otherwise he won't get very far as a cheater

Garrett

  • Autococker
  • Posts: 1372
Re: Attention Programmers or people who know java
« Reply #14 on: January 28, 2009, 04:11:48 PM »
I don't mind doing the work though.  I am getting paid and I enjoy programming.

DrRickDaglessMD

  • 68 Carbine
  • Posts: 376
Re: Attention Programmers or people who know java
« Reply #15 on: January 29, 2009, 03:20:54 AM »
That may well be the case, but nub isn't going to be a better programmer at the end of the day. Everyone who didn't even try to understand and cheat off others in the programming classes I took at Uni got their karmic payback when it came to the exam. Cheating just fosters a crap attitude, and if you help people cheat you're no better - what kind of moral statement are you making for a committee member! I'm glad people like eMo have a less mercenary attitude.

I can't believe he's even going to pay you the 10 dollars when he can google it for free.

- Dag

P.S that song is hilarious!

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: Attention Programmers or people who know java
« Reply #16 on: January 29, 2009, 07:20:58 AM »
Give a man a fish, he'll eat for  day.
Teach a man to fish, he'll eat for a lifetime....

lekky

  • Autococker
  • Posts: 2449
Re: Attention Programmers or people who know java
« Reply #17 on: January 29, 2009, 07:26:20 AM »
Everyone who didn't even try to understand and cheat off others in the programming classes I took at Uni got their karmic payback when it came to the exam.

I got a 1st in my programming modules, and karma still hasn't bitten me :P

DrRickDaglessMD

  • 68 Carbine
  • Posts: 376
Re: Attention Programmers or people who know java
« Reply #18 on: January 29, 2009, 08:29:09 AM »
I didn't cheat, and I also got a first in my programming modules. Seeing as you cheated, can you actually program now? And how exactly did you pass your programming exams? (or was it a wussy all-coursework module?) If you can, why did you bother cheating? I didn't think you were the type.

Knack's got the idea.

- Dag

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Attention Programmers or people who know java
« Reply #19 on: January 29, 2009, 12:05:02 PM »
Give a man a fish, he'll eat for  day.
Teach a man to fish, he'll eat for a lifetime....

Give a man a fire, he'll be warm for the night.
Set a man on fire, he'll be warm for the rest of his life.

(Attributed to various soviet leaders)