GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Pseudocode Example

Anthony Petrou Englisch

Inhalt der Mindmap

Pseudocode Example

  1. A program needs to calculate the size of files in bytes. The program must:

    • Ask the user to input a file size in megabytes
      • Calculate and output the number of bytes this represents in a user friendly format (E.G. "There are 5242880 bytes in 5MB")
        • Write an algorithm using pseudocode to calculate the number of bytes in a given number of megabytes
          •  Output asking for file size (in megabytes)  Taking number of MB as input  Multiplying by 1024 or 1000  Multiplying by 1024 or 1000 (may be same line as bullet 3, this must be the final value with no further changes)  Outputting the final bytes value…  …in an appropriate message
          • output "Please enter the file size in megabytes" input numberMB numberKB = numberMB * 1024 (or 1000) numberBytes = numberKB * 1024 (or 1000) output "There are " & numberBytes & " bytes in " & numberMB & "MB"

Informationen

Beschreibung
Mindmap am Pseudocode Example, erstellt von Anthony Petrou am 22/03/2019.
Erstellt von
Anthony Petrou
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck