7 kyu

Adding words - Part I

580 of 1,868osofem

Description:

This is the first part of this kata series. Second part is here and third part is here

Add two English words together!

Implement a class Arith (struct struct Arith{value : &'static str,} in Rust) such that

  //javascript
  var k = new Arith("three");
  k.add("seven"); //this should return "ten" 
  //c++
  Arith* k = new Arith("three");
  k->add("seven"); //this should return string "ten" 
  //Rust
  let c = Arith{value: "three"};
  c.add("seven") // this should return &str "ten"

Input - Will be between zero and ten and will always be in lower case

Output - Word representation of the result of the addition. Should be in lower case

Mathematics
Fundamentals

Similar Kata:

Stats:

CreatedMay 31, 2017
PublishedMay 31, 2017
Warriors Trained4049
Total Skips213
Total Code Submissions7464
Total Times Completed1868
JavaScript Completions600
Ruby Completions141
Python Completions580
Rust Completions256
PHP Completions184
C++ Completions190
Total Stars49
% of votes with a positive feedback rating86% of 419
Total "Very Satisfied" Votes324
Total "Somewhat Satisfied" Votes73
Total "Not Satisfied" Votes22
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • osofem Avatar
  • kazk Avatar
  • adrian.eyre Avatar
  • clcraig Avatar
  • FArekkusu Avatar
  • Just4FunCoder Avatar
  • saudiGuy Avatar
Ad