# question on pseudo code

Page 1 of 1

## 4 Replies - 1555 Views - Last Post: 24 January 2010 - 07:20 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=151621&amp;s=ba2a31ea9dfeee3d40fcd556b77e2c2f&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 TerryP

Reputation: 0
• 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.

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 Liontrue1

Reputation: 47
• Posts: 811
• 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

### #3 macosxnerd101

• Games, Graphs, and Auctions

Reputation: 11449
• Posts: 43,165
• 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.

Thank you for helping us helping you.

### #4 erik.price

• D.I.C Lover

Reputation: 485
• 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.

### #5 Dogstopper

Reputation: 2950
• Posts: 11,217
• 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/