954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help write a pseudocode for this please!

Write the pseudocode for a modular computer program which will read a file of pumpkin weights, one number(in pounds) for each record. the program will print the weight of each pumpkin, count the number of pumpkins, determine the largest pumpkin of all pumpkin records processed, and compute the average weight in the 2010-EOJ module. assume the pumpkins weights are read into the program from an input file. use and automatic end-of-file processing. Be sure to include the following five modules: 1000-pumpkin,2000-hsk, 2010-process,2020-eoj, and 3000-read.

thanks

mohamed07
Newbie Poster
5 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

Do it yourself, we aren't a free homework service.

William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
 

I hate it when they write the assignment word for word and don't even try to venture a guess. :@

Grn Xtrm
Posting Pro in Training
495 posts since Nov 2008
Reputation Points: 100
Solved Threads: 48
 
I hate it when they write the assignment word for word and don't even try to venture a guess.

Yup, he should just keep watching this until he gets the message.

William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
 

oh well i guess no help on here then.
instead of outright just gettin on someone i think yall shouldnt be as harsh.... u coulda at least tell me where to start first i didnt say write the whole thing for me.

mohamed07
Newbie Poster
5 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 
oh well i guess no help on here then. instead of outright just gettin on someone i think yall shouldnt be as harsh.... u coulda at least tell me where to start first i didnt say write the whole thing for me.

What did you expect? You copy your question here word for word and expect a solution?
The first thing you do on any new forum is read the rules, you didn't showany effort.

We're here to help you with more specific problems, so show us what you have so far, and exactly what you're stuck with.

William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
 

alright yeah i get it. was kinda a rude thing to do....sorry if i pissed anyone off. but with the first module when it says 1000-pumpkin below it has the 2000-hsk, but after that would it be a do while, or do until for the end-flag?

mohamed07
Newbie Poster
5 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

Maybe I am misunderstanding the question, but if your gonna count 1000 pumpkins then use a for loop that goes from 1 to 1000, and read in the wieghts of the pumpkins.

Grn Xtrm
Posting Pro in Training
495 posts since Nov 2008
Reputation Points: 100
Solved Threads: 48
 

the 1000 is just the pumpkin module but doesn't actually give me a number of pumpkins just that i have to read a file of pumpkin weights in pounds and keep doing it till how many i have, which is the largest and find the average of em.

mohamed07
Newbie Poster
5 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

A great way to help us quickly understand what you mean.. post what you would expect your output to be once you've finished, and work backwards from there, it just seems slightly vague at the moment.

William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
 

iam trying to compute the largest and average weights of the pumpkins

mohamed07
Newbie Poster
5 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

I'd probably use an array to store the values. Then maybe use if statements to compare the values. Then add the values and divide by the number of elements in the array to find the average. This is just my first impression, I'm sure others will suggest better ways to go about this.

Grn Xtrm
Posting Pro in Training
495 posts since Nov 2008
Reputation Points: 100
Solved Threads: 48
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You