¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Pseudocode Example

Anthony Petrou Inglés

Contenido del mapa

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"

Información

Descripción
Mapa Mental sobre Pseudocode Example, creado por Anthony Petrou el 22/03/2019.
Creado por
Anthony Petrou
Visitas
1
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?