Find Jobs
Hire Freelancers

simple java task needed

₹100-400 INR / hour

Cancelled
Posted over 6 years ago

₹100-400 INR / hour

A simple code to be converted to a Psuedo code Here's my code, I need to rewrite it into functional language.. it should be pretty easy assignment, thus the deadline is only a day. #include<iostream> using namespace std; // function that returns absolute difference between 2 numbers // input is a int absoluteDiff(int a) { // variable declaration int b = 4; // condition if(a>b) return a-b; else return b-a; } main(){ // 2 sample runs cout << absoluteDiff(2) << endl; cout << absoluteDiff(8) << endl; } /*SAMPLE OUTPUT 2 4 */ and here's an example of functional language to which above code should be transformed to: function isFive a: integer returns boolean; b: boolean is false; begin if a==5 then !b; else b; endif; end; The program will return false for any input not equal to 5 and it will return true for an input equal to 5.
Project ID: 15490385

About the project

5 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average ₹206 INR/hour for this job
User Avatar
Hello Are you there ?. I would like to work with you . therefore let me know your reply . I will hoping your reply . Thank You .
₹277 INR in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am good at java programming. This program was an easy one. I can do it for you.
₹111 INR in 10 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
Bangalore, India
4.7
205
Member since Jan 29, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.