Program .. Urgent!!!

Pages: 12
hello
here is the program
download:
http://cpe.kuniv.edu/users/alharbi/eng200/index.files/hw3_2.exe
to see the program that you have to build. Make sure to submit a complete working program that gives the required output. Make sure to try invalid operation numbers, such as 9, and see how the program reacts to them.
Notice that the program displays the results with maximum five numbers per line.

This is what I did until now:
---------------------------
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
	int sel,n1,n2,i,kk;
	cout<<"Welcome to my Calculator!\n\n1. Even numbers\n2. Odd Numbers\n3. Prime Numbers\n Enter operation number, or -1 to quit: ";
	cin>>sel;
	while (sel != -1)
	{
		switch (sel)
		{
		case 1:
			{
				cout<<"Enter n1 and n2: ";
				cin>>n1>>n2;
				cout<<"Even numbers between "<<n1<<" and "<<n2<<" are:\n";
				for (i=n1,kk=0 ; i<=n2 ; i++)
				{
					if (i%2==0)
					{
						cout<<setw(5)<<i;
						kk++;
					}
					if (kk%5==0)
						cout<<endl;
				}
				cout<<endl;
			}
			break;
		case 2:	
			{
				cout<<"Enter n1 and n2: ";
				cin>>n1>>n2;
				for (i=n1,kk=0 ; i<=n2 ; i++)
				{
					if (i%2==1)
					{
						cout<<setw(5)<<i;
						kk++;
					}
					if (kk%5==0)
						cout<<endl;
				}
				cout<<endl;
			}
			break;
		default:
			cout<<"Wrong input! Try again!"<<endl;
		}
		cout<<endl;
		cout<<"1. Even numbers\n2. Odd Numbers\n3. Prime Numbers\n Enter operation number, or -1 to quit: ";
		cin>>sel;
	}
	cout<<"Goodbye!\n";
	return 0;
}


PLEASE, I have odrinay differential equations' midterm tomorrow , I dont have any time to do this
I know, its bad to just copy & paste the program
But pleasse
Really really I dont have any time!!!!!!
please complete it for me
I should also do the flow chart
no problem, I do not need the flow chart's point
I need only the programing code
please please !!!
I'll never give crap how urgent your work is, you don't get the answers handed to you, and that's how it should always be. If you have errors you can go ahead and tell us them, and we'll see what ADVICE we can give you. But even though advice and answer start with the same letter, there is a decidedly stark difference between them, and I'll not be culpable in your educational fit of failure.
So what are your errors?
damn i feel kinda sorry for him...good luck dude.
man man man
am writting this reply and there another new phucking geology's quiz !!
I could do it
BUT THERE IS NO TIMEEEEEEEEE!

I should have the answer within 8 hours
and I will sleep for 7 hours
and i have only 1 hours
and I did not finish studying the ODE's midterm
and i did not study anything for the geology's quiz!!!!
I do not have any error in my program
only 1 problem thats there an empty line between each two numbers' line
and I did not make the prime numbers one
because I dont know how to do it
anyway, there is no time!!
pleassse anyone can complete it for me
PLEASE!!!!!!!!
what a sad life
General wrote:
what a sad life


Indeed...either you are making all this up to try to get help, or you planned your use of time very badly. Either way, I don't particularly feel like helping.
closed account (Lv0f92yv)
If you're having issues with the printouts, check that your newlines are in your couts. check your use of newlines in your couts. For prime number issues, have a look at modulus.

I doubt anybody here is going to complete your homework for you.
Last edited on
tummychow... why do you have to be so rude? it seems like every c++ forum i go to there are rude, stuck up people like you who act like you were never a beginner at this stuff. I've seen your posts on other topics and you ALWAYS have to get smart with somebody. no one gives a damn about how many years you've been doing this or how many programs you've made that can save the world... the reality is that some people are new to this stuff and you need to respect that. i can understand that this guy's plead for help is a little pathetic and that he shouldn't post topics like this but you come across like an arrogant prick. have a nice day now :)
closed account (jwC5fSEw)
Everybody was a beginner once, but not everybody begs for people to do their homework that they simply didn't do in time. I'm sure if he'd presented his code and asked some specific questions about how to fix his problem, nobody would've responded harshly. But some people (very understandable, I think) get a bit angry if someone expects the forum to do homework for you.

I mean, the regulars on this forum provide loads of help for loads of (often already answered) questions for loads of people. The least you are expected to do is to do your share of the work.
tummychow... why do you have to be so rude? it seems like every c++ forum i go to there are rude, stuck up people like you who act like you were never a beginner at this stuff. I've seen your posts on other topics and you ALWAYS have to get smart with somebody. no one gives a damn about how many years you've been doing this or how many programs you've made that can save the world... the reality is that some people are new to this stuff and you need to respect that. i can understand that this guy's plead for help is a little pathetic and that he shouldn't post topics like this but you come across like an arrogant prick. have a nice day now :)

Well excuse me, but have you read the "read before posting"? In case you haven't yet noticed from the rules laid down therein, I have no obligation to help people, and homework assignments are explicitly excluded from acceptable posts. For some reason this forum puts up with them on a regular basis, and so do I. But I don't take urgent shit. I don't give crap if your project is due tomorrow. It's your damn project, not mine! You're supposed to do it! I don't care how inexperienced you are, you are still subject to the rules, and those are the rules. PERIOD. You take a look around here and you'll find that the people who give the best answers are also the ones who have the least tolerance for shit like this. If you have a legitimate question with errors that you need help with, and if you are willing to acknowledge the fact that this isn't some answer service where people will ask you "oh, is this the answer? here, why don't you hand this in so you don't need to do any work?", then I don't really mind the homework, because I can LIVE with that, even though I'm not supposed to. But you try to shit your problems on me and I'm going to shit them back double. It's what you deserve for whining, frankly. Is it my fault that his assignment is due tomorrow? Is it my fault that, by powers possibly out of his control, he ended up unable to complete it on time? No. I sympathize, because life is by no means an easy task, but that doesn't mean I'm going to be all kind and sweet. I will not be more willing to give you the answer because you didn't have the time to find one yourself like a normal student. All-nighters are a part of education, even though they shouldn't be, and it's not my job to avert the crises that spring up in your schooling/educational development. I have no problem with helping you, but I'm not some kind of superhero, and I'm certainly not tolerant of the desperate "omg haz no time pls answer these q asap i needz so bad". If you're pissed about your problems and you get a little terse, OK. I don't like it. But I can understand that, because I'm ticked off right now. But you can't throw it off on other people as if they are somehow, in some twisted evil of the world, responsible. I'm not responsible for your inability to complete your assignment and I never will be. I might be partially responsible for the acceleration of the completion of an assignment, if I'm feeling nice and you've got a fair request. Is this a fair request? Certainly not, because nobody is supposed to be just giving out the answer.
And by the way, I was once a beginner on this. But the operative word is "once". I no longer am (undoubtedly there are people better than I am, but that's how life is, I find), and if you want my help, you're going to have to accept that I could be better at this than you are. I don't care how hard your beginning programming life was because it's not mine. I'm giving you help (and that's if you're reasonable; help is a privilege and not a right) and not a psychiatric analysis.
See? I tend to edit most the posts that I write in arguments.
Last edited on
Dayum, would be nice to use paragraphs :<
Shadow Addict + 1
I did use paragraphs, I just don't indent on forums. It's more like blocks. But you're right, it's quite an intimidating block of text.
like i said... if you don't give a fuck then don't post. he didn't specifically ask YOU for help so YOU don't have to respond. so stop bitching about it and go post on a topic where you can say something nice and helpful.
You didn't have time for this? It'll take like 10 mins...
Hell, take a laptop into the bathroom and do it whilst taking a crap. Then you won't lose any precious study time.
like i said... if you don't give a fuck then don't post. he didn't specifically ask YOU for help so YOU don't have to respond. so stop bitching about it and go post on a topic where you can say something nice and helpful.


How long are you going to whine about whining??? Take your own advice and move on. What others post is none of your business, as you just pointed out.
I have moved on... I'm not the one that wrote a page long rant about this now am I?
closed account (jwC5fSEw)
No, you're the one that says you've moved on after you just bitched out a well-written, completely valid argument without a good reason.
What all two sentences of it? If you consider that well-written then you need to take HS english again. And since when does using multiple curse words classify something as well-written?
You're arguing about grammar and syntax now?

And not even about C++ syntax.... for shame.
I asked you a question. I'm not arguing with you anymore because you aren't worth the time.
Pages: 12