Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephnna/product-catalogue
https://github.com/stephnna/product-catalogue
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stephnna/product-catalogue
- Owner: stephnna
- Created: 2024-01-18T07:56:50.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-18T11:13:57.000Z (11 months ago)
- Last Synced: 2024-04-22T06:10:04.377Z (8 months ago)
- Language: Jupyter Notebook
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# product-catalogue
Task 1
Here is a catalogue with 3 products.
Product Name : Price
Product A : $20
Product B : $40
Product C : $50Discount Rules:
● "flat_10_discount": If cart total exceeds $200, apply a flat $10 discount on the cart total.
● "bulk_5_discount": If the quantity of any single product exceeds 10 units, apply a 5% discount
on that item's total price.
● "bulk_10_discount": If total quantity exceeds 20 units, apply a 10%
discount on the cart total.
● "tiered_50_discount": If total quantity exceeds 30 units & any single product quantity greater
than 15, then apply a 50% discount on products which are above 15 quantity. The first 15
quantities have the original price and units above 15 will get a 50% discount.Note: Only one rule can be applied per purchase. If multiple discounts are applicable, the program
calculates the discount amount for each rule and applies the most beneficial one for customer.Fees:
● Gift wrap fee: $1 per unit.
● Shipping fee: 10 units can be packed in one package, and the shipping fee for each package is
$5.Program
The program will ask the quantity of each product. The program will also ask if that product is wrapped
as a gift?
Then the program will show / output below details.
● The product name, quantity & total amount of that product.
● Subtotal
● The discount name applied & the discount amount.
● The shipping fee & the gift wrap fee.
● TotalPlease solve the problem using 2 programming languages you know well (preferably Python, JavaScript,
or PHP). You don't need to create a web application or don’t need to use any database for this.
Do not use any frameworks or libraries. Push the code in any public code repo (GitHub, GitLab
etc) & share the repo link with us. In the code repo, add the steps / document about how to use
the program. The program should accept the given parameters and provide the solution as
output. AI generated code will be disqualified.Task 2
Do share your thoughts on the following
- Why do you like to join as a Software developer?
- List top 3 softwares / tools that inspire you. Why do these tools inspire you?
- List top 3 organisations you like to join in your career & why you like these organisations.
- How you position yourself in this industry after 2 years.
- List 3 projects / products you have built or have planned to build in the upcoming year, also
explain your role in the same.