question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
If a recipe requires 1/2 cup of sugar and you want to make 4 batches, how many cups of sugar would you need in total? | def solve() -> int:
sugar_per_batch = 1/2
batches = 4
total_sugar = sugar_per_batch * batches
result = total_sugar
return result
|
A movie theater sells tickets for $8 each. If they sell 200 tickets, how much money do they make? | def solve() -> int:
num_tickets = 200
ticket_price = 8
total_revenue = num_tickets * ticket_price
result = total_revenue
return result
|
A store earned a total revenue of $2500 in 1 day. If the store sold 75% of its inventory on that day and each item cost $10, how many items did the store have in its inventory? | def solve() -> int:
total_revenue = 2500
percent_sold = 0.75
item_cost = 10
total_items_sold = round(total_revenue/(item_cost*percent_sold))
result = total_items_sold
return result
|
Emily runs a toy store that needs to stock up with 30 boxes of puzzles. While loading the boxes into her car, she drops 2 of them. She calls her supplier and ordered 10 more boxes for sale. How many puzzles did Emily sell that day? | def solve() -> int:
total_boxes = 30
dropped_boxes = 2
ordered_boxes = 10
remaining_boxes = total_boxes - dropped_boxes + ordered_boxes
puzzles_sold = total_boxes - remaining_boxes
result = puzzles_sold
return result
|
Ethan wants to upgrade his internet plan that currently costs him $60 a month. The new plan he chooses is 50% more expensive. How much does he need to pay now for internet every month? | def solve() -> int:
current_cost = 60
increase_percentage = 50
increase_amount = current_cost * increase_percentage / 100
new_cost = current_cost + increase_amount
result = new_cost
return result
|
In Evergreen Orchard, there are 10 more than twice the number of pumpkins in Gold Orchard. If Gold Orchard has 16 pumpkins, how many pumpkins are in Evergreen Orchard? | def solve() -> int:
num_ever_orch = 0
num_gold_orch = 16
factor = 2
plus = 10
num_ever_orch = num_gold_orch * factor + plus
result = num_ever_orch
return result
|
Emma, Tom's sister, is 12 years old. Tom's brother is three times as old as Emma. Tom is twice as old as his sister. What's the combined age of the siblings? | def solve() -> int:
emma = 12
brother = 3 * emma
tom = 2 * emma
result = emma + brother + tom
return result
|
Michelle works on her art project for 270 minutes. She takes a break to clean her brushes every 45 minutes and a break to rest her eyes every 90 minutes. How many more brush-cleaning breaks does she take than eye resting breaks? | def solve() -> int:
brush_cleaning_break_interval = 45
eye_rest_break_interval = 90
total_working_time = 270
brush_cleaning_breaks = total_working_time // brush_cleaning_break_interval
eye_rest_breaks = total_working_time // eye_rest_break_interval
result = brush_cleaning_breaks - eye_rest_... |
A store purchases 150 items at a cost of $5 per item. If they sell each item for $10, what is the store's profit? | def solve() -> int:
items = 150
cost_per_item = 5
selling_price = 10
profit = (selling_price - cost_per_item) * items
result = profit
return result
|
Lauren is paid $15 per hour. She receives an additional commission of $20 for every 5 items she sells. Lauren worked 35 hours and sold 100 items. How much did she earn in total? | def solve() -> int:
earnings = (15 * 35) + (20 * (100 / 5))
result = earnings
return result
|
Leo bought seven times as many snakes as Mia from the zoo. He also bought four times as many lizards as Mia. If Mia bought 5 snakes and 3 lizards, how many more snakes and lizards do Leo have more than Mia altogether? | def solve() -> int:
snakes_leo = 7 * 5
lizards_leo = 4 * 3
more_snakes = snakes_leo - 5
more_lizards = lizards_leo - 3
total_more = more_snakes + more_lizards
result = total_more
return result
|
At a restaurant, Lisa ordered 67 total dishes. This is 9 more than 8 times the number of dishes ordered by Gary. How many dishes did Gary order? | def solve() -> int:
gary_dishes = 0
total_dishes = 67
more_dishes = 9
gary_dishes = (total_dishes - more_dishes) / 8
result = gary_dishes
return result
|
During a school race, Mark ran 100 m in 10 seconds. What was his average running speed in m/s? | def solve() -> int:
distance = 100
time = 10
speed = distance / time
result = speed
return result
|
``` A phone costs $180 and its price is reduced by 10%. What is the new price of the phone? | def solve() -> int:
original_price = 180
reduction_percentage = 10
reduced_price = original_price - (original_price * (reduction_percentage/100))
result = reduced_price
return result
|
Mathew is a cyclist who completes 75 miles in 3 hours and 45 minutes. What is his average speed in miles per hour? | def solve() -> int:
distance_travelled = 75
time_taken_minutes = 3 * 60 + 45
time_taken_hours = time_taken_minutes / 60
average_speed = distance_travelled / time_taken_hours
result = average_speed
return result
|
Ethan is making flower bouquets for his family and a few friends. Everyone receives a bouquet and each bouquet is made up of 12 flowers. The flowers come from planters, which each produce 36 flowers. If Ethan breaks down 4 planters and uses every single flower, how many family members and friends receive a bouquet? | def solve() -> int:
total_planters = 4
flowers_per_planter = 36
flowers_per_bouquet = 12
total_flowers = total_planters * flowers_per_planter
total_bouquets = total_flowers // flowers_per_bouquet
result = total_bouquets
return result
|
Michael pays $30/hour for 5 hours a week of personal piano lessons and $20/hour for 7 hours a week of group guitar lessons. How much more does he spend on group guitar lessons than personal piano lessons in a year? | def solve() -> int:
piano_rate = 30
piano_hours = 5
guitar_rate = 20
guitar_hours = 7
piano_cost_per_week = piano_rate * piano_hours
guitar_cost_per_week = guitar_rate * guitar_hours
piano_cost_per_year = piano_cost_per_week * 52
guitar_cost_per_year = guitar_cost_per_week * 52... |
Possible new questions and programs are: Liam baked 48 cupcakes in three batches and gave away 12 of them to his friends. Sam baked 36 cupcakes in two batches and ate 6 of them. How many cupcakes did they have left in total? | def solve() -> int:
liam_left = 48 - 12
sam_left = 36 - 6
total_left = liam_left + sam_left
result = total_left
return result
|
If there are 4 quarters and 3 dimes, how much money in cents do they have in total? | def solve() -> int:
dimes = 3
quarters = 4
total = (dimes * 10) + (quarters * 25)
result = total
return result
|
A family has 3 cars, 2 motorcycles, and 1 bike. Each car and motorcycle has 2 headlights and each bike has 1. How many headlights do they have in total? | def solve() -> int:
cars = 3
motorcycles = 2
bikes = 1
headlights = (cars * 2) + (motorcycles * 2) + bikes
result = headlights
return result
|
Juan needs to finish reading a book for his literature class. He has already read 50 pages out of 150 pages. If he reads 25 pages each day, how many more days does Juan need to finish the book? | def solve() -> int:
pages_read = 50
total_pages = 150
pages_per_day = 25
pages_left = total_pages - pages_read
days_left = pages_left // pages_per_day + 1
result = days_left
return result
|
-Since there are 10 questions, use Question 1:, etc to tag each question. Possible questions and programs (the questions are not necessarily based on real facts): A bus travels at an average speed of 30 miles per hour. It makes 6 stops along the way, each lasting 5 minutes. The total distance between the first and the ... | def solve() -> int:
stops_time = 6 * 5 / 60
driving_time = 90 / 30
total_time = stops_time + driving_time
total_time = total_time * 60
total_time = round(total_time)
result = total_time
return result
|
A car travels at 50 miles per hour for 3 hours and then 60 miles per hour for 2 hours. How far did it travel in total? | def solve() -> int:
speed_first_leg = 50
speed_second_leg = 60
time_first_leg = 3
time_second_leg = 2
distance_first_leg = speed_first_leg * time_first_leg
distance_second_leg = speed_second_leg * time_second_leg
total_distance = distance_first_leg + distance_second_leg
result = total_di... |
A recipe calls for 3/4 cup of sugar, but you only want to make 1/3 of the recipe. How much sugar do you need? | def solve() -> int:
cup_of_sugar = 3/4
fraction_of_recipe = 1/3
needed_sugar = cup_of_sugar * fraction_of_recipe
result = needed_sugar
return result
|
A school organized a fundraising event to support a local charity. The students sold tickets for $5 each and collected donations from the attendees. The total revenue from the event was $3500 and the total number of attendees was 500. How much money did the students collect from donations alone? | def solve() -> int:
ticket_price = 5
revenue = 3500
attendees = 500
ticket_sales = ticket_price * attendees
donations = revenue - ticket_sales
result = donations
return result
|
Every game, a basketball player makes 2 free throws for each basket he scores. Yesterday, he scored 16 baskets. Today, he tips before the game and can't play. How many free throws will he make tomorrow? | def solve() -> int:
scored_baskets = 16
free_throws_per_basket = 2
total_free_throws = scored_baskets * free_throws_per_basket
result = total_free_throws
return result
|
- David scored 15 points in a basketball game. Emma scored twice as many points as David, and Frank scored one third of the sum of David and Emma's points. If they scored the same number of points in the next game, how many points did they score in total in two games? | def solve() -> int:
david = 15
emma = 2 * david
frank = 1 / 3 * (david + emma)
david_2 = 2 * david
emma_2 = 2 * emma
frank_2 = 2 * frank
total = david_2 + emma_2 + frank_2
result = total
return result
|
Jessica has 24 cupcakes and wants to divide them equally among her 8 friends. How many cupcakes will each friend get? | def solve() -> int:
cups_per_friend = 24/8
result = cups_per_friend
return result
|
Ben got a new drone that advertises a flying time of 30 minutes per charge. The drone's battery capacity is 5000 milliampere-hours. He fully charged the drone and was able to fly it for a total of 24 minutes. What was the difference, in minutes per milliampere-hour, between Ben's usage and the advertised usage? | def solve() -> int:
battery_capacity = 5000
advertised_flying_time = 30
actual_flying_time = 24
actual_battery_usage = (actual_flying_time / advertised_flying_time) * battery_capacity
difference = (advertised_flying_time - actual_flying_time) / actual_battery_usage
result = dif... |
Mike and Jessica are planning a wedding reception and have to decide between two venues. The first venue is cheaper and closer to their hometown, while the second venue is more expensive and has a better view. They choose the first option and later find out that the combined cost of both venues is $10,000. How much did... | def solve() -> int:
venue1_cost = 5000
venue2_cost = 10000 - venue1_cost
total_cost = venue1_cost + venue2_cost
result = venue1_cost
return result
|
Mark wants to make a circular fountain in his backyard using bricks. He needs 24 bricks for each layer of the fountain wall and 36 bricks for the base. If he needs 10 times the number of bricks in the base to make the fountain top, how many bricks does he need total? | def solve() -> int:
base_bricks = 36
layer_bricks = 24
top_bricks = 10 * base_bricks
total_bricks = base_bricks + layer_bricks + top_bricks
result = total_bricks
return result
|
Mrs. Grant purchased 48 books for her classroom, and each book cost $7. If she used a coupon that saved her 10% off the total purchase, how much did she pay in total? | def solve() -> int:
books = 48
price_per_book = 7
discount_rate = 0.10
total_books_price = books * price_per_book
discount_price = total_books_price * discount_rate
total_price = total_books_price - discount_price
result = total_price
return result
|
A classroom has 30 students. 1/3 of them are boys, 1/6 of them are girls who wear glasses, and the rest are other girls. How many boys are in the classroom? | def solve() -> int:
total_students = 30
boys_ratio = 1/3
glasses_girls_ratio = 1/6
boys = total_students * boys_ratio
girls = total_students - boys
glasses_girls = girls * glasses_girls_ratio
boys = round(boys)
girls = round(girls - glasses_girls)
result = boys
re... |
John has 30 apples. He gives 1/3 of them to his sister. His sister then gives 1/4 of the apples she received to their mom. How many apples does John have left? | def solve() -> int:
apples = 30
apples -= apples/3
apples_received = apples/4
apples -= apples_received
result = apples
return result
|
A car travels 45 km in 3 hours. How many kilometers will it travel in 7 hours? | def solve() -> int:
speed = 45 / 3
kilometers_in_7_hours = speed * 7
result = kilometers_in_7_hours
return result
|
Student: The areas of two circles are 40 cm² and 49 cm², what is the difference between their circumferences? | def solve() -> int:
radius1 = ((40/3.14)**0.5)
radius2 = ((49/3.14)**0.5)
circumference1 = 2*3.14*radius1
circumference2 = 2*3.14*radius2
difference = circumference2 - circumference1
result = difference
return result
|
Mia had 600 flowers in her garden. She picked 45 flowers for a bouquet, 30 flowers for a wreath, 40 flowers for a vase, 35 flowers for a gift and 50 flowers for a decoration. She also planted 20 new flowers. How many flowers were left in her garden? | def solve() -> int:
flowers = 600
flowers = flowers - 45 - 30 - 40 - 35 - 50 + 20
result = flowers
return result
|
Two boats travel from one city to another. Boat A travels 1,150 kilometers in the first day, and three times the distance covered by boat A in the second day. Boat B travels 500 kilometers in the first day, and 450 kilometers in the second day. What is the total distance both boats have traveled in the two days? | def solve() -> int:
distance_boatA_1stday = 1150
distance_boatB_1stday = 500
distance_boatA_2ndday = 3*distance_boatA_1stday
distance_boatB_2ndday = 450
total_distance = distance_boatA_1stday + distance_boatB_1stday + distance_boatA_2ndday + distance_boatB_2ndday
result = total_distan... |
A company produces 80 units per hour. How long will it take for the company to produce 400 units? | def solve() -> int:
units_per_hour = 80
total_units_needed = 400
hours_to_produce = total_units_needed/units_per_hour
result = hours_to_produce
return result
|
The park has a total of 70 picnic tables. If 45 picnic tables are already occupied and 1/4 of the remaining tables are reserved for a birthday party, how many picnic tables are still available for the public? | def solve() -> int:
total_tables = 70
occupied_tables = 45
remaining_tables = total_tables - occupied_tables
reserved_tables = remaining_tables / 4
available_tables = remaining_tables - reserved_tables
result = available_tables
return result
|
A train leaves the station every 20 minutes. If the train runs for 8 hours, how many times will the train leave the station? | def solve() -> int:
minutes_in_hour = 60
trains_per_hour = 60 / 20
hours = 8
total_trains = trains_per_hour * hours
result = total_trains
return result
|
A hardware store sold 50 power drills for $75.00 each, 75 boxes of nails for $10.00 each, and 30 hammers for $20.00 each. How much money did the hardware store make? | def solve() -> int:
drills_sold = 50
drill_price = 75.00
nails_sold = 75
nail_price = 10.00
hammers_sold = 30
hammer_price = 20.00
drill_total = drills_sold * drill_price
nail_total = nails_sold * nail_price
hammer_total = hammers_sold * hammer_price
total_money = drill... |
Two cars start from the same point and travel in opposite directions. One travels at a speed of 60 mph and the other travels at 40 mph. After how many hours will they be 300 miles apart? | def solve() -> int:
combined_speed = 60 + 40
time = 300/combined_speed
result = time
return result
|
arah drives 60 miles per hour. If she wants to drive 300 miles, how many hours will it take her? | def solve() -> int:
distance = 300
speed = 60
time = distance/speed
result = time
return result
|
Rachel is making a cake for her mom's birthday. She has a total of 18 candles, but she needs to decorate 8 cupcakes with 2 candles each. How many additional candles does Rachel need to complete the cupcakes? | def solve() -> int:
total_candles = 18
no_of_cupcakes = 8
no_of_candles_per_cupcake = 2
candles_needed = no_of_cupcakes * no_of_candles_per_cupcake
additional_candles = candles_needed - total_candles
result = additional_candles
return result
|
The area of a rectangular room is equal to the area of 8 walls it contains. If one wall is 4 meters long and 2.5 meters wide, what is the total area of the room? | def solve() -> int:
wall_length = 4
wall_width = 2.5
wall_area = wall_length * wall_width
room_area = wall_area * 8
result = room_area
return result
|
A store has a discount of 15% on all items. If the original price of an item is $48, what is the discounted price? | def solve() -> int:
original_price = 48
discount_percent = 15
discount_amount = (discount_percent/100) * original_price
discounted_price = original_price - discount_amount
result = discounted_price
return result
|
Jim has 15 apples and 3 oranges. If he wants to equally divide the fruits among 4 groups, how many more apples does each group get compared with oranges? | def solve() -> int:
apples = 15
oranges = 3
total_fruits = 18
num_groups = 4
apples_in_each_group = apples // num_groups
oranges_in_each_group = oranges // num_groups
diff_ap_org = apples_in_each_group - oranges_in_each_group
result = diff_ap_org
return result
|
A school has 200 lockers. The lockers are divided into 5 sections. There are 50 lockers in section 1 and 30 more in section 2 than in section 3. How many lockers are in section 2? | def solve() -> int:
total_lockers = 200
section_1 = 50
section_3 = (total_lockers - section_1) / 4
section_2 = section_3 + 30
result = section_2
return result
|
Billy can run 3 miles per hour. If he runs for 2 and a half hours, how many miles will he run? | def solve() -> int:
hours = 2.5
mph = 3
distance = hours * mph
result = distance
return result
|
If 5 friends evenly split a pizza with 8 slices, how many slices will each person get? | def solve() -> int:
num_friends = 5
slices_in_pizza = 8
slices_per_person = slices_in_pizza / num_friends
result = slices_per_person
return result
|
At a restaurant, the number of pizzas sold is eight times that of burgers. If there are 32 pizzas sold, what is the total number of burgers and pizzas sold in the restaurant? | def solve() -> int:
pizzas_sold = 32
burgers_sold = pizzas_sold / 8
total_sold = pizzas_sold + burgers_sold
result = total_sold
return result
|
The ratio of cats to dogs in a pet store is 2:3. If there are 24 cats, how many dogs are there? | def solve() -> int:
cats_number = 24
dogs_number = cats_number * 3/2
result = dogs_number
return result
|
Lucas's corn stalk is 4 feet taller than his wheat stalk. If the wheat stalk is 2 feet 6 inches tall, how tall is the corn stalk in feet? | def solve() -> int:
wheat_stalk = 2 + 6/12
corn_stalk = wheat_stalk + 4
result = corn_stalk
return result
|
Student: John and Joe each run 1 mile a day for 10 consecutive days for a total of 10 miles each. John's average pace for those 10 miles was 9 minutes per mile while Joe's average pace was 10 minutes per mile. How much longer did it take Joe to run 10 miles than John? | def solve() -> int:
john_pace = 9
joe_pace = 10
miles = 10
john_time = john_pace * miles
joe_time = joe_pace * miles
time_diff = joe_time - john_time
hours = time_diff // 60
minutes = time_diff % 60
result = (hours, minutes)
return result
|
A hotel has 35 rooms. If the occupancy rate is at 80%, how many rooms are occupied? | def solve() -> int:
total_rooms = 35
occupancy_rate = 0.8
occupied_rooms = total_rooms * occupancy_rate
result = occupied_rooms
return result
|
On a farm, there are 30 cows for every 40 pigs. One-fourth of the pigs have curly tails. If there are 48 pigs with curly tails, how many cows are there on the farm? John bikes 10 miles per hour. He bikes for 2 hours on Monday, 45 minutes on Tuesday, 1.5 hours on Wednesday, and 20 minutes on Thursday. If he wants to bik... | def solve() -> int:
cows_per_pigs = 30
curly_pigs = 48
total_pigs = curly_pigs * 4
total_cows = (total_pigs / 40) * cows_per_pigs
result = total_cows
speed = 10 / 60
total_time = 2 * 60 + 45 + 1.5 * 60 + 20
return result
|
If the cost of 2 toy cars is $18.50 and the cost of 5 dolls is $12.60, what is the total cost of 3 toy cars and 7 dolls? | def solve() -> int:
toy_cars = 2*18.50
dolls = 5*12.60
total = 3*18.50+7*12.60
result = total
return result
|
Mark has 41 toys. He has 5 more trains than cars. How many trains does Mark have? | def solve() -> int:
trains = 0
cars = 0
total_toys = 41
cars = total_toys - trains
trains = cars + 5
result = trains
return result
|
Three consecutive integers have a sum of 33. What is the smallest number in the sequence? | def solve() -> int:
x = 0
y = x + 1
z = x + 2
sum = x + y + z
x = (33 - 3) / 3
result = x
return result
|
Mai needs to buy 7 shelves for her bedroom. She bought 3 shelves and each shelf cost $17. How much money did she spend for the shelves? | def solve() -> int:
num_shelves = 3
price_each = 17
total_cost = num_shelves * price_each
result = total_cost
return result
|
``` Olivia got $100 for her birthday. She decided to spend 35% of it on clothes and spend 40% of the remaining money on accessories. If a pair of shoes cost her $50 and a necklace cost her $20, how much money does she have left? | def solve() -> int:
birthday_money = 100
clothes_percentage = 0.35
accessories_percentage = 0.4
shoes = 50
necklace = 20
clothes = birthday_money * clothes_percentage
left_after_clothes = birthday_money - clothes
accessories = left_after_clothes * accessories_percentage
left_after_ac... |
A bakery sold 80 cakes last week. This week, they increased their sales by 25%. How many cakes did they sell this week? | def solve() -> int:
last_week_sales = 80
percent_increase = 25
this_week_sales = last_week_sales + (last_week_sales * (percent_increase/100))
result = this_week_sales
return result
|
Cameron collected 14 coins, of which 7 were gold coins. How many silver coins did he collect? | def solve() -> int:
total_coins = 14
gold_coins = 7
silver_coins = (total_coins - gold_coins)
result = silver_coins
return result
|
James has 120 apples and Lisa has double the amount of apples that James has plus another 5. If Lisa has 57 fewer apples than James, how many apples does Lisa have? | def solve() -> int:
x = 0
y = 0
y = 2 * x + 5
x = y - 57
result = y - 57
return result
|
Mark bought 4 apples and 3 oranges for a total of $2.80. If each orange costs $0.60 more than each apple, how much did each apple cost? | def solve() -> int:
totalcost = 2.8
oranges = 3
costdifference = 0.6
apples = 4
applescost = (totalcost - (costdifference*oranges))/apples
result = applescost
return result
|
A pack of stickers has 15 stickers. Lily has 2 packs and Anna has 3 packs. They decide to trade some stickers with each other. Lily gives Anna 5 stickers and Anna gives Lily 8 stickers. How many stickers does Lily have now? | def solve() -> int:
stickers_in_pack = 15
lily_packs = 2
anna_packs = 3
lily_gives = 5
anna_gives = 8
lily_stickers = stickers_in_pack * lily_packs
anna_stickers = stickers_in_pack * anna_packs
lily_stickers = lily_stickers - lily_gives + anna_gives
anna_stickers = anna_stickers - an... |
Emma and her friends are going out for dinner. The total bill was $125 before tax and the tax rate is 6%. How much will each person have to pay with the tax included? | def solve() -> int:
total_bill = 125
tax_rate = 6
tax_amount = total_bill * (tax_rate / 100)
total_cost = total_bill + tax_amount
num_people = 5
result = total_cost / num_people
return result
|
Some possible questions and python programs are: A recipe for a fruit salad requires 12 apples, 8 bananas, and 16 oranges. If John wants to make 3/4 of the recipe, how many fewer bananas does he need than apples? | def solve() -> int:
total_fruits = 12 + 8 + 16
fraction_fruits = 3/4 * total_fruits
apple_ratio = 12 / total_fruits
banana_ratio = 8 / total_fruits
orange_ratio = 16 / total_fruits
apple_number = apple_ratio * fraction_fruits
banana_number = banana_ratio * fraction_fruits
orange_n... |
Dana and her sister went to a bookstore to buy some books. Dana bought 2 books that were $12.99 each and a magazine that was $4.99. Her sister bought 3 books that were $9.99 each and a bookmark that was $1.99. They also used a coupon that gave them 20% off their total purchase. How much did they pay for the books, maga... | def solve() -> int:
dana_cost = 2 * 12.99 + 4.99
sister_cost = 3 * 9.99 + 1.99
total_cost = dana_cost + sister_cost
discount = total_cost * 0.20
final_paid = total_cost - discount
result = final_paid
return result
|
A fitness center has 500 members. If 40% of the members attend at least one group fitness class per week, and there are 15 group fitness classes offered each week, how many members attend each class on average? | def solve() -> int:
total_attendees = 500 * 0.4
attendees_per_class = total_attendees / 15
result = attendees_per_class
return result
|
A factory produces 400 t-shirts per hour. If they work for 8 hours in a day, how many t-shirts are produced in a day? | def solve() -> int:
tshirts_per_hour = 400
hours_per_day = 8
tshirts_per_day = tshirts_per_hour * hours_per_day
result = tshirts_per_day
return result
|
Possible questions and programs: Ava has 36 stickers, and some of them are duplicates. One fourth of Ava's stickers are duplicates, and Leo has 3 times as many duplicates as Ava. How many duplicate stickers does Leo have? | def solve() -> int:
ava_duplicates = 36 * (1/4)
leo_duplicates = ava_duplicates * 3
result = leo_duplicates
return result
|
Jane spent $30 on 6 packs of chocolates. If each pack contains 8 pieces of chocolate, how much did each piece of chocolate cost? | def solve() -> int:
total_cost = 30
num_packs = 6
num_chocolates = num_packs * 8
cost_per_chocolate = total_cost / num_chocolates
result = cost_per_chocolate
return result
|
A hair salon charges $50 for a service. They only have a few appointments left so they decided to give a 20% discount on every three appointments booked by a customer at any one time. How much will a customer pay for 4 appointments? | def solve() -> int:
price = 50
discount = 0.2
num_appointments = 4
num_discounted_sets = num_appointments // 3
discounted_cost = num_discounted_sets * (2 * price * (1 - discount))
remaining_appointments = num_appointments % 3
remaining_cost = remaining_appointments * price
... |
Two trains left the station at the same time. The first train traveled 50 miles per hour and the second train traveled 60 miles per hour. If they are 480 miles apart, how long did they travel? | def solve() -> int:
speed_train1 = 50
speed_train2 = 60
distance_apart = 480
relative_speed = speed_train1 + speed_train2
time = distance_apart/relative_speed
result = round(time, 2)
return result
|
A company has 165 employees, and 60% of them are male. How many female employees work for this company? | def solve() -> int:
total_employees = 165
male_percent = 60
male_employees = total_employees * male_percent / 100
female_employees = total_employees - male_employees
result = female_employees
return result
|
A pizza parlor charges a flat rate of $10 plus $2 per topping. If Jane ordered a pizza with 4 toppings and paid with a $20 bill, how much change did she receive? | def solve() -> int:
flat_rate = 10
topping_price = 2
toppings = 4
payment = 20
total_cost = flat_rate + (topping_price * toppings)
change = payment - total_cost
result = change
return result
|
A recipe calls for 3/4 cup of brown sugar and 1 1/2 cups of all-purpose flour. If you want to make a double batch, how much of each ingredient will you need in total? | def solve() -> int:
brown_sugar_needed = 0.75
flour_needed = 1.5
batch_size = 2
total_brown_sugar = brown_sugar_needed * batch_size
total_flour = flour_needed * batch_size
result = (total_brown_sugar, total_flour)
return result
|
Emily is packing sandwiches for a picnic. She has three types of sandwich fillings and each filling can make eight sandwiches. If she needs four slices of bread for each sandwich, how many slices of bread does she need in total? | def solve() -> int:
filling_types = 3
sandwiches_per_filling = 8
slices_per_sandwich = 4
total_sandwiches = filling_types * sandwiches_per_filling
total_slices = total_sandwiches * slices_per_sandwich
result = total_slices
return result
|
In a circus show, there are 4 lions and 2 tigers. Each tiger eats nine times as much food as a lion, but each lion eats five times as often as a tiger. If a tiger eats 3 pounds of food six times a day, what would be the collective amount of food all the lions and tigers will eat in a day? | def solve() -> int:
num_lions = 4
num_tigers = 2
tiger_food = 3
tiger_freq = 6
lion_freq = 1/5
lion_food = tiger_food / 9
lion_freq *= tiger_freq
total_food = (num_lions * lion_food * lion_freq) + (num_tigers * tiger_food * tiger_freq)
result = total_food
retu... |
Student: The price of a product has been reduced by 25%. If the original price was $100, what is the new price of the product? | def solve() -> int:
original_price = 100
discount_percentage = 25
discount_amount = original_price * (discount_percentage/100)
new_price = original_price - discount_amount
result = new_price
return result
|
Lisa buys 12 pencils for $0.5 each and 8 erasers for $0.25 each. She gives $10 to the cashier and receives some change. How much change does she receive? | def solve() -> int:
pencil_cost = 12 * 0.5
eraser_cost = 8 * 0.25
total_cost = pencil_cost + eraser_cost
change = 10 - total_cost
result = change
return result
|
Susan wants to plant a herb garden. She wants to have 6 basil plants, 4 chive plants, and 7 mint plants. The basil plants are $2.50 each, the chive plants are $1.75 each, and the mint plants are $4.00 each. How much will it cost to buy all the herbs? | def solve() -> int:
basil_plants = 6
chive_plants = 4
mint_plants = 7
basil_cost = 2.50
chive_cost = 1.75
mint_cost = 4.00
total_cost = (basil_plants * basil_cost) + (chive_plants * chive_cost) + (mint_plants * mint_cost)
result = total_cost
return result
|
You buy 2 packs of gum for $1.50 each and a pack of candy for $0.75. If you give the cashier $5, how much change will you receive? | def solve() -> int:
gum_price = 1.5
num_packs = 2
candy_price = 0.75
total_price = gum_price*num_packs + candy_price
amount_paid = 5
change = amount_paid - total_price
result = change
return result
|
Adam owns a dairy farm. He supplies one store with 2 gallons of milk and another store with 12 gallons of milk each day. How many gallons of milk does he supply these two stores in a week? | def solve() -> int:
store1 = 2
store2 = 12
total_per_day = store1 + store2
total_per_week = total_per_day * 7
result = total_per_week
return result
|
A pizza can be divided into 8 slices. The price of the whole pizza is $24. If a family of 4 buys the pizza and each of them eats 2 slices, how much would each person need to pay? | def solve() -> int:
price_pizza = 24
slices_per_pizza = 8
people = 4
slices_per_person = 2
slices_needed = people * slices_per_person
cost_per_slice = price_pizza / slices_per_pizza
total_cost = cost_per_slice * slices_needed
cost_per_person = total_cost / people
result = c... |
Michael can buy a new phone for $1,000 and have it last for 5 years, or buy two used phones for $400 each that each last 2 years. How much money will he save by picking the cheaper option? | def solve() -> int:
phone_cost = 1000
new_phone_life = 5
used_phone_cost = 400
used_phone_life = 2
new_phone_cost_per_year = phone_cost / new_phone_life
used_phone_cost_per_year = (2 * used_phone_cost) / used_phone_life
money_saved_per_year = new_phone_cost_per_year - used_phone_co... |
Henry put 75 cents each day in his piggy bank for a month whereas his sister placed $1 every day for 22 days in hers. If Maria saves half of Henry's amount per day for 15 days, what is their total savings? | def solve() -> int:
henry_daily_savings = 0.75
henry_monthly_savings = henry_daily_savings * 30
sister_daily_savings = 1
sister_monthly_savings = sister_daily_savings * 22
maria_daily_savings = henry_daily_savings / 2
maria_savings_for_15_days = maria_daily_savings * 15
total_savings = henry... |
A garden area is in the shape of a trapezoid, with a bottom base of 50 feet, a top base of 20 feet, and a height of 30 feet. How many square feet of a garden area will be plowed if a snowplowing service clears a 5-foot-wide perimeter around the garden plot? | def solve() -> int:
bottom_base = 50
top_base = 20
height = 30
perimeter = 5
bottom_base_with_perimeter = bottom_base + 2 * perimeter
top_base_with_perimeter = top_base + 2 * perimeter
height_with_perimeter = height + 2 * perimeter
total_area = 1/2 * (bottom_base_with_perimeter + top_bas... |
A recipe calls for 2 1/2 cups of flour to make 12 cookies. If the recipe is doubled, how many cups of flour will be needed to make 24 cookies? | def solve() -> int:
flour_per_cookie = 2.5/12
cookies = 24
flour_needed = flour_per_cookie*cookies*2
result = flour_needed
return result
|
A phone plan costs $30 per month plus $0.15 for each minute. If Jane talked for 200 minutes last month, how much was her phone bill? | def solve() -> int:
base_cost = 30
minutes = 200
minute_cost = 0.15
total_cost = base_cost + (minute_cost * minutes)
result = total_cost
return result
|
Jack bought 8 apples at $1 each and 5 oranges at $0.50 each. What was the total cost of his purchase? | def solve() -> int:
cost_of_apples = 8*1
cost_of_oranges = 5*0.5
total_cost = cost_of_apples + cost_of_oranges
result = total_cost
return result
|
Eric wants to have 150 balloons for his birthday party. He has already inflated 30 blue balloons and 15 green balloons. Eric wants an equal number of red and yellow balloons for the rest. How many of each should he inflate? | def solve() -> int:
total_balloons = 150
blue_balloons = 30
green_balloons = 15
remaining_balloons = total_balloons - blue_balloons - green_balloons
red_balloons = remaining_balloons / 2
yellow_balloons = remaining_balloons / 2
result = f'{red_balloons} red balloons and {yellow_balloons} yel... |
Grace wants to become a master chef. It takes her 6 months of intense training to learn the basics of cooking. She then spends 35 times longer than it took her to learn the basics to reach proficiency in the kitchen. Finally, she dedicates all of her available time to perfecting her cooking techniques and spends 75 tim... | def solve() -> int:
basics_time = 6
proficiency_time = basics_time * 35
top_chef_time = proficiency_time * 75
total_time = basics_time + proficiency_time + top_chef_time
result = total_time
return result
|
Student: Jessica is buying snacks for a party. She needs to buy 3 bags of chips that cost $2.50 each, 2 packs of soda that cost $3.00 each, and a bag of candy that costs $4.00. If she has a $15.00 budget, how much money will she have left over after buying everything? | def solve() -> int:
bag_of_chips = 2.50
pack_of_soda = 3.00
bag_of_candy = 4.00
budget = 15.00
total_cost = (3 * bag_of_chips) + (2 * pack_of_soda) + bag_of_candy
remaining_budget = budget - total_cost
result = remaining_budget
return result
|
A classroom has 30 desks. Each desk has 4 drawers. If the school wants to replace the broken drawers, how many drawers do they need in total? | def solve() -> int:
num_of_desks = 30
drawers_per_desk = 4
total_drawers = num_of_desks * drawers_per_desk
result = total_drawers
return result
|
In the past week, Sam and his friends donated a total of 48 cans of food to the food bank. Sam donated 2/3 of the cans while Mike donated 1/2 of the cans and Bob donated 1/6 of the cans. How many cans did Mike donate to the food bank? | def solve() -> int:
total_cans = 48
sam_cans = total_cans * (2/3)
mike_cans = total_cans * (1/2)
bob_cans = total_cans * (1/6)
result = mike_cans
return result
|
Jasmine and Kyle are taking a trip. Jasmine drove 160 miles and Kyle drove 120 miles. If they both drove at the same speed, how much longer did Jasmine have to drive than Kyle? | def solve() -> int:
jasmine_distance = 160
kyle_distance = 120
speed = 1
jasmine_time = jasmine_distance / speed
kyle_time = kyle_distance / speed
time_difference = jasmine_time - kyle_time
result = time_difference
return result
|
A supermarket has 5000 apples on Monday. On Wednesday they sold 20% of the apples, and on Friday they sold 10% of the remaining apples from Wednesday. How many apples do they have left? | def solve() -> int:
num_apples_monday = 5000
num_apples_wednesday = int(num_apples_monday * 0.8)
num_apples_friday = int(num_apples_wednesday * 0.9)
num_apples_left = num_apples_monday - num_apples_wednesday - num_apples_friday
result = num_apples_left
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.