Find Jobs
Hire Freelancers

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

$10-30 USD

In Progress
Posted over 7 years ago

$10-30 USD

Paid on delivery
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
Project ID: 11515877

About the project

1 proposal
Remote project
Active 8 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
Awarded to:
User Avatar
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 in 1 day
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
United States
0.0
0
Member since Sep 13, 2016

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.