GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JamesMura/grocery-codejam: our solution to the codejam held at Unicef on 6th June 2012

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.settings
.settings
 
 
bin
bin
 
 
src
src
 
 
test
test
 
 
.classpath
.classpath
 
 
.project
.project
 
 
README
README
 
 
README.md
README.md
 
 

Repository files navigation

CODE JAM PROBLEM

###Question### We want to calculate the price of all the goods procured by a customer in a general store. The customer can buy any number of products which fall in categories Book, Medicine, Food. The store gives a discount of 2% on all medicines and 4% on all the books bought in the store. There's is another discount say 5% given if the total bill exceeds UGX 50,000.

We need to come up with a price calculator which will calculate the price of the customer's shopping basket(consisting of all the products procured).

Test cases would be as follows:

#####Input 1:##### 5 books at UGX 2,000 each Medicines worth UGX 4,000 Food worth UGX 20,000

#####Output 1:##### 5 books - 9600 Medicines - 3,920 Food - 20,000 Total - 33,520 discount on total - 0% Grand Total - 33,520

#####Input 2:##### 5 books at UGX 4,000 each Medicines worth of UGX 10,000 Food worth of UGX 30,000

#####Output 2:##### 5 books - 19200 Medicines - 9,800 Food - 22,000 Total - 51,000 discount on total - 5% Grand Total - 48,450`

About

our solution to the codejam held at Unicef on 6th June 2012

Resources

Readme
Activity

Stars

4 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.