forked from 8090-inc/top-coder-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh.template
More file actions
21 lines (15 loc) · 774 Bytes
/
Copy pathrun.sh.template
File metadata and controls
21 lines (15 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Black Box Challenge - Your Implementation
# This script should take three parameters and output the reimbursement amount
# Usage: ./run.sh <trip_duration_days> <miles_traveled> <total_receipts_amount>
# Example implementations (choose one and modify):
# Example 1: Python implementation
# python3 calculate_reimbursement.py "$1" "$2" "$3"
# Example 2: Node.js implementation
# node calculate_reimbursement.js "$1" "$2" "$3"
# Example 3: Direct bash calculation (for simple logic)
# echo "scale=2; $1 * 100 + $2 * 0.5 + $3" | bc
# TODO: Replace this with your actual implementation
echo "TODO: Implement your reimbursement calculation here"
echo "Input: $1 days, $2 miles, \$$3 receipts"
echo "Output should be a single number (the reimbursement amount)"