question on pseudo code

Specify the Algorithm using both pseudo code and a flowchart

Page 1 of 1

4 Replies - 1398 Views - Last Post: 24 January 2010 - 07:20 AM Rate Topic: -----

#1 TerryP  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-January 10

question on pseudo code

Posted 23 January 2010 - 07:42 PM

Consider N student reciving the marks x1,x2,......xN. Develop an algorith to compute the mean mark for male student that achieved a score lower than that of all female student. The marks are supplied one at a time along with the gender information. Specify the Algorithm using pseudo code and a flowchart

using standard deivation formula.

I just learned this chapter but i've no idea how to write a pseudo of it. please give me some advises. :crazy:

here is my flowchart. im confused with the pseudo code

http://img686.imageshack.us/img686/3380/hw1.jpg

This post has been edited by TerryP: 23 January 2010 - 09:19 PM


Is This A Good Question/Topic? 0
  • +

Replies To: question on pseudo code

#2 alpha02  Icon User is offline

  • Sexy DIC God
  • member icon

Reputation: 47
  • View blog
  • Posts: 803
  • Joined: 20-May 06

Re: question on pseudo code

Posted 23 January 2010 - 08:02 PM

Please show what you've tried so far and we will help you. If you want to get started with pseudo code, take a look here:

http://tinyurl.com/lg3jap

EDIT: Welcome to DIC :)

This post has been edited by alpha02: 23 January 2010 - 08:03 PM

Was This Post Helpful? 0
  • +
  • -

#3 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10816
  • View blog
  • Posts: 40,317
  • Joined: 27-December 08

Re: question on pseudo code

Posted 23 January 2010 - 09:07 PM

Welcome to DIC. :) We have a policy requiring members to demonstrate a good faith effort on their part before we can help out significantly. Please post your efforts and we will be happy to assit you.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
Was This Post Helpful? 0
  • +
  • -

#4 erik.price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 485
  • View blog
  • Posts: 2,690
  • Joined: 18-December 08

Re: question on pseudo code

Posted 23 January 2010 - 11:26 PM

Think the flowchart through. This isn't exactly a Java related question, but just think, step by step how you could solve this algorithmically.
Was This Post Helpful? 0
  • +
  • -

#5 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,051
  • Joined: 15-July 08

Re: question on pseudo code

Posted 24 January 2010 - 07:20 AM

I advise you to look into arrays, and perhaps even ArrayLists (Google and the API are Great for this purpose, also Sun's Java Tutorials), then you will need to know how to loop through the array and select the ones lower than females. Then take the mean. Here are some great resources:

Java Tutorial (by Sun): http://java.sun.com/...books/tutorial/
Java API: http://java.sun.com/javase/6/docs/api/
Google: http://google.com/
My Blog (look at arrays): http://www.dreaminco...opper/index.php?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1