Find Jobs
Hire Freelancers

Output should be generated for all inputs with any programming language. Not necessarily specified programming language.

$10-30 USD

En curso
Publicado hace más de 7 años

$10-30 USD

Pagado a la entrega
I need you to develop some software for me. I would like this software to be developed . Description:  You  work  in  a  toy  store  that  is  seling  Pokemon.  Customers  who  buy  more  than  one  type  of  Pokemon  get a discount.  The  same  type  of  Pokemon  cannot  be  added  to  a  discount  group. Number  of  Different Pokemon Purchased 1 2 3 Discount Amount No discount 10% 20% Pokemon  for Sale Price Pikachu $6 Squirtle $5 Charmander $5 Requirements .The  completed  program  should  be  able  to  calculate  the  best  possible  discount  for  any  colection  of Pokemon. You  may  use  multiple  transactions  to  get  the  best  price. Each  example  should  be  translated  into  a  Unit  Test.  No  UI  component  is  required,  each test  scenario  may be hard  coded.  Additional  Unit  Tests  are  encouraged. Competitive advantage We  wil  be  looking  to  interview  those  individuals  whose  completed  exercise  most  closely  adheres  to the principles  listed  in  the  book  “Clean  Code”.  If  you  are  unfamiliar  with  this  book,  do  not  worry.  Just  try  to write your  code  in  a  manner  which  leaves  you  feeling  proud  of  the  end  product.   Example :   One Purchased  1    Pikachu Should  yield    $6.00  Example    Two Purchased  2    Pikachu Should  yield    $12.00  Example    Three Purchased  1    Pikachu Purchased  1    Squirtle Should  yield    $9.90  Example  Four  *note  that  each  group  of  two  Pokemon  receives  a  10%    discount. Purchased  2    Pikachu Purchased  2    Squirtle Should  yield  $19.80  *2x  Example  3  =>  $9.90  +  $9.90  =    $19.80  Example  Five  *note  that  each  group  of  two  Pokemon  receives  a  10%    discount. Purchased  3    Pikachu Purchased  3    Squirtle Should  yield  $29.70  *3x  Example  3  =>  $9.90  +  $9.90  +  $9.90  =    $29.70  Example  Six  *note  that  the  10%  discount  does  not  apply  to  the  second    Pikachu. Purchased  2    Pikachu Purchased     Squirtle Should  yield  $15.90  Example    Seven Purchased  1    Pikachu Purchased  1    Squirtle Purchased  1    Charmander Should  yield  $12.80  Example  Eight  *note  that  the  20%  discount  applies  to  the  three  grouped  Pokemon,  but  not  the    additional ungrouped    Pikachu. Purchased  2    Pikachu Purchased  1    Squirtle Purchased  1    Charmander Should  yield    $18.80
ID del proyecto: 11515877

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 8 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
Adjudicado a:
Avatar del usuario
work is guaranteed to be finished and optimized within few minutes. I'll make the generation of the test cases and could make the read done from files I'm a computer science TA with 10+ years of experience. The executable will be delivered plus the code code could be written in c++/c#/FORTRAN/PASCAL or any wanted
$15 USD en 1 día
0,0 (1 comentario)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
United States
0,0
0
Miembro desde sept 13, 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.