# HELP:Pseudocode

Page 1 of 1

## 3 Replies - 1318 Views - Last Post: 09 March 2009 - 07:47 AM

### #1 SteelEdge

Reputation: 0
• Posts: 1
• Joined: 08-March 09

# HELP:Pseudocode

Posted 08 March 2009 - 08:55 AM

Alright folks first post on here!

anyway, my son has a computing homework task due for tomorrow and only has pseudocode steps to refine. he doesn't understand or know what the answer is and how to do this. The program problem is as follows...

Erica McKenzie runs a buisness from her home in a small village in the highlands of Scotland desigining custom-built computer systems for buisnesses in her area.

A local software company wants to develop software to help her grade and select suitable processors for her customers. This software will...

-allocate points based on clock speed, data bus width and cache size.
-use the points to allocate a star rating to each processor
-calculate the number of processors at each star rating
-display a table showing the points and rating for each processor
-display a table showing the number of processors at each star rating
-select the processor with the highest number of points,
-display the points and rating for the selected processor

The following test data should be used...

Initum II - clock speed = 2.8, data bus width = 24, cache size = 128
Celerisc II - clock speed = 1.6, data bus width = 32, cache size = 256
Ethloan II - clock speed = 2.6, data bus width = 32, cache size = 128
Powerup II - clock speed = 1.9, data bus width = 64, cache size = 512
Mitduo III - clock speed = 3.1, data bus width = 24, cache size = 128

The algorithim is as follows...

1. Loop for all processors
2. Enter processor data
3. Calculate and store points and rating
4. End Loop
5. Calculate totals for each rating
6. Select the proccesor with the highest points
7. Display results

WHAT YOU HAVE TO DO.

Refine steps 3,5 and 6 of the algorithim - show evidence of psuedocode for steps 3,5 and 6.

My son tells me the program is being written on Microsoft Visual Basic.

Any help or answers can be shown for pseudocode steps for 3,5 and 6 will be greatly appreciated.

Cheers, SteelEdge.

Is This A Good Question/Topic? 0

## Replies To: HELP:Pseudocode

### #2 BigAnt

• May Your Swords Stay Sharp

Reputation: 102
• Posts: 2,392
• Joined: 16-August 08

## Re: HELP:Pseudocode

Posted 08 March 2009 - 01:15 PM

Well DIC has this policy

[rules][/rules]

If he attempts to do the psuedocode for this an post it here he will get more help

Quote

, my son has a computing homework task due for tomorrow

I would advise him to allocate more time to his tasks, and not wait to the last minute on something he does not know and post on DIC for the answers.

### #3 NickDMax

Reputation: 2255
• Posts: 9,245
• Joined: 18-February 07

## Re: HELP:Pseudocode

Posted 08 March 2009 - 04:11 PM

Well lets see

#3 is kind of an abstract step since we are not told how to define the point system. How about a 2pts for each GHz of clock speed, 1 point for ever 8 bits of bus width, and and a point foe each 128bits of cache. This is all pretty arbitrary but without more direction what can you do?

#5 -- Add up the points to find a total. Once you have all of the totals it may be good to find the max points and then determine the rateing (say between 1 and 5 stars) by seeing how close they come to the maximum points (that way one is always 5 stars... the "best").

#6 -- well we already should have found the one with the most points and this should be the highest rating...

Again this is all pretty arbitrary since the assignment does not seem to specify HOW things are to be done... so might as well make something up that seems to meet the criteria.

It is hard to help any more without seeing what he has done so far.

This post has been edited by NickDMax: 08 March 2009 - 04:12 PM

• Saucy!

Reputation: 6246
• Posts: 24,014
• Joined: 23-August 08

## Re: HELP:Pseudocode

Posted 09 March 2009 - 07:47 AM

Isn't the point that your son should be learning this in class, not going to his father -- apparently not a programmer himself -- for help?