Find Jobs
Hire Freelancers

eifel programing language

₹12500-37500 INR

Cerrado
Publicado hace más de 7 años

₹12500-37500 INR

Pagado a la entrega
this assignment needs to be written in Eiffel programming language. Write an application with the following specification. --It should contain a class RECTANGLE with 8 floating point members (DOUBLE) x1,y1,x2,y2,x3,y3,x4,y4 indicating co-ordinates of 4 corner points in a clock-wise fashion. --There should be at least 3 class methods named scale(scale factor), translate(x,y) and rotate(degree). -- The application should always initialize the rectangle with following co-ordinates (0,0), (0,1), (2,1), (2,0). -- The application should ask the user input in the following fashion in an infinite loop. (1) Scale (2) Translate (3) Rotate (4) Quit. Your choice : Upon user entering a number between 1 to 4, it should ask further input (such as scale factor for scaling (from 0.1 to 10 only), (x,y) co-ordinates for translation and degree (0 to 360) for rotation ) if required. -- After every transformation (scale/translate/rotate), print the values of co-ordinates in a single line in the following format: (x1,y1) (x2,y2) (x3,y3) (x4,y4) -- The line asking for user choice should be the next line (NOT on the same line as the co-ordinates). -- Note that after some operations, it is possible that x1 > x4. DO NOT sort the co-ordinates. -- Keep in mind that floating point arithmetic is not commutative. Do not compare two floating point numbers for equality. Compare to see if they are within 0.001 distance of each other. -- Rotation is always performed with respect to (x1,y1). That is, during a rotation (x1,y1) remains fixed. Similarly, (x1,y1) remains fixed during scaling operation as well. -- Please annotate the program with appropriate pre-conditions, post-conditions and invariants.
ID del proyecto: 11962967

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 7 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
1 freelancer está ofertando un promedio de ₹27.777 INR por este trabajo
Avatar del usuario
i am programmer, usually use c# c++ or java.. but also can help you with eiffel. are you interesting. i need a mouth to complety the project. i am programmer, usually use c# c++ or java.. but also can help you with eiffel. are you interesting. i need a mouth to complety the project.
₹27.777 INR en 10 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de INDIA
HYDERABAD, India
0,0
0
Forma de pago verificada
Miembro desde oct 4, 2016

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.