100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary Pseudocode Help Guide $3.21   Add to cart

Summary

Summary Pseudocode Help Guide

 16 views  2 purchases
  • Course
  • Institution

Pseudocode Help Guide

Preview 3 out of 8  pages

  • January 12, 2023
  • 8
  • 2022/2023
  • Summary
  • 3
avatar-seller
Pseudocode
Elements/Function

1) Selection (allows program to follow different paths with one value, we use
IF/ELSE/ELIF/nested if which is an if within an if, you still have to use indentation,
and end the IF function using EndIF)

e.g. IF Weight < 70 THEN

Print "You can continue as normal"

ELSE

ENDIF

IF Weight > 70 THEN

PRINT "You need to start exercising more"

ENDIF

CASE statements are a method of selection when answers don’t consist of values
between a particular range or there are specific values. We
use CASE/OF/OTHERWISE/ENDCASE

e.g. CASE ScoreOfGame OF

1. PRINT "You should try again"

2. PRINT "Not enough points to defeat the game"

3. PRINT "You almost won"

4. PRINT "You beat the game! But not with the highest score"

,5. PRINT "You beat the game and you achieved the highest score"

OTHERWISE

PRINT "You have no score"

ENDCASE




2) iteration (a loop)

(REPEAT/UNTIL for unknown numbers of time but must run at least once)




(FOR/TO/NEXT for limited repetitions)

, (WHILE/DO/ENDWHILE for endless loop which can run forever)




3) arrays (data structure that has only one data type because it is hard to sort the
list but can store multiple data, you can also set up the size of the array such as
[1:45])

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller SKH392. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $3.21. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67474 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$3.21  2x  sold
  • (0)
  Add to cart