GoConqr has a new look! Let us know what you think.

Mind map

Pseudocode Example

Anthony Petrou English

Map content

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"

Information

Description
Mind Map on Pseudocode Example, created by Anthony Petrou on 22/03/2019.
Created by
Anthony Petrou
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?