Digital Paint Discussion Board

Digital Paint Community => Other Stuff => Topic started by: nub on January 27, 2009, 03:15:53 PM

Title: Attention Programmers or people who know java
Post by: nub 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
Title: Re: Attention Programmers or people who know java
Post by: DrRickDaglessMD on January 27, 2009, 03:20:20 PM
Are you asking us to do your homework?

Honestly?

- Dag
Title: Re: Attention Programmers or people who know java
Post by: eMo on January 27, 2009, 03:33:29 PM
I'll help you. I wont do it for you.

pm me on irc
Title: Re: Attention Programmers or people who know java
Post by: lekky on January 27, 2009, 05:04:23 PM
lol
Title: Re: Attention Programmers or people who know java
Post by: KnacK 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.
Title: Re: Attention Programmers or people who know java
Post by: nub 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.
Title: Re: Attention Programmers or people who know java
Post by: Garrett 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.
Title: Re: Attention Programmers or people who know java
Post by: IronFist 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?
Title: Re: Attention Programmers or people who know java
Post by: nub 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
Title: Re: Attention Programmers or people who know java
Post by: ViciouZ 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

:)
Title: Re: Attention Programmers or people who know java
Post by: KnacK on January 28, 2009, 12:17:40 PM
nuff said

werd
Title: Re: Attention Programmers or people who know java
Post by: DrRickDaglessMD 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
Title: Re: Attention Programmers or people who know java
Post by: Laged 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?
Title: Re: Attention Programmers or people who know java
Post by: IronFist 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
Title: Re: Attention Programmers or people who know java
Post by: Garrett on January 28, 2009, 04:11:48 PM
I don't mind doing the work though.  I am getting paid and I enjoy programming.
Title: Re: Attention Programmers or people who know java
Post by: DrRickDaglessMD 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!
Title: Re: Attention Programmers or people who know java
Post by: KnacK 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....
Title: Re: Attention Programmers or people who know java
Post by: lekky 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
Title: Re: Attention Programmers or people who know java
Post by: DrRickDaglessMD 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
Title: Re: Attention Programmers or people who know java
Post by: ViciouZ 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)
Title: Re: Attention Programmers or people who know java
Post by: KnacK on January 29, 2009, 12:12:26 PM
In Soviet Russia, you don't light fires, fires light YOU!
Title: Re: Attention Programmers or people who know java
Post by: lekky on January 29, 2009, 03:02:09 PM
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.

The practicals just didn't interest me at uni, first job after taught me what real programming was all about, in the words of my mentor "You know all the programming stuff you learnt at uni? Forget it now" I've been employed as a programmer for over 2 years now so hopefully I can :P
Title: Re: Attention Programmers or people who know java
Post by: DrRickDaglessMD on January 30, 2009, 06:01:53 AM
So you're saying the moral of the story is 'don't pay attention at school/uni, and just cheat your way through because nothing you learn there is relevant'?

It's funny, because I use a lot of what I was taught at uni at my new job, especially in terms of programming and web-based systems. A phrase that I've heard a LOT from other graduates I know is 'I wish I'd paid more attention in *insert module name*, you don't realise how valuable that is'. As a faculty rep in my final year I had to give a pep talk to a bunch of militant second years who were complaining about a core module (TCP/IP Networking, FYI) because they said it was boring (which was true) and that it isn't useful. I had to explain that if there was one module I'd wished I had paid attention to and not dossed about in, it was that one, because when I worked in British Telecom's R&D dept, I didn't know what the hell was going on - it was all in that modules notes.

Basically - don't cheat, pay attention at school and always try your best to learn new things, you never know when it'll come in handy - and if you're having to learn something related to a career you want, you'll almost certainly regret not trying harder. If you cheat and someone expects that you can do something you can't, you're going to look like an idiot. A morally dubious idiot.

- Dag
Title: Re: Attention Programmers or people who know java
Post by: KnacK on January 30, 2009, 06:54:40 AM
So you're saying the moral of the story is 'don't pay attention at school/uni, and just cheat your way through because nothing you learn there is relevant'?

It's funny, because I use a lot of what I was taught at uni at my new job, especially in terms of programming and web-based systems. A phrase that I've heard a LOT from other graduates I know is 'I wish I'd paid more attention in *insert module name*, you don't realise how valuable that is'. As a faculty rep in my final year I had to give a pep talk to a bunch of militant second years who were complaining about a core module (TCP/IP Networking, FYI) because they said it was boring (which was true) and that it isn't useful. I had to explain that if there was one module I'd wished I had paid attention to and not dossed about in, it was that one, because when I worked in British Telecom's R&D dept, I didn't know what the hell was going on - it was all in that modules notes.

Basically - don't cheat, pay attention at school and always try your best to learn new things, you never know when it'll come in handy - and if you're having to learn something related to a career you want, you'll almost certainly regret not trying harder. If you cheat and someone expects that you can do something you can't, you're going to look like an idiot. A morally dubious idiot.

- Dag

You almost sound like a parent there Dr. Rick ;D

Good Job
Title: Re: Attention Programmers or people who know java
Post by: DrRickDaglessMD on January 30, 2009, 09:59:23 AM
I'm going to be a DYNAMITE old man, gathering all the neighbourhood youths round and telling them stories of when computers used to be so big they had to go under your desk instead of these new fangled nanoscale brain implants, and when DP2 was Alpha 6, and not Alpha 3261 (stil backwards compatible to Alpha 003).

- Dag
Title: Re: Attention Programmers or people who know java
Post by: KnacK on January 30, 2009, 02:38:07 PM
rofl!

Title: Re: Attention Programmers or people who know java
Post by: nub on January 30, 2009, 04:44:34 PM
well i did them on my own, if that makes you happen DrRickDaglessMD.
I just wanted to help someone out if they wanted $10
:)
Title: Re: Attention Programmers or people who know java
Post by: flip on January 30, 2009, 05:12:24 PM
I'm taking an info tech degree course and will be requiring a lot of help. So please keep that in mind when I get to the programming courses and start spamming this forum for help. lol
Title: Re: Attention Programmers or people who know java
Post by: Garrett on January 31, 2009, 12:31:48 AM
PM me for java programming help.  I always enjoy a good challenge.