Skip to content

jonasbaldwin/CodeTest001

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CodeTest001

This is a project meant to demonstrate developer skills during an interview.

The Problem:

A supermarket sells 3 products listed below: Product A = $20  Product B = $50 (or 5 for the price of 3) Product C = $30

Implement the code for a checkout register that calculates the price of a given sequence of items. The input is a product list as a String, e.g "ABBACBBAB" : for which the output should be the integer 240.

Please consider testability, documentation, and other good coding practices in your solution. As an additional challenge, consider how new pricing rules might be provided programmatically.

Implement the following:

public interface Supermarket {

public int checkout(String items); 

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published