12-07-2010
Quote:
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
IGNOU / NewDelhi / BCA
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
You need to provide complete information or you cannot post homework here:
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Could anybody please help me in writing a script in unix for converting a decimal number to binary number. (3 Replies)
Discussion started by: softy
3 Replies
2. Programming
I have the following simple code to return a binary number in a array format given an interger and the number of the bits for specifying the interger as binary number.
#include <stdio.h>
#include <stdlib.h>
int main ()
{
// int* get_binary_number(int* bit_array, int num, int... (8 Replies)
Discussion started by: return_user
8 Replies
3. UNIX for Advanced & Expert Users
Hi All,
Is there any command which can convert binary decimal coded values to ascii values...
i have bcd values like below
оооооооооооо0о-- -v -
Pls suggest a way to convert this.
Thanks,
Deepti.Gaur (3 Replies)
Discussion started by: gaur.deepti
3 Replies
4. UNIX for Dummies Questions & Answers
Anybody please help me...
Design an algorithm that accepts an input a decimal number and converts it into BCD (Binary Coded Decimal) representation. Also, draw its Flow Chart.
This is a unix qn...
plz post algorithm for that :confused: (1 Reply)
Discussion started by: caramba
1 Replies
5. Shell Programming and Scripting
Hi All,
New to this forum (and yes , a newbie in programming..:p)
I have a decimal to binary converter script done this way :
i=$1
bit0=$(( (i & 0x01) > 0 ))
bit1=$(( (i & 0x02) > 0 ))
bit2=$(( (i & 0x04) > 0 ))
bit3=$(( (i & 0x08) > 0 ))
bit4=$((... (6 Replies)
Discussion started by: digiteltlc
6 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I want to convert two hexadecimal numbers to decimal using unix command line.
1cce446295197a9d6352f9f223a9b698
fc8f99ac06e88c4faf669cf366f60d
I tried using
`echo "ibase=16; $no |bc`
printf '%x\n' "1cce446295197a9d6352f9f223a9b698"
but it doesn't work for such big number it... (4 Replies)
Discussion started by: sudhakar T
4 Replies
7. Programming
Hello,
I have script which work fine on particular data.file .
The next feature I want to achieve is to get the decimal equivalent of data to data.
The data looks like this :
data(01000000000000000000110000000000)
thank you..
#include <iostream>
#include <fstream>
#include... (4 Replies)
Discussion started by: emily
4 Replies
8. Programming
Hi ,
seq can be 0...128
int windex = seq / 8;
int bindex = seq % 8;
unsigned char bitvalue = '\x01' << (7-bindex) ;
bpv.bitmapvalue = bitvalue;
This is the part of a program to convert decimal to bitmap value of hexadecimal.
I want this to change to convert only to... (1 Reply)
Discussion started by: greenworld123
1 Replies
9. UNIX for Beginners Questions & Answers
Is there a fast way to convert a negative decimal value into a signed binary number in bash script ? I've looked a lot on internet but I saw nothing... (For exemple : -1 become 11111111.) (9 Replies)
Discussion started by: Zedki
9 Replies
LEARN ABOUT MOJAVE
ip::country::maxmind5.18
IP::Country::MaxMind(3) User Contributed Perl Documentation IP::Country::MaxMind(3)
NAME
IP::Country::MaxMind - Look up country by IP Address
SYNOPSIS
use IP::Country::MaxMind;
my $gi = IP::Country::MaxMind->new(GEOIP_STANDARD);
# look up IP address '65.15.30.247'
# returns undef if country is unallocated, or not defined in our database
my $cc1 = $gi->inet_atocc('65.15.30.247');
my $cc2 = $gi->inet_atocc('yahoo.com');
DESCRIPTION
This module adapts the Geo::IP module to use the same interface as the IP::Country modules; thus allowing users to easily switch between
using the two underlying databases.
DATABASE UPDATES
Free monthly updates to the database are available from
http://www.maxmind.com/download/geoip/database/
If you require greater accuracy, MaxMind offers a Premium database on a paid subscription basis.
The author of this module is in no way associated with MaxMind.
CLASS METHODS
$gi = IP::Country::MaxMind->new( $flags );
Constructs a new IP::Country::MaxMind object with the default database located inside your system's datadir, typically
/usr/local/share/GeoIP/GeoIP.dat.
Flags can be set to either GEOIP_STANDARD, or for faster performance (at a cost of using more memory), GEOIP_MEMORY_CACHE. When using
memory cache you can force a reload if the file is updated by setting GEOIP_CHECK_CACHE.
$gi = IP::Country::MaxMind->open( $database_filename, $flags );
Constructs a new Geo::IP object with the database located at $database_filename.
OBJECT METHODS
All object methods are designed to be used in an object-oriented fashion.
$result = $object->foo_method($bar,$baz);
Using the module in a procedural fashion (without the arrow syntax) won't work.
$cc = $gi->inet_atocc(HOSTNAME)
Takes a string giving the name of a host, and translates that to an two-letter country code. Takes arguments of both the 'rtfm.mit.edu'
type and '18.181.0.24'. If the host name cannot be resolved, returns undef. If the resolved IP address is not contained within the
database, returns undef.
$cc = $gi->inet_ntocc(IP_ADDRESS)
Takes a string (an opaque string as returned by Socket::inet_aton()) and translates it into a two-letter country code. If the IP
address is not contained within the database, returns undef.
$cc = $gi->db_time()
Returns zero. For compatibility only.
COPYRIGHT
Copyright (C) 2002,2003 Nigel Wetters Gourlay. All Rights Reserved.
NO WARRANTY. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.18.2 2006-04-06 IP::Country::MaxMind(3)