Learning Pseudocode: Seeking Help with Assignments

  • Thread starter Thread starter vucollegeguy
  • Start date Start date
Click For Summary
SUMMARY

This discussion focuses on the challenges faced by individuals learning to write pseudocode for programming assignments without prior experience. Key tasks include generating the first N even numbers, calculating sums and averages, computing factorials, and estimating integrals. Participants emphasize the importance of understanding control structures such as conditional branches and loops in pseudocode. Practical advice includes using flowcharts as a guide and breaking down problems into step-by-step instructions.

PREREQUISITES
  • Basic understanding of flowcharts
  • Familiarity with control structures (if-then-else, loops)
  • Knowledge of mathematical concepts (factorials, integrals)
  • Ability to interpret problem statements and translate them into logical steps
NEXT STEPS
  • Study examples of pseudocode for common algorithms
  • Practice writing pseudocode for basic programming tasks
  • Learn about control structures in programming languages
  • Explore mathematical functions and their implementations in pseudocode
USEFUL FOR

Students new to programming, educators teaching algorithm design, and anyone seeking to improve their pseudocode writing skills.

vucollegeguy
Messages
28
Reaction score
0
I've done flowcharts for my assignments, but I have no clue how to make pseudocodes. I've tried to follow the flowcharts using them as a guide but it's not helping me because I don't understand. Also, I have no programming experience.

Any help with any of the following is greatly appreciated.

1) Read positive integer N and write the first N even numbers.
2) Read positive integer N and calculate their sum.
3) Read positive integer N and calculate the average of the positive number from this array.
4) Read positive integer N and calculate N! only if N is a positive integer.
5) Estimate the integral of x2 from 1 to 2.

THANKS IN ADVANCE.
 
Physics news on Phys.org
vucollegeguy said:
I've done flowcharts for my assignments, but I have no clue how to make pseudocodes. I've tried to follow the flowcharts using them as a guide but it's not helping me because I don't understand. Also, I have no programming experience.

Any help with any of the following is greatly appreciated.

1) Read positive integer N and write the first N even numbers.
2) Read positive integer N and calculate their sum.
3) Read positive integer N and calculate the average of the positive number from this array.
4) Read positive integer N and calculate N! only if N is a positive integer.
5) Estimate the integral of x2 from 1 to 2.

THANKS IN ADVANCE.

In pseudocode, you write code-like statements that use a variety of control structures such as conditional branches (if - then -else statements), loops, input statements, output statements, and so on. If you are expected to write pseudocode, surely there are some examples in your text or notes for you to follow.

If that still stumps you, try just writing out the steps you would take to do these problems.
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
6K
Replies
7
Views
3K
  • · Replies 27 ·
Replies
27
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K