Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Other Programming   »   modular progams (pseudo-code algorithm)

 
Thread Tools Display Modes
Question
 
 
#1  
Old Jul 12, 2008, 02:48 PM
nova2177
New Member
nova2177 is offline
 
Join Date: Jul 2008
Posts: 1
nova2177 See this member's comment history on his/her Profile page.
modular progams (pseudo-code algorithm)

how do you extract a module from a pseudo-code algorithm.
I'm not sure if i can post the question here but here goes.

a) write an algorithm that will display the sum for a given numbers of squares, e.g. if the user enter the value 3, then the output should be 1² + 2² + 3² = 14
b) from (a) use a module called sumsquare that will accept an integer value and return the sum of the squares of the value entered
c) use the sumsquare module to write an algorithm that will perform the same function as (a)

i think i figured out (a) but i have never done modules, i only know what it is. if some one can help me out, please help, show me an example of some sort, doesn't have to be the question that i post.
thanks.

Reply With Quote
 
     

Answers
 
 
Old Jul 12, 2008, 03:48 PM   #2  
Engineering & Electronics Expert
KeepItSimpleStupid is online now
 
KeepItSimpleStupid's Avatar
 
Join Date: Aug 2007
Posts: 4,665
KeepItSimpleStupid See this member's comment history on his/her Profile page.KeepItSimpleStupid See this member's comment history on his/her Profile page.KeepItSimpleStupid See this member's comment history on his/her Profile page.KeepItSimpleStupid See this member's comment history on his/her Profile page.
This is how I interpret the question.

a) Is just plain pseudocode

b) Basically means something that will use "include sumsquare.c"
In sumsquare.c is a function sumsquare[x].

c) in pseudocode
main.c
input x
print sumsquare (x)
end main

sumsquare.c
function sumsquare(x)
return sum of squares (x)
end sumsquare.c

My c is very rusty.

Basically your creating two programs of source code.

Does this make sense?
  Reply With Quote
 
     


Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
small business start up progams for convicted felons nightstarr Small Business 9 Aug 20, 2008 01:08 AM
modular home Roooster69food Electrical & Lighting 1 May 15, 2008 04:35 PM
Modular house in PDX, OR uabeck Construction 1 Apr 13, 2008 09:21 AM
Pseudo Codes. megacharge2 Visual Basic 2 Oct 22, 2007 04:44 AM
Best Email Progams Wendy225 Email 34 Apr 13, 2006 07:28 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 05:36 PM.