id
stringlengths
23
26
text
stringlengths
20
1.37k
format
stringclasses
2 values
messages
listlengths
2
4
⌀
family
stringclasses
1 value
sub
stringclasses
3 values
variant
stringclasses
1 value
variant_of
stringclasses
0 values
generator
stringclasses
1 value
sources
listlengths
0
0
source_ids
listlengths
0
0
n_tokens_alea
int64
8
494
meta
stringlengths
47
170
nlprog_det-setting-0053460
Of a $2,000 budget, $100 has been spent. What percent is that? Code: ```python budget = 2000 spent = 100 percent = spent / budget * 100 # 5.0 print(round(percent, 1)) ``` Run result = 5.0 5.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "5.0", "printed": "5.0", "notation": null}
nlprog_det-setting-0053461
An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months? We can compute it in Python. ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 75.0 print(f"{interest:.2f}") ``` (Execution result: 75.00) $75.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0053462
The paralegal logged 7 hours at a rate of $410. How much is billed? Programmatically: ```python hours = 7 rate = 410 bill = hours * rate # 2870 print(f"{bill:.2f}") ``` stdout: 2870.00 The bill is $2,870.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2870.00", "printed": "2870.00", "notation": null}
nlprog_det-setting-0053463
Printing costs 15 cents a page. What does it cost to print 91 copies of a 55-page handout? We can compute it in Python. ```python pages = 55 copies = 91 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 750.75 print(f"{cost:.2f}") ``` It prints 750.75, as expected. The job costs $750.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "750.75", "printed": "750.75", "notation": null}
nlprog_det-setting-0053464
At an exchange rate of 1.08 CAD per USD, how many CAD is 4,510 USD? In Python: ```python amount = 4510 rate = 1.08 converted = amount * rate # 4870.8 print(f"{converted:.2f}") ``` (Printed result: 4870.80) It converts to 4,870.80 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "4870.80", "printed": "4870.80", "notation": null}
nlprog_det-setting-0053465
What commission does Ana make on $15,701 in sales at 10%? As a program: ```python sales = 15701 rate = 10 / 100 # 0.1 commission = sales * rate # 1570.1000000000001 print(f"{commission:.2f}") ``` # result: 1570.10 Ana earns $1,570.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1570.10", "printed": "1570.10", "notation": null}
nlprog_det-setting-0053466
<|start|><|user|> Walls total 1208 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1208 coverage = 400 cans = math.ceil(area / coverage) # 4 print(cans) ``` Result — 4 Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1208 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1208\ncoverage = 400\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nResult — 4\n\nBuy 4 cans." }...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0053467
<|start|><|system|> You may call the tools below. {"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "fetch_filing", "des...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
320
{"gold": "15.50", "printed": "15.50", "notation": null}
nlprog_det-setting-0053468
What is the total rent on a 24-month lease at $3,250 a month? We write it as a program: monthly_rent = 3250 months = 24 total = monthly_rent * months # 78000 print(total) When run, it prints 78000, as expected. The rent over the term is $78,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "78000", "printed": "78000", "notation": null}
nlprog_det-setting-0053469
<|start|><|user|> How many of 68 votes make 75% (round up)?<|eot|> <|assistant|> 51 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 68 votes make 75% (round up)?" }, { "role": "assistant", "content": "51 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0053470
<|start|><|system|> You can call tools. Available tools: [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Wha...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "60.05", "printed": "60.05", "notation": null}
nlprog_det-setting-0053471
A meal costs $76.51. How much is a 20% tip? ```python bill = 76.51 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 15.302000000000001 print(f"{tip:.2f}") ``` Result — 15.30 Leave $15.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "15.30", "printed": "15.30", "notation": null}
nlprog_det-setting-0053472
<|start|><|system|> Tool definitions: [{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "search_cases", "description": "Search...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippe...
nlprog_det
setting
original
null
deterministic
[]
[]
276
{"gold": "153", "printed": "153", "notation": null}
nlprog_det-setting-0053473
<|start|><|system|> Tools you may use: {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "translate", "description": "Translate...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr...
nlprog_det
setting
original
null
deterministic
[]
[]
335
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0053474
<|start|><|system|> Available functions (JSON Schema): [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
257
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0053475
<|start|><|user|> A 24-month warranty starts on October 12, 2022. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2022, 10, 12) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofo...
chat
[ { "role": "user", "content": "A 24-month warranty starts on October 12, 2022. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2022, 10, 12)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(star...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2024-10-12", "printed": "2024-10-12", "notation": null}
nlprog_det-setting-0053476
The paralegal logged 6.5 hours at a rate of $250. How much is billed? Python makes this quick: ```python hours = 6.5 rate = 250 bill = hours * rate # 1625.0 print(f"{bill:.2f}") ``` Run result: 1625.00 The bill is $1,625.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1625.00", "printed": "1625.00", "notation": null}
nlprog_det-setting-0053477
A hearing lasted 5 hours and 31 minutes. How many minutes is that? Script: ```python hours = 5 minutes = 31 total_minutes = hours * 60 + minutes # 331 print(total_minutes) ``` Output: 331 That is 331 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "331", "printed": "331", "notation": null}
nlprog_det-setting-0053478
How much is a $59 daily meal allowance over 3 days? Here's the code. ```python days = 3 meal_rate = 59 total = days * meal_rate print(total) ``` This prints 177. That comes to $177.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "177", "printed": "177", "notation": null}
nlprog_det-setting-0053480
<|start|><|user|> A printer costs $90. It is 20% off. What is the sale price?<|eot|> <|assistant|> ```python price = 90 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` Program output — 72.00 The sale price is $72.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A printer costs $90. It is 20% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 72.0\nprint(f\"{sale_price:.2f}\")\n```\nProgram output — 72.00\n\nThe sale p...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0053481
<|start|><|user|> A clerk's office charges $125 for each filing. Jonas submits 17 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 125 filings = 17 total = fee * filings # 2125 print(total) ``` Running it prints 2125, as expected. $2,125 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $125 for each filing. Jonas submits 17 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 125\nfilings = 17\ntotal = fee * filings # 2125\nprint(total)\n```\nRunning it prints 2125, as expected.\n\n$2,12...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2125", "printed": "2125", "notation": null}
nlprog_det-setting-0053482
<|start|><|user|> How many whole days and leftover hours are in 204 hours?<|eot|> <|assistant|> ```python hours = 204 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` This prints 8 days and 12 hours, as expected. That is 8 days and 12 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 204 hours?" }, { "role": "assistant", "content": "```python\nhours = 204\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThis prints 8 days and 12 hours, as expected.\n\nThat is 8 days and...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "8 days and 12 hours", "printed": "8 days and 12 hours", "notation": null}
nlprog_det-setting-0053483
Fines run at $250 per day up to a maximum of $2,500. How much after 36 days? As Python: ```python per_day = 250 days = 36 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Result — 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0053485
Counting the first and last day, how many days are there from August 23, 2020 through September 3, 2020? We can compute it in Python. ```python from datetime import date first = date(2020, 8, 23) # datetime.date(2020, 8, 23) last = date(2020, 9, 3) # datetime.date(2020, 9, 3) days = (last - first).days + 1 # 12 pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0053486
A claim accrued on March 2, 2022. The limitations period is 6 years. On what date does it expire? In code: ```python from datetime import date accrued = date(2022, 3, 2) # datetime.date(2022, 3, 2) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 3, 2) print(expires.isoformat()) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2028-03-02", "printed": "2028-03-02", "notation": null}
nlprog_det-setting-0053487
With 15% off, what does a $40 kettle cost? Computation in Python: ```python price = 40 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 34.0 print(f"{sale_price:.2f}") ``` Result — 34.00 The sale price is $34.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0053488
A customer buys 1 notebooks at $22 each, 6 flash drives at $7 each, 5 sticky pads at $29 each, 2 lanyards at $2 each and pays with $250. How much change is due? The change is $37.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0053489
<|start|><|user|> Convert 2.7 km to meters.<|eot|> <|assistant|> ```python km = 2.7 meters = km * 1000 # 2700.0 print(round(meters)) ``` # printed: 2700 That is 2,700 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 2.7 km to meters." }, { "role": "assistant", "content": "```python\nkm = 2.7\nmeters = km * 1000 # 2700.0\nprint(round(meters))\n```\n# printed: 2700\n\nThat is 2,700 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "2700", "printed": "2700", "notation": null}
nlprog_det-setting-0053490
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|> <|assistant|> The weekly pay is $1,160.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?" }, { "role": "assistant", "content": "The weekly pay is $1,160.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "1160.00", "printed": "1160.00", "notation": null}
nlprog_det-setting-0053491
A 7-day trip pays $69 a day for meals and $140 a night for lodging (6 nights). What is the total allowance? Computation in Python: ```python days = 7 meal_rate = 69 lodging_rate = 140 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` What it prints: 1323 That comes to $1,323.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1323", "printed": "1323", "notation": null}
nlprog_det-setting-0053492
<|start|><|user|> What average speed covers 64 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 64 hours = 2 speed = distance / hours # 32.0 print(round(speed)) ``` Python prints 32, as expected. The average speed is 32 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 64 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 64\nhours = 2\nspeed = distance / hours # 32.0\nprint(round(speed))\n```\nPython prints 32, as expected.\n\nThe average speed is 32 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0053493
What does $2,000 grow to in 5 years at 4% annual compounding? Let the code do the arithmetic: ```python principal = 2000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 2433.3058048000003 print(f"{value:.2f}") ``` Interpreter output: 2433.31 It is worth $2,433.31.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2433.31", "printed": "2433.31", "notation": null}
nlprog_det-setting-0053494
Of a $5,000 budget, $2,700 has been spent. What percent is that? Set it up in Python: ```python budget = 5000 spent = 2700 percent = spent / budget * 100 # 54.0 print(round(percent, 1)) ``` That prints 54.0. 54.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "54.0", "printed": "54.0", "notation": null}
nlprog_det-setting-0053495
From 2007 to 2031, how many years is that? As a program: ```python start_year = 2007 end_year = 2031 print(end_year - start_year) ``` The program prints 24, as expected. That is 24 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0053496
A 2% increase is applied to $900 monthly rent. What is the new amount? As a program: ```python rent = 900 increase = 2 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` The script prints 918.00, as expected. It rises to $918.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "918.00", "printed": "918.00", "notation": null}
nlprog_det-setting-0053497
A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term? A short script: ```python monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) ``` Running this gives 12600. The rent over the term is $12,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0053498
What is the total rent on a 36-month lease at $850 a month? The computation: ```python monthly_rent = 850 months = 36 total = monthly_rent * months # 30600 print(total) ``` The run gives: 30600 In total, $30,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0053500
From 1998 to 2028, how many years is that? Coded up: ```python start_year = 1998 end_year = 2028 print(end_year - start_year) ``` # run result: 30 That is 30 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0053501
From a $10,000 retainer, 2 hours at $250/hour have been drawn. What remains? ```python retainer = 10000 hours = 2 rate = 250 left = retainer - hours * rate # 9500 print(left) ``` Out: 9500 The remaining balance is $9,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "9500", "printed": "9500", "notation": null}
nlprog_det-setting-0053502
A room is 16 feet by 14 feet. Flooring costs $3 per square foot. What does it cost to floor the room? It costs $672.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "672", "printed": "672", "notation": null}
nlprog_det-setting-0053503
<|start|><|user|> With $20,000 in costs and $22,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 22000 costs = 20000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 9.090909090909092 print(round(margin, 1)) ``` stdout = 9.1 Profit is ...
chat
[ { "role": "user", "content": "With $20,000 in costs and $22,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 22000\ncosts = 20000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 9.0909090909...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0053504
<|start|><|user|> Starting with 217 tape rolls and using 7 per day, how many remain after 12 days?<|eot|> <|assistant|> ```python stock = 217 per_day = 7 days = 12 left = stock - per_day * days # 133 print(left) ``` The program prints: 133 133 tape rolls are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 217 tape rolls and using 7 per day, how many remain after 12 days?" }, { "role": "assistant", "content": "```python\nstock = 217\nper_day = 7\ndays = 12\nleft = stock - per_day * days # 133\nprint(left)\n```\nThe program prints: 133\n\n133 tape rolls ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "133", "printed": "133", "notation": null}
nlprog_det-setting-0053505
A $150 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? bill = 150 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 34.5 print(f"{each:.2f}") Execution prints 34.50. Each person pays $34.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0053506
To read 500 pages in 20 days, how many pages per day are needed? We write it as a program: ```python pages = 500 days = 20 per_day = pages // days # 25 print(per_day) ``` stdout — 25 25 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0053507
The landlord deducts $60 and $150 from a $1,500 deposit. What is returned to the tenant? The program: ```python deposit = 1500 deductions = [60, 150] refund = deposit - sum(deductions) # 1290 print(refund) ``` Console: 1290 $1,290 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1290", "printed": "1290", "notation": null}
nlprog_det-setting-0053508
<|start|><|user|> Filing fees are $90 per document. What do 14 filings cost?<|eot|> <|assistant|> ```python fee = 90 filings = 14 total = fee * filings # 1260 print(total) ``` It outputs: 1260 The filings cost $1,260 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $90 per document. What do 14 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 90\nfilings = 14\ntotal = fee * filings # 1260\nprint(total)\n```\nIt outputs: 1260\n\nThe filings cost $1,260 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1260", "printed": "1260", "notation": null}
nlprog_det-setting-0053509
At $15.87 an hour, what does 16 hours of work pay? Python code: ```python rate = 15.87 hours = 16 earnings = rate * hours # 253.92 print(f"{earnings:.2f}") ``` It outputs 253.92. The pay is $253.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "253.92", "printed": "253.92", "notation": null}
nlprog_det-setting-0053510
A water bill is $18 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 7 thousand gallons? The bill is $51.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "51.25", "printed": "51.25", "notation": null}
nlprog_det-setting-0053511
A hearing is set for January 1, 2013. What day of the week is that? In code: ```python from datetime import date hearing = date(2013, 1, 1) # datetime.date(2013, 1, 1) print(hearing.strftime("%A")) ``` Run result — Tuesday It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0053512
What is the total rent on a 12-month lease at $2,875 a month? Coded up: ```python monthly_rent = 2875 months = 12 total = monthly_rent * months # 34500 print(total) ``` It outputs: 34500 The rent over the term is $34,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "34500", "printed": "34500", "notation": null}
nlprog_det-setting-0053513
Parking is $3 per hour with a daily maximum of $20. What do 2 hours cost? Python: ```python rate = 3 hours = 2 daily_max = 20 cost = min(rate * hours, daily_max) # 6 print(cost) ``` The run gives: 6 Parking costs $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0053514
At 1.5% a month (simple), what interest builds on $12,000 over 3 months? Here's the code. ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 540.0 print(f"{interest:.2f}") ``` The program prints 540.00. The interest is $540.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0053515
A hall has 12 rows of 24 seats, and 25 seats are empty. How many people are seated? We write it as a program: ```python rows = 12 per_row = 24 empty = 25 seated = rows * per_row - empty # 263 print(seated) ``` The code prints 263. 263 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "263", "printed": "263", "notation": null}
nlprog_det-setting-0053516
Leon's scores were 88, 57, 68, 74, 65, 50 and 81. What is the average score? As a program: scores = [88, 57, 68, 74, 65, 50, 81] average = sum(scores) // len(scores) print(average) That prints: 69 The average score is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0053517
Jamal earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week? Python, step by step: ```python rate = 20.0 hours = 53 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 390.0 pay = regular + overtime # 1190.0 print(f"{pay:.2f}") ``` The code prints 1190.00. Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1190.00", "printed": "1190.00", "notation": null}
nlprog_det-setting-0053518
Each of Beatriz's walks burns 300 calories. How many calories over 6 walks? We can compute it in Python. ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Out = 1800 1800 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0053519
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A trial ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0053520
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A 282-page report must be reviewed in 6 days. How many pages a day is that, evenly?<|eot|> <|assistant|> 47 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A 282-page report must be reviewed in 6 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "47 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0053521
<|start|><|user|> With 19 rows of 20 chairs and 8 empty chairs, how many chairs are taken?<|eot|> <|assistant|> 372 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 19 rows of 20 chairs and 8 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "372 people are seated." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "372", "printed": "372", "notation": null}
nlprog_det-setting-0053522
1.5 hours of work at $150 an hour: what is the total charge? ```python hours = 1.5 rate = 150 bill = hours * rate # 225.0 print(f"{bill:.2f}") ``` Executing it gives 225.00, as expected. The bill is $225.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0053523
<|start|><|user|> A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> $12 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "$12 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0053524
The landlord deducts $120 from a $2,500 deposit. What is returned to the tenant? Translated to Python: ```python deposit = 2500 deductions = [120] refund = deposit - sum(deductions) # 2380 print(refund) ``` This prints 2380. The refund is $2,380.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2380", "printed": "2380", "notation": null}
nlprog_det-setting-0053525
Of a $5,000 budget, $3,700 has been spent. What percent is that? Python does the arithmetic: ```python budget = 5000 spent = 3700 percent = spent / budget * 100 # 74.0 print(round(percent, 1)) ``` Output: 74.0 74.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "74.0", "printed": "74.0", "notation": null}
nlprog_det-setting-0053526
Equipment costs $45,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year? The program: ```python cost = 45000 salvage = 0 years = 6 per_year = (cost - salvage) / years # 7500.0 print(f"{per_year:.2f}") ``` stdout: 7500.00 $7,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0053527
How many meters are in 61.8 kilometers? Computation in Python: km = 61.8 meters = km * 1000 # 61800.0 print(round(meters)) On running, it outputs: 61800 That is 61,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "61800", "printed": "61800", "notation": null}
nlprog_det-setting-0053528
Convert 0 °C to Fahrenheit. That is 32 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0053529
What simple interest does $20,000 earn at 2% a year over 5 years? The interest is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0053530
A film lasted 5 hours and 44 minutes. How many minutes is that? ```python hours = 5 minutes = 44 total_minutes = hours * 60 + minutes # 344 print(total_minutes) ``` # output: 344 The film lasted 344 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "344", "printed": "344", "notation": null}
nlprog_det-setting-0053531
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours? Set it up in Python: ```python rate = 18.5 hours = 47 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 194.25 pay = regular + overtime # 934.25 print(f"{pay:.2f}") ``` Run result: 934.25 Tomas earns $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "934.25", "printed": "934.25", "notation": null}
nlprog_det-setting-0053532
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Chen and Ana share $3,878 in the ratio 3:4. How much does Chen get?<|eot|> <|assistant|> ```python total = 3878 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1662 print(share_a) ``` Running this gives: 1662 Chen gets $1,662.<|e...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Chen and Ana share $3,878 in the ratio 3:4. How much does Chen get?" }, { "role": "assistant", "content": "```python\ntotal = 3878\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (part...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1662", "printed": "1662", "notation": null}
nlprog_det-setting-0053533
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0053534
Convert 0 °C to Fahrenheit. Set it up in Python: ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` (Out: 32) It equals 32 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0053535
What is a 20% tip on a $119.60 bill? As a program: ```python bill = 119.6 tip_rate = 20 / 100 tip = bill * tip_rate print(f"{tip:.2f}") ``` (stdout: 23.92) The tip is $23.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "23.92", "printed": "23.92", "notation": null}
nlprog_det-setting-0053536
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after July 22, 2020 through August 9, 2020?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 7, 22) end = date(2020, 8, 9) count = 0 for k in range(1, ...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after July 22, 2020 through August 9, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, ti...
nlprog_det
setting
original
null
deterministic
[]
[]
166
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0053537
Under a 25% contingency agreement, what fee is owed on a $60,000 award? As Python: ```python recovery = 60000 rate = 25 / 100 # 0.25 fee = recovery * rate # 15000.0 print(f"{fee:.2f}") ``` stdout = 15000.00 The lawyer's fee comes to $15,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0053538
<|start|><|user|> Each of Maren's swims burns 400 calories. How many calories over 5 swims?<|eot|> <|assistant|> 2000 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Maren's swims burns 400 calories. How many calories over 5 swims?" }, { "role": "assistant", "content": "2000 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0053539
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> A penalty of $25 a day accrues, capped at $5,000. What is owed after 36 days?<|eot|> <|assistant|> ```python per_day = 25 days = 36 cap = 5000 fine = min(per_day * days, cap) # 900 print(fine) ``` (Run result: 900) $900 is owed.<|eot|>...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "A penalty of $25 a day accrues, capped at $5,000. What is owed after 36 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 36\ncap = 5000\nfine =...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0053540
Express 149 hours in days and hours. Python: ```python hours = 149 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # run result: 6 days and 5 hours 149 hours is 6 days and 5 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "6 days and 5 hours", "printed": "6 days and 5 hours", "notation": null}
nlprog_det-setting-0053542
<|start|><|user|> 207 files go into boxes of 24. How many boxes does that take?<|eot|> <|assistant|> It takes 9 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "207 files go into boxes of 24. How many boxes does that take?" }, { "role": "assistant", "content": "It takes 9 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0053543
Meals are $69 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights? Python: ```python days = 7 meal_rate = 69 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1533 print(total) ``` Console: 1533 That comes to $1,533.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1533", "printed": "1533", "notation": null}
nlprog_det-setting-0053544
<|start|><|user|> Papers were served by mail on July 23, 2026. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> It is due August 25, 2026.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Papers were served by mail on July 23, 2026. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "It is due August 25, 2026." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "2026-08-25", "printed": "2026-08-25", "notation": null}
nlprog_det-setting-0053545
<|start|><|user|> Sales went from 500 to 625. What is the percent change?<|eot|> <|assistant|> ```python old = 500 new = 625 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` It prints 25. It changed by 25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 500 to 625. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 625\nchange = (new - old) / old * 100 # 25.0\nprint(round(change))\n```\nIt prints 25.\n\nIt changed by 25%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0053546
<|start|><|user|> What day of the week is January 6, 2008?<|eot|> <|assistant|> It is a Sunday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is January 6, 2008?" }, { "role": "assistant", "content": "It is a Sunday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0053547
A garage charges $5 an hour, never more than $15 a day. How much for 3 hours? In Python: ```python rate = 5 hours = 3 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Interpreter output — 15 The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0053548
A customer buys 5 desk lamps at $7 each, 4 notebooks at $8 each, 3 markers at $24 each and pays with $150. How much change is due? ```python items = [(5, 7), (4, 8), (3, 24)] total = sum(q * p for q, p in items) # 139 paid = 150 change = paid - total # 11 print(change) ``` # printed result: 11 $11 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0053549
<|start|><|user|> At 60 miles per hour, how many minutes does a 120-mile trip take?<|eot|> <|assistant|> distance = 120 speed = 60 minutes = distance / speed * 60 # 120.0 print(round(minutes)) Output of the run: 120 The trip takes 120 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 60 miles per hour, how many minutes does a 120-mile trip take?" }, { "role": "assistant", "content": " distance = 120\n speed = 60\n minutes = distance / speed * 60 # 120.0\n print(round(minutes))\nOutput of the run: 120\n\nThe trip takes 120 minutes...
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0053550
After a 25% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? A short script: ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 4 # 18000.0 print(f"{per_client:.2f}") ``` The interpreter p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0053551
Goods bought on April 25, 2018 carry a 6-month warranty. When does it expire? Written as code: ```python from datetime import date start = date(2018, 4, 25) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` On runn...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2018-10-25", "printed": "2018-10-25", "notation": null}
nlprog_det-setting-0053552
A client paid a $5,000 retainer. The firm has billed 14 hours at $200 per hour. How much of the retainer is left? The program: ```python retainer = 5000 hours = 14 rate = 200 left = retainer - hours * rate # 2200 print(left) ``` The program outputs: 2200 The remaining balance is $2,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2200", "printed": "2200", "notation": null}
nlprog_det-setting-0053553
With 11 rows of 10 chairs and 13 empty chairs, how many chairs are taken? 97 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "97", "printed": "97", "notation": null}
nlprog_det-setting-0053554
From a $2,500 retainer, 10 hours at $250/hour have been drawn. What remains? Programmatically: ```python retainer = 2500 hours = 10 rate = 250 left = retainer - hours * rate # 0 print(left) ``` This prints 0, as expected. $0 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "0", "printed": "0", "notation": null}
nlprog_det-setting-0053555
A $9,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? Python code: ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "810.00", "printed": "810.00", "notation": null}
nlprog_det-setting-0053556
Monthly: $19. Annual: $180. What is saved per year by paying annually? Python version: ```python monthly = 19 yearly = 180 savings = monthly * 12 - yearly print(savings) ``` stdout: 48 $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0053557
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Diego earns a 4% commission on $60,488 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 60488 rate = 4 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Execution prints 2419.52. Diego earns $2,419.52.<|eot|> ...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Diego earns a 4% commission on $60,488 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 60488\nrate = 4 / 100\ncommission = sales * rate\n...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2419.52", "printed": "2419.52", "notation": null}
nlprog_det-setting-0053558
<|start|><|user|> After an initial $6,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> $4,000.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "$4,000.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0053559
Straight-line depreciation: cost $24,000, salvage $3,000, 6 years. How much per year? Coded up: ```python cost = 24000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 3500.0 print(f"{per_year:.2f}") ``` The interpreter prints: 3500.00 $3,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0053560
A penalty of $250 a day accrues, capped at $5,000. What is owed after 58 days? A Python solution: ```python per_day = 250 days = 58 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` This prints 5000. $5,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0053561
Count the days between April 7, 2021 and April 10, 2022. Here's the code. ```python from datetime import date first = date(2021, 4, 7) # datetime.date(2021, 4, 7) second = date(2022, 4, 10) # datetime.date(2022, 4, 10) print((second - first).days) ``` This prints: 368 There are 368 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "368", "printed": "368", "notation": null}
nlprog_det-setting-0053562
With 30% off, what does a $90 backpack cost? One way, in code: price = 90 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 62.99999999999999 print(f"{sale_price:.2f}") This prints 63.00. It costs $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0053563
An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 6 months? ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` The interpreter prints 240.00. $240.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "240.00", "printed": "240.00", "notation": null}