Read IP numbers and netmasks

Completado Publicado May 7, 2003 Pagado a la entrega
Completado Pagado a la entrega

Write a program to read in a data file of IP numbers and netmasks. Your program should calculate the NETID from the IP number and its associated netmask.

The input format is:

IP# in dotted decimal format, followed by spaces, followed by netmask in dotted decimal format.

Example input:

192.7.193.5? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 255.255.252.0

20.5.31.7? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 255.255.0.0

10.1.3.4? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 255.0.0.0

The first line of your output should be your name. The following lines of your program should be the ip# netmask NETID.

Example output:

John Smith

192.168.193.5? ? ? ? ? ? ? ? ? ? ? ? 255.255.252.0? ? ? ? ? ? ? ? ? ? ? ? 192.168.192.0

20.5.31.7? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 255.255.0.0? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 20.5.0.0

10.1.3.4? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 255.0.0.0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 10.0.0.0

Your program may be written in any language. The beginning of your program should have your name in comments. Your program should also print your name as the first line of the output.

Your program should convert the dotted decimal ip# and netmask to a 32bit unsigned integer, AND them together to calculate the NETID. Then convert the resultant 32bit unsigned NETID to dotted decimal format and print out.

Data file:

192.7.193.5 255.255.252.0

20.5.31.7 255.255.0.0

10.1.3.4 255.0.0.0

55.55.7.3 [url removed, login to view]

55.55.7.4 [url removed, login to view]

55.55.7.5 [url removed, login to view]

70.35.101.3 255.255.128.0

99.32.5.3 255.255.252.0

128.235.205.5 255.255.248.0

108.33.5.4 252.0.0.0

[url removed, login to view] 128.0.0.0

[url removed, login to view] 255.255.192.0

[url removed, login to view] 255.255.252.0

64.64.64.5 128.0.0.0

130.6.5.5 [url removed, login to view]

29.172.76.5 [url removed, login to view]

100.5.192.0 255.255.224.0

203.4.1.1 224.0.0.0

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

Windows

Ingeniería MySQL PHP Arquitectura de software Verificación de software Administración de sistemas

Nº del proyecto: #2933125

Sobre el proyecto

5 propuestas Proyecto remoto Activo May 7, 2003

Adjudicado a:

davidtuvin

See private message.

$2 USD en 14 días
(8 comentarios)
1.9

5 freelancers están ofertando un promedio de $19 por este trabajo

bramp

See private message.

$8.5 USD en 14 días
(84 comentarios)
5.1
aycanyerbozan

See private message.

$72.25 USD en 14 días
(37 comentarios)
5.0
masterdotnetvw

See private message.

$3.4 USD en 14 días
(7 comentarios)
2.2
ivanstojic

See private message.

$8.5 USD en 14 días
(7 comentarios)
2.0