Skip to content

Solution 1  #1

@Josure-github-page

Description

@Josure-github-page

START

  1. Prompt for sellingPrice
  2. Get sellingPrice
  3. Prompt for costPrice
  4. Get costPrice
  5. If sellingPrice < costPrice then write 'loss was made'
  6. If else sellingPrice > costPrice then difference amount = sellingPrice - costPrice
  7. Get difference amount
  8. Financial return percentage = difference amount ÷ costPrice × 100
    End if
  9. Display financial return percentage
    END

Desk check

sellingPrice = N$ 9000
costPrice = N$ 3000
Deference amount = N$ 6000
Financial return percentage = 200% expect output.

START

  1. Prompt for sellingPrice
  2. sellingPrice = N$ 9000
  3. Prompt for costPrice
  4. costPrice = N$ 3000
    5 If sellingPrice < costPrice then write 'loss was made'
  5. If else sellingPrice > costPrice then difference amount = N$ 9000 - N$ 3000
  6. Get difference amount = N$ 6000
  7. Financial return percentage = N$ 6000 ÷ N$ 3000 × 100
    End if
  8. Display financial return percentage = 200%

END

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions