Algorithm and C++ code

Page 1 of 1

1 Replies - 1387 Views - Last Post: 08 April 2010 - 09:13 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=166889&amp;s=a8cf0f2e4cc4eb0dbb098698048a4d8c&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

#1 code4alinh

Reputation: 0
• Posts: 1
• Joined: 08-April 10

Algorithm and C++ code

Posted 08 April 2010 - 09:10 AM

I've Been Sick For 2 weeks, couldn't attend the lectures , but I still have to submit this assignment . Hope someone can help .
Draw a flowchart and write the algorithm and C++ code to accomplish the following:
1-Sum the odd integers between 1 and 99 using a for structure.
2-The factorial of a number N using a for structure . Given that N factorial is defined as N!=1*2*3*....*(N-1)*N
3-Given a set of N integers in one dimensional array, the program should sort the integers in the array in an ascending order(smallest to largest )

Is This A Good Question/Topic? 0

Replies To: Algorithm and C++ code

#2 PsychoCoder

Reputation: 1659
• Posts: 19,853
• Joined: 26-July 07

Re: Algorithm and C++ code

Posted 08 April 2010 - 09:13 AM

Sorry but we can not give you the entire code to solve your problem. We are here to assist in solving problems with code you have written, with any error messages you are getting or what isn't working the way that you expect it to, we would be more than happy to help you with those problems. If there is a topic that you don't understand we would be more than happy to help you with that as well. Make sure to post any code with in code tags like below.

Be sure to visit our tutorial and snippet areas or read the FAQS at the top of the forums. Also, take a moment to read the rules about posting topics.