I have been assigned to write an algorithm. I would like to know if there is a way I can get some of you to look at it and tell me if I am correct. I know according to the rules I am not just suppose to post my work. If anyone could help please let me know. Thanks!

I also have to include the appropriate C++ program to match. I have attempted both but dont know how accurate I am. Any assistance would be great!

You can compile and run the program if you want to see if it works.

where can I get the compiler to test it? The instructor said I could get one online for free, but the ones I see just keep giving me other things than what I want.

MS Visual C++ Express. It should work.

Edit: as a stopgap, if you're short on time, you can run single-file C++ programs at http://codepad.org/ . But it's in your best interest to get a compiler up and running on your own machine.

thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.