Code Monkey home page Code Monkey logo

supunvindula

Talented Programmer who knows graphic designing, videography and photography

Supun Vindula's Projects

campus-web icon campus-web

A univeristy based community building app/website that enables students on campus to help each other and gain points, resulting in them being more recognized

command-line-number-converter icon command-line-number-converter

In this project, you are expected to build a complete command line conversion tool. The converter should take inputs as command line arguments and produce outputs to the standard output (stdout). The tool should take three arguments as shown below (assuming that the tool is going to be called clc): ./clc -<input format> -<output format> <input> Input/output format can be one of the followings: Format Description B A 32-bit or 64-bit representation H An 8-digit or 16-digit hexadecimal representation I Integer (32-bit) F Single precision floating point number D Double precision floating point number You are not allowed to use any library functions except fprintf() from stdio. Following aspects should be considered when you develop your solution: 1. The program should be modularized as much as possible using proper programmer defined functions. 2. Your program should have the minimum possible amount of code. 3. Identifiers (names of variables and functions) should have proper names. One of the following error (and warning) messages should be produced to the standard error (stderr). When there is an error, the program should stop running and return a 1. When there is a warning, the program should continue running after outputting the warning. Please note that the error/warning messages should be printed identical to what you see below as we will be marking your answers automatically (our auto-marker is not intelligent enough to ignore spaces, understand capital/simple letters, etc.). 1. Wrong number of arguments ERROR: The number of arguments is wrong. Usage: ./clc -<input format> -<output format> <input> 2. Wrong input argument ERROR: The input argument is wrong. Possible input arguments are -B, -H, -I, -F and -D. 3. Wrong output argument ERROR: The output argument is wrong. Possible output arguments are -B, -H, -I, -F and -D. 4. Wrong input size ERROR: The input size is wrong. 5. Mistake in the input format at location x from left to right (x is a number, which starts from 0) ERROR: Input format error at location x. 6. If there are conversions that are not possible, you should print ERROR: This conversion is not possible. 7. Conversions that will lose/reduce precision WARNING: There is a possibility for a precision loss

coursera-test icon coursera-test

This is a coursera test repository. This was made for submitting assignments

datathon icon datathon

website of datathon 2020, a competition organized by the Computer Engineering department, University of Peradeniya.

famous-places-web-app icon famous-places-web-app

This app is built to find famous places near a given place using google location API. Used React, Node JS and Bootstrap 5

fractals-mandelbrot-julia icon fractals-mandelbrot-julia

This was the first assignment I have done on java. This code is bulk. We can minimize and optimize this code

task-app icon task-app

This task app made using python gRPC. Simply it can add tasks, delete tasks, and list tasks using a tkinter GUI.

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.