Digital Paint Discussion Board
Digital Paint Community => Other Stuff => Topic started 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
-
Are you asking us to do your homework?
Honestly?
- Dag
-
I'll help you. I wont do it for you.
pm me on irc
-
lol
-
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.
-
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.
-
I would do it for money but it sounds like you have help already. PM me if you still need a hand.
-
What course is this for? Why are you taking it? Is this high school or university work? If university, what is your major?
-
intro to computer science.
high school
and im taking it because i like to be in a class with a computer
-
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
:)
-
nuff said
werd
-
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
-
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?
-
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
-
I don't mind doing the work though. I am getting paid and I enjoy programming.
-
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!
-
Give a man a fish, he'll eat for day.
Teach a man to fish, he'll eat for a lifetime....
-
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
-
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
-
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)
-
In Soviet Russia, you don't light fires, fires light YOU!
-
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
-
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
-
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
-
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
-
rofl!
-
well i did them on my own, if that makes you happen DrRickDaglessMD.
I just wanted to help someone out if they wanted $10
:)
-
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
-
PM me for java programming help. I always enjoy a good challenge.