GithubHelp home page GithubHelp logo

a1cd / baseconverter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 214 KB

Write a class called BaseConverter that prints a conversion for a variety of numbers as specified by a data file. The conversion will always be from the range of base-2 to base-16 numbers to a new number, also in the range base-2 throughbase-16.

Shell 11.55% Java 88.45%
java base-converter

baseconverter's Introduction

Test All Class Tests <-> forthebadge <-> See Javadoc here <-> here is BaseConverter.java

Base Converter forthebadge

Write a class called BaseConverter that prints a conversion for a variety of numbers as specified by a data file. The conversion will always be from the range of base-2 to base-16 numbers to a new number, also in the range base-2 throughbase-16.

baseconverter's People

Contributors

a1cd avatar

Watchers

 avatar  avatar

baseconverter's Issues

input file should be determined by the class constructor

Once the input file source is determined by the call of the class constructor, a single method called inputConvertPrintWrite() should open the data file, read each line from the input file, check for a valid base construct, do the conversion and then print as well as write the converted to the output file.

Missing Documentation

Add documentation in 2 places

  • BaseConverter.strToInt needs a description (convienience)
  • BaseConverter.strToInt needs a description

Print Conversion info

output the following

[input number](base [input base]) -->> [output number](base [output base])

Missing Documentation

Missing Docs in 4 places

  • BaseConverter.intToStr needs a description (convienience)
  • BaseConverter.intToStr needs a description
  • BaseConverter.intToStr needs input/output descriptions

fix invalid input message

invalid input message should be:
Invalid input base -2
Invalid output base 19

  • for input base
  • and output base

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.