Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mkah91/cop-cloud-coding-dojos/numbers-in-words

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mkah91/cop-cloud-coding-dojos/numbers-in-words

  • v0.0.0-20220630130658-27bb71a8788e
  • Source
  • Go
  • Socket score

Version published
Created
Source

Numbers in Words

The coding kata can be found here.

Problem Description

It occurs now and then in real life that people want to write about money, especially about a certain amount of money. If it comes to cheques or contracts for example some nations have laws that state that you should write out the amount in words additionally to the amount in numbers to avoid fraud and mistakes. So if you want to transfer 745 $ to someone via cheque you have to fill out two fields:

745.00 $ (amount in numbers)

seven hundred and fourty five dollars (amount in words)

Requirements

  1. Do all of it test driven.
  2. Write a little converter class or function to convert numbers into words.
  3. The converter should be able to convert numbers from 0 to 999999.
  4. Convert it back (optional).

Getting started

  1. To run the code you can either use the following command (from inside the numbers-in-words folder):
    go run .
    
    or simply use the debugger (F5)
  2. To run the tests you can use the following command (from inside the numbers-in-words folder):
    go test ./...
    
    or simply use the VS Code Testing extension. The test example in this case will fail. Could you correct it? 😉

FAQs

Package last updated on 30 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc