question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Gina is planning a road trip from New York City to Miami. The distance between the cities is 1300 miles. If she drives at an average speed of 55mph, how long will the journey take her including a 2-hour coffee break? | def solve() -> int:
distance = 1300
speed = 55
time_travel = distance / speed
coffee_time = 2
total_time = time_travel + coffee_time
result = total_time
return result
|
A car can travel 360 miles with a full tank of gas. If Jane travels 240 miles, how many more miles can she travel before she fills up the gas tank? | def solve() -> int:
max_distance = 360
distance_traveled = 240
remaining_distance = max_distance - distance_traveled
result = remaining_distance
return result
|
A sportscaster can talk about 190 words per minute. If a segment of the show is 5 minutes long, how many words will the sportscaster say during the segment? | def solve() -> int:
words_per_minute = 190
segment_length = 5
total_words = words_per_minute * segment_length
result = total_words
return result
|
Student: A sports team played 32 games in a season and won 22 of them. What percentage of their games did they win? | def solve() -> int:
games_played = 32
games_won = 22
percentage_won = games_won / games_played * 100
result = percentage_won
return result
|
Omar and his friends went to the park and played soccer for 45 minutes. Then they took a 15-minute break and drank some water. After that, they played soccer for another 30 minutes. How long, in minutes, did Omar and his friends spend in the park? | def solve() -> int:
soccer_time = 45 + 30
break_time = 15
park_time = soccer_time + break_time
result = park_time
return result
|
Student: If 8 pencils cost $1.20, how much would 15 pencils cost? | def solve() -> int:
pencils = 8
price = 1.20
target = 15
unit_price = price / pencils
total_price = unit_price * target
result = total_price
return result
|
A recipe calls for 2 cups of flour to make 12 pancakes. How many cups of flour are needed to make 24 pancakes? | def solve() -> int:
pancakes = 24
flour_per_pancake = 2 / 12
flour_needed = flour_per_pancake * pancakes
result = flour_needed
return result
|
A pizza shop sold 200 pizzas last week. If each pizza costs $10, how much money did the pizza shop make in one week? | def solve() -> int:
pizzas_sold = 200
price_per_pizza = 10
total_sales = pizzas_sold * price_per_pizza
result = total_sales
return result
|
A pizza restaurant charges $10 for a small pizza, $15 for a medium pizza and $20 for a large pizza. The restaurant sells 100 small pizzas, 80 medium pizzas and 60 large pizzas per day on weekdays and 20% more pizzas of each size per day on weekends. The restaurant pays $5 for each pizza to the supplier. How much profit... | def solve() -> int:
small_price = 10
medium_price = 15
large_price = 20
small_cost = 5
medium_cost = 5
large_cost = 5
small_sales = 100
medium_sales = 80
large_sales = 60
profit = 0
for day in range(1, 8):
revenue = (small_price * small_sales + medium_price * mediu... |
Tom can mow a lawn in 40 minutes and Jerry can mow the same lawn in 60 minutes. If they both start mowing different parts of the lawn at the same time, what fraction of the lawn will Tom have mowed when Jerry finishes? | def solve() -> int:
fraction = 3/2
result = fraction
return result
|
Jack wants to create a bow tie with red and green fabric in the shape of a butterfly. He needs 9 red pieces for each wing and 15 green pieces for the background. If he needs 3 times the number of fabric pieces in the background to make the polka dots, how many fabric pieces does he need in total? | def solve() -> int:
red_pieces = 9
green_pieces = 15
polka_dots = 3 * green_pieces
total_pieces = 2 * red_pieces + green_pieces + polka_dots
result = total_pieces
return result
|
Student: Linda drove 150 miles using x gallons of gas. If she can drive 5 miles per gallon more for each gallon of gas added, how many gallons of gas does she need to drive next 30 miles? | def solve() -> int:
x = 150
miles_per_gallon = 5
miles_to_drive = 30
gallons_needed = (miles_to_drive + (x * miles_per_gallon)) / miles_per_gallon
result = gallons_needed
return result
|
A rectangle has a length of 10cm and a perimeter of 28cm, what is the width of the rectangle? | def solve() -> int:
length = 10
perimeter = 28
width = (perimeter - 2 * length) / 2
result = width
return result
|
Lucas was able to juggle with three balls continuously for only 10 seconds. After practicing every day for a year, he was able to double this time. If he decides to specialize in juggling with clubs and improves by an additional 30%, how long can he continuously juggle now? | def solve() -> int:
initial_time = 10
practice_time = 365
improvement_percentage = 30
total_practice_time = practice_time * initial_time
doubled_practice_time = total_practice_time * 2
additional_improvement_time = doubled_practice_time * improvement_percentage / 100
fina... |
A rectangle has a length of 15 m and an area of 120 square meters. Calculate the width of the rectangle. | def solve() -> int:
length = 15
area = 120
width = area/length
result = width
return result
|
Jason and Rachel both enjoy collecting seashells and rocks. They have decided to trade for some rocks and seashells. Jason thinks that 1 seashell is worth 6 rocks. A bag of rocks contains 30 rocks. Rachel has 16 bags of rocks and Jason has 25 seashells. If Jason trades all his seashells for rocks, how many bags of rock... | def solve() -> int:
seashells_per_rock = 1/6
rocks_per_bag = 30
rachel_bags = 16
jason_seashells = 25
total_rocks_jason = jason_seashells / seashells_per_rock
total_bags_jason = total_rocks_jason / rocks_per_bag
remaining_bags_rachel = rachel_bags - total_bags_jason
result... |
Ben wants to buy a new skateboard that costs $80. He has $40 in his wallet and he can either save it all up for the skateboard or buy snacks. He buys one snack for $2 every day and earns $10 every weekend by washing cars. How many more days does he need to save for the skateboard if he stops buying snacks right now? | def solve() -> int:
cost = 80
save = 40
earn = 10
spend = 2
days = (cost - save) / (earn / 7 - spend)
days = int(days + 0.5)
result = days
return result
|
If a gym membership costs $50 per month and there is a $100 initiation fee, how much will Jack pay for a membership if he signs up for 1 year? | def solve() -> int:
monthly_cost = 50
initiation_fee = 100
months_in_a_year = 12
total_cost = monthly_cost * months_in_a_year + initiation_fee
result = total_cost
return result
|
A movie theater sells tickets for $8.50 each. If a customer buys 5 tickets, they get a 10% discount. If a customer buys 10 tickets, they get a 20% discount. How much would it cost for a group of 8 people to buy tickets? | def solve() -> int:
ticket_price = 8.5
num_tickets = 8
if num_tickets < 5:
total = ticket_price * num_tickets
elif num_tickets >= 5 and num_tickets < 10:
total = ticket_price * num_tickets * 0.9
else:
total = ticket_price * num_tickets * 0.8
result = total
return result
|
There are 37 students in a classroom, 22 of whom are boys. What percentage of the students are girls? | def solve() -> int:
total_students = 37
boys = 22
girls = total_students - boys
girl_percentage = (girls / total_students) * 100
result = girl_percentage
return result
|
Maya has 8 jars that can hold 20 candies each. She then buys another 3 jars that can hold 30 candies each. How many candies does Maya need to fill all the jars she has? | def solve() -> int:
num_jars1 = 8
capacity1 = 20
num_jars2 = 3
capacity2 = 30
total_capacity = num_jars1*capacity1+num_jars2*capacity2
result = total_capacity
return result
|
A furniture shop sells a sofa for $2,000 with a profit margin of 25%. How much is the cost of producing the sofa? | def solve() -> int:
selling_price = 2000
profit_margin = 0.25
production_cost = selling_price / (1 + profit_margin)
result = production_cost
return result
|
Mike had 7 markers. His friend gave him one-ninth of his 63 markers. How many markers did Mike have after that? | def solve() -> int:
mike_markers = 7
friend_markers = 63
markers_received = friend_markers / 9
mike_markers += markers_received
result = mike_markers
return result
|
Eva picked 20 berries. Lily picked 3 times as many berries as Eva and 8 more than Lauren. If they used all the berries to make syrup, and each bottle of syrup required 5 berries, how many bottles of syrup can they make and how much money would they earn if they sold each bottle for $10? | def solve() -> int:
eva = 20
lily = 3 * eva
lauren = lily - 8
total_beries = eva + lily + lauren
bottles = total_beries // 5
earnings = bottles * 10
result = earnings
return result
|
A shelf has 40 books. 28 of these books are fiction and the rest are non-fiction. What fraction of the books on the shelf are non-fiction? | def solve() -> int:
num_books = 40
num_fiction = 28
num_non_fiction = num_books - num_fiction
fraction_non_fiction = num_non_fiction/num_books
result = fraction_non_fiction
return result
|
A party of eight went for a picnic, but four of them got tired and decided to leave after one and a half hours. How long did the remaining four people stay at the picnic for? | def solve() -> int:
people_at_start = 8
people_leaving = 4
hours_till_leaving = 1.5
total_time_party_stayed = people_at_start - people_leaving + hours_till_leaving
result = total_time_party_stayed
return result
|
Jack has 270 chocolates in a box. If one third of the chocolates are dark chocolate and 15 percent of the remaining chocolates are milk chocolate, how many chocolates are neither dark nor milk chocolate? | def solve() -> int:
prob = 270
dark_percent = 33
milk_percent = 15
dark_chocs = prob * (dark_percent/100)
milk_chocs = prob * ((100-dark_percent)/100)*(milk_percent/100)
result = prob - dark_chocs - milk_chocs
return result
|
Student: There are 16 more boxes of pens than there are boxes of pencils. If there are 24 boxes of pencils, how many boxes of pens are there? | def solve() -> int:
pencils = 24
pens = 0
pens = pencils + 16
result = pens
return result
|
Juan practiced the piano for 18 hours over 9 days. He can play 3 songs per hour. Assuming he plays at a constant rate, how many songs can he play in 12 days? | def solve() -> int:
hours_per_day = 18 / 9
songs_per_hour = 3
days = 12
total_songs = hours_per_day * songs_per_hour * days
result = total_songs
return result
|
Kira bought a pack of 24 pencils for $12. She used 8 pencils for her homework, then sold the rest for $0.75 each. How much money did she make from selling the pencils? | def solve() -> int:
sold = 24 - 8
income = sold * 0.75
profit = income - 12
result = profit
return result
|
Ryan and Lucas combined their cash to get a remote-controlled car worth $50. They also got two sets of batteries for $4 each and shared them evenly. How much did each person spend on batteries? | def solve() -> int:
ryan_cash = 0
lucas_cash = 0
total_cash = 50
ryan_cash = total_cash / 2
lucas_cash = total_cash / 2
battery_cost = 4
batteries_total_cost = battery_cost * 2
ryan_batteries_cost = batteries_total_cost / 2
lucas_batteries_cost = batteries_total_cost /... |
A school has 800 students and 40 teachers. If there is 1 teacher for every 20 students, how many classes are in the school? | def solve() -> int:
total_people = 800 + 40
students_per_teacher = 20
total_teachers = total_people / (students_per_teacher + 1)
total_classes = total_people / (total_teachers + 1)
result = total_classes
return result
|
In a pizza party, ten friends ate a total of 30 slices of pizza. Maria had 4 slices of pepperoni, while John had 6 slices of cheese. Michael had veggie pizza. How many slices of veggie pizza did Michael have? | def solve() -> int:
total_slices = 30
maria_slices = 4
john_slices = 6
veggie_slices = total_slices - maria_slices - john_slices
result = veggie_slices
return result
|
A car travels 150 miles in 2.5 hours. What is the average speed of the car in miles per hour? | def solve() -> int:
distance_traveled = 150
time_traveling = 2.5
average_speed = distance_traveled / time_traveling
result = average_speed
return result
|
Student: There are 12 students in a classroom, each student brings 5 sweets. How many sweets are there in total? | def solve() -> int:
students = 12
sweets_per_student = 5
total_sweets = students * sweets_per_student
result = total_sweets
return result
|
Jack likes to lift weights and can lift 300 pounds in 45 minutes at the gym. However, if he lifts at home, he can only lift 150 pounds in 45 minutes. If he lifts weights at the gym 3 times and at home 5 times in one week, how many pounds did Jack lift if he lifts weights 1 hour a day? | def solve() -> int:
gym_lift = 300/45
home_lift = 150/45
total_lift = (gym_lift * 60 * 3) + (home_lift * 60 * 5)
total_lift *= 7
result = total_lift
return result
|
Student: The perimeter of a square is 20cm. What is the area of the square? | def solve() -> int:
perimeter = 20
side_length = perimeter / 4
area = side_length ** 2
result = area
return result
|
Student: A piece of wood 12 feet 6 inches long is cut into 3 equal pieces. How many inches long is each piece? | def solve() -> int:
length_feet = 12
length_inches = 6
total_length_inches = length_feet * 12 + length_inches
piece_length_inches = total_length_inches / 3
result = piece_length_inches
return result
|
arah buys 5 books for $7 each, 10 books for $12 each, and the rest for $5 each. If she spends a total of $280, how many books did she buy? | def solve() -> int:
total_cost = 280
cost_7 = 35
cost_12 = 120
num_7 = 5
num_12 = 10
remaining_cost = total_cost - cost_7 - cost_12
num_remaining = remaining_cost // 5
num_books = num_7 + num_12 + num_remaining
result = num_books
return result
|
Tina can run at a speed of 5 miles per hour. If Olivia can run twice as fast as Tina, how fast can Olivia run in miles per hour? | def solve() -> int:
speed_tina = 5
speed_olivia = 2*speed_tina
result = speed_olivia
return result
|
Sarah has 8 pencils and 4 pens in her pencil case. She loses 2 pens. What percentage of the items in her pencil case are pencils now? | def solve() -> int:
pencils = 8
pens = 4
pens_lost = 2
total_items = pencils + pens - pens_lost
pencil_percentage = (pencils / total_items) * 100
result = pencil_percentage
return result
|
Possible questions and programs are: A family of four wants to go to the zoo for a day. The admission fee for an adult is $12 and for a child is $8. They also need to pay $5 for parking and $10 for lunch. How much money will they spend in total? | def solve() -> int:
adult_fee = 12
child_fee = 8
parking_fee = 5
lunch_fee = 10
number_of_adults = 2
number_of_children = 2
total_cost = (number_of_adults * adult_fee) + (number_of_children * child_fee) + parking_fee + lunch_fee
result = total_cost
return result
|
Student: Jack worked 35 hours per week earning $25 per hour. He deposits 25% of his earnings in a savings account. In 5 weeks, he deposited $437.50 in his savings account. How much money did Jack spend in 5 weeks? | def solve() -> int:
hours_per_week = 35
hourly_wage = 25
percentage_saved = 0.25
weeks = 5
savings_amount = 437.50
total_earned = hours_per_week * hourly_wage * weeks
spent_amount = total_earned - (savings_amount / weeks) * percentage_saved
result = spent_amount
return result
|
Sophia wants to buy a house that costs 24 months' salary. She earns $120,000 per year in salary and can save $4000 per month. How long will it take her to buy the house? | def solve() -> int:
annual_salary = 120000
monthly_savings = 4000
house_cost = 24 * annual_salary / 12
months_to_buy_house = house_cost / monthly_savings
result = months_to_buy_house
return result
|
Output: 120 Nina wants to buy some cupcakes for her classmates. She found a bakery that sells cupcakes for $2.50 each, but offers a 10% discount if she buys more than 12 cupcakes. She also needs to pay a $5 delivery fee. How much will Nina pay if she buys 15 cupcakes? | def solve() -> int:
cupcakes = 15
price = 2.5
discount = 0.1
delivery = 5
if cupcakes > 12:
subtotal = cupcakes * price * (1 - discount)
else:
subtotal = cupcakes * price
result = subtotal + delivery
result
return result
|
Rebecca wants to make a bracelet that uses 5 glass beads, half as many silver beads as gold beads, and 2 gold beads. How many silver beads will she need? | def solve() -> int:
glass_beads_per_bracelet = 5
gold_beads_per_bracelet = 2
silver_beads_per_gold_bead = 0.5
total_silver_beads = int(gold_beads_per_bracelet * silver_beads_per_gold_bead)
result = total_silver_beads
return result
|
A store is having a sale of 15% off all items. A shirt originally costs $35. How much will the shirt cost with the discount? | def solve() -> int:
shirt_cost = 35
discount_percent = 0.15
discount_amount = shirt_cost * discount_percent
new_shirt_cost = shirt_cost - discount_amount
result = new_shirt_cost
return result
|
If a factory produces 2400 items in 6 hours, how many items will it produce in 24 hours? | def solve() -> int:
items_produced_per_hour = 2400 / 6
items_produced_in_24_hours = items_produced_per_hour * 24
result = items_produced_in_24_hours
return result
|
A rectangle has a width and length in the ratio 2:3. If the perimeter of the rectangle is 40 meters, what is the area of the rectangle in square meters? | def solve() -> int:
perimeter = 40
width_ratio = 2
length_ratio = 3
total_ratio = width_ratio + length_ratio
width = perimeter/(2*total_ratio) * width_ratio
length = perimeter/(2*total_ratio) * length_ratio
area = width * length
result = area
return result
|
Bobby can fold a paper crane in 3 minutes. His friend Sarah can fold one in 4 minutes. How many paper cranes can they fold together in 2 hours? | def solve() -> int:
time_in_minutes = 120
bobby_cranes_per_minute = 1/3
sarah_cranes_per_minute = 1/4
total_cranes_per_minute = bobby_cranes_per_minute + sarah_cranes_per_minute
total_cranes = total_cranes_per_minute * time_in_minutes
result = total_cranes
return result
|
A baker made 600 cookies and sold them for $2 each. He spent $300 on the ingredients and $100 on the packaging. He also paid $0.5 for each cookie as a commission to the store that sold them. What was his profit from selling the cookies? | def solve() -> int:
revenue = 600 * 2
cost = 300 + 100 + 0.5 * 600
result = revenue - cost
return result
|
You want to buy 36 centimeters of string. The store only sells the string in meters. How many meters of string do you need to buy? | def solve() -> int:
amount = 36
centimeters_in_meter = 100
meters = amount / centimeters_in_meter
result = meters
return result
|
A store originally sold a product for $400. This year the store increased the price by 20%. What is the new price of the product? | def solve() -> int:
original_price = 400
increase_percentage = 0.20
new_price = original_price + (original_price * increase_percentage)
result = new_price
return result
|
ve has a subscription to a streaming service that costs $15 per month. If he adds a premium package that costs $8 per month and a family package that costs $5 per month, what will Steve's total monthly cost be? | def solve() -> int:
basic_service_cost = 15
premium_cost = 8
family_cost = 5
total_cost = basic_service_cost + premium_cost + family_cost
result = total_cost
return result
|
Student: A family has to travel 835 miles. If their car gets 20 miles to the gallon, how many gallons are needed for the trip? | def solve() -> int:
miles = 835
mpg = 20
gallons = miles / mpg
result = gallons
return result
|
Lily collected 36 stamps from different countries. She gave 6 stamps to her brother and 9 stamps to her cousin. She then bought 4 more stamps from a shop and received 3 stamps as a gift from her teacher. How many stamps does Lily have now in her collection? | def solve() -> int:
stamps = 36
stamps = stamps - 6 - 9
stamps = stamps + 4 + 3
result = stamps
return result
|
Ella is making bracelets with beads. She has 120 red beads, 80 blue beads, and 40 green beads. She wants to make bracelets with 12 beads each, using the same number of red, blue, and green beads in each bracelet. How many bracelets can she make? | def solve() -> int:
red_beads = 120 // 12
blue_beads = 80 // 12
green_beads = 40 // 12
result = min(red_beads, blue_beads, green_beads)
return result
|
A pizza place sells 25 small pizzas, 15 medium pizzas and 10 large pizzas in a day. If the cost of a small pizza is $8, medium pizza is $12 and a large pizza is $15, what is the total revenue obtained by the pizza place? | def solve() -> int:
revenue = (25*8) + (15*12) + (10*15)
result = revenue
return result
|
Taha has a bookcase that initially had 500 books on the shelf. He bought 750 more books, but then realized the bookcase couldn't fit all the books, so he decided to get rid of 100 books. How many books are now on the bookcase? | def solve() -> int:
initialBooks = 500
addedBooks = 750
removedBooks = 100
result = initialBooks + addedBooks - removedBooks
print (result)
return result
|
al can knit 5 sweaters in 1 week. How many sweaters can he knit in 7 weeks? | def solve() -> int:
rate = 5
weeks = 7
result = rate * weeks
return result
|
7. Ray gave Jill $75 and shared the remainging $105 he had with Dean equally. How much money did Ray have originally? | def solve() -> int:
balance_jill = 75
balance_dean = 105/2
total_balance = balance_jill + balance_dean
result = total_balance
return result
|
Melissa decides to buy some candy. She received $5 from each of her 10 neighbors. If each candy costs $0.50, how many flavors of candy did Melissa buy? | def solve() -> int:
num_neighbors = 10
money_received = 5 * num_neighbors
cost_per_candy = 0.5
num_candies = money_received / cost_per_candy
result = num_candies
return result
|
A movie theater sells tickets for $12 each. If twenty people went to that theater, how much would they spend altogether? | def solve() -> int:
total_cost = 20 * 12
result = total_cost
return result
|
- A pizza has 8 slices. Jack has 3 pizzas. How many slices of pizza does Jack have in total? | def solve() -> int:
pizza_slices = 8
pizza_number = 3
total_slices = pizza_slices * pizza_number
result = total_slices
return result
|
A truck travels 240 miles in 4 hours. If it continues at the same speed, how long will it take to travel 320 miles? | def solve() -> int:
distance = 240
time = 4
speed = distance / time
new_distance = 320
new_time = new_distance / speed
result = new_time
return result
|
Alex has 36 stickers in his collection. He has twice as many stamps as stickers. He loses 3 stickers and buys 6 stamps on Tuesday. On Thursday, he gives away 2 stickers and 3 stamps to his friend, Max. How many stamps and stickers does Alex have left? | def solve() -> int:
stickers = 36
stamps = 2 * stickers
stickers -= 3
stamps += 6
stickers -= 2
stamps -= 3
result = f'{stickers} stickers and {stamps} stamps'
return result
|
A bottle contains 2 liters of water. If a person drinks 250 milliliters of water in a day, how many days will the bottle last? | def solve() -> int:
water_in_bottle = 2
water_to_drink_per_day = 0.25
number_of_days = water_in_bottle / water_to_drink_per_day
result = number_of_days
return result
|
A shipping container has a volume of 200 cubic meters. If the height of the container is 8 meters and the width is 5 meters, what is the length of the container in meters? | def solve() -> int:
container_volume = 200
container_height = 8
container_width = 5
container_length = container_volume/(container_height*container_width)
result = container_length
return result
|
Student: Eve buys a necklace. She then buys a bracelet that is 6 times the price of the necklace. Then, she buys a ring that is 5 times the price of the bracelet. If Eve paid $1020 for all these items, what is the price of the ring? | def solve() -> int:
necklace_price = 1020 / (6 * 5 + 1)
bracelet_price = necklace_price * 6
ring_price = bracelet_price * 5
total_price = necklace_price + bracelet_price + ring_price
result = total_price - necklace_price - bracelet_price
return result
|
A teacher wants to distribute pencils and erasers to students. If each student gets 3 pencils and 2 erasers, and there are 25 students in the class, how many pencils and erasers does the teacher need to buy in total? | def solve() -> int:
num_students = 25
num_pencils_per_student = 3
num_erasers_per_student = 2
total_pencils = num_students * num_pencils_per_student
total_erasers = num_students * num_erasers_per_student
result = total_pencils + total_erasers
return result
|
``` If John has 18 cookies and he wants to split them evenly among 4 of his friends, how many cookies will each person get? | def solve() -> int:
num_cookies = 18
num_friends = 4
cookies_per_person = num_cookies // num_friends
result = f'Each person will get {cookies_per_person} cookies.'
result = cookies_per_person
return result
|
A family has 3 televisions, 4 gaming consoles, and 2 streaming devices. If they want to make a different entertainment setup for the living room every day for 3 weeks (21 days), how many more streaming devices do they need to buy? | def solve() -> int:
days = 21
total_tvs = 3
total_consoles = 4
total_streaming_devices = 2
setup_combinations = days * total_tvs * total_consoles
possible_setups = setup_combinations / total_streaming_devices
streaming_devices_to_buy = possible_setups - total_streaming_devices
result = r... |
Student: A toy is sold for $22 with a 35% discount. What is the original price of the toy? | def solve() -> int:
original_price = 0
discount = 0.35
sale_price = 22
original_price = sale_price / (1 - discount)
result = original_price
return result
|
Rachel draws a picture every 9th day. She spends 15 minutes drawing one picture. She draws a total of 10 pictures every time. How many pictures does she draw in a month? | def solve() -> int:
days_in_month = 30
pictures_per_day = 1/9
time_per_picture = 15
pictures_per_time = 10
total_pictures = days_in_month * pictures_per_day * pictures_per_time
total_time = total_pictures * time_per_picture
result = total_pictures
return result
|
Sophia is trying to save for a down payment on a house. After this year, she will have saved 3 times the amount she had saved up at the end of last year which was $5,000. How much money will she have saved up by the end of this year? | def solve() -> int:
last_year_savings = 5000
this_year_savings = 3 * last_year_savings
result = this_year_savings
return result
|
Possible questions and programs are: Erica is hired to pack 462 books from the warehouse to the bookstore. The bookstore will pay the packing company a $200 fee, plus $2 for every book that is packed neatly. Erica must pay the bookstore $5 each for any books that are damaged or missing. If 9 books are damaged, 11 books... | def solve() -> int:
books = 462
fee = 200
neat = 2
damage = 5
damaged_books = 9
missing_books = 11
neat_books = books - damaged_books - missing_books
payment = fee + neat * neat_books - damage * (damaged_books + missing_books)
result = payment
return result
|
Lisa is painting a mural on a rectangular wall. The wall is 15 feet long and 10 feet high. She has three cans of paint, each containing 0.8 gallons of paint. One gallon of paint can cover 400 square feet of wall. How many square feet of the wall can Lisa paint with the paint she has? | def solve() -> int:
wall_area = 15 * 10
paint_amount = 3 * 0.8
paint_coverage = 400
result = paint_amount * paint_coverage
return result
|
A company has 120 employees. If each employee earns $30 per hour, how much does the company pay in total for 8 hours a day and 5 days a week? | def solve() -> int:
employees = 120
hourly_rate = 30
hours_per_day = 8
days_per_week = 5
total_hours = employees * hours_per_day * days_per_week
total_cost = total_hours * hourly_rate
result = total_cost
return result
|
Jessica has 36 stickers. She wants to put them on her notebooks, with an equal number on each notebook. If she has 3 notebooks, how many stickers will each notebook have? | def solve() -> int:
stickers = 36
notebooks = 3
result = stickers // notebooks
return result
|
A theme park has 15 rides, each ride can hold 24 passengers at a time. If the park is open for 10 hours, how many visitors can ride the rides in one day? | def solve() -> int:
rides = 15
passengers_per_ride = 24
hours_open = 10
visitors_per_day = rides * passengers_per_ride * hours_open
result = visitors_per_day
return result
|
Jessica runs 5 miles in 45 minutes. If she continues at this pace, how many miles will she run in 1 hour? | def solve() -> int:
miles = 5
time = 45
hour = 60
miles_per_hour = miles / time * hour
result = miles_per_hour
return result
|
Lily buys some items for $230 from the store. She has an item with slight damage for which she gets a 10% discount. She also gets a coupon for an additional 8% discount. What is the final price that she pays? | def solve() -> int:
price = 230
damage_discount = 0.10
coupon_discount = 0.08
discounted_price = price - (price * damage_discount)
final_price = discounted_price - (discounted_price * coupon_discount)
result = final_price
return result
|
Sam has a rectangular garden that is 12 meters long and 8 meters wide. He wants to fence the garden with a wire that costs $5 per meter. How much will he spend on the wire? | def solve() -> int:
perimeter = 12 + 8 + 12 + 8
cost = perimeter * 5
result = cost
return result
|
A pizza costs $12.50 and a burger costs $8.25. Calculate the total cost of 3 pizzas and 5 burgers. | def solve() -> int:
pizza_cost = 12.50
burger_cost = 8.25
number_of_pizzas = 3
number_of_burgers = 5
total_cost = (pizza_cost * number_of_pizzas) + (burger_cost * number_of_burgers)
result = total_cost
return result
|
A bakery makes two types of cakes: chocolate and vanilla. A chocolate cake requires 200 grams of flour, 100 grams of sugar, and 50 grams of cocoa powder. A vanilla cake requires 250 grams of flour, 150 grams of sugar, and 10 grams of vanilla extract. If the bakery has 10 kilograms of flour, 6 kilograms of sugar, 1 kilo... | def solve() -> int:
chocolate_flour = 200
chocolate_sugar = 100
chocolate_cocoa = 50
vanilla_flour = 250
vanilla_sugar = 150
vanilla_vanilla = 10
flour = 10000
sugar = 6000
cocoa = 1000
vanilla = 100
chocolate_flour_limit = flour // chocolate_flour
chocolate_sugar_li... |
A grocery store has 100 watermelon slices for sale. If 60% of the slices are sold, how many slices are left in the store? | def solve() -> int:
total_slices = 100
sold_slices = total_slices * 0.6
remaining_slices = total_slices - sold_slices
result = remaining_slices
return result
|
A recipe to make brownies requires 2 cups of sugar to make 16 servings. How many servings can you make with 1.5 cups of sugar? | def solve() -> int:
sugar_cups = 2
total_servings = 16
used_sugar_cups = 1.5
servings = (used_sugar_cups/ sugar_cups) * total_servings
result = servings
return result
|
Jack spent 90 minutes practicing guitar, while Ava practiced for 1.5 hours and Max studied for 120 minutes. How many minutes longer did Ava practice than Max and Jack combined? | def solve() -> int:
jack_practice = 90
ava_practice = 1.5 * 60
max_study = 120
total_practice = jack_practice + ava_practice + max_study
ava_extra_practice = ava_practice - total_practice
result = ava_extra_practice
return result
|
Jake is buying a new TV for his bedroom. The TV cost $550 and shipping cost $25. How much money did Jake spend in total to buy the TV? | def solve() -> int:
tv_cost = 550
shipping_cost = 25
total_cost = tv_cost + shipping_cost
result = total_cost
return result
|
Jake is in a 3-legged race. The first portion of the race involves running 100 meters in 18 seconds. The second portion of the race involves crawling 50 meters in 32 seconds. How long did it take Jake and his partner to complete the race? | def solve() -> int:
time_1 = 18
time_2 = 32
total_time = time_1 + time_2
result = total_time
return result
|
A rectangular field has a length of 30 meters and a width of 20 meters. Suppose one bag of fertilizer can cover 10 square meters. How many bags of fertilizer are needed to cover the entire field? | def solve() -> int:
length = 30
width = 20
area = length * width
bags_of_fertilizer = area / 10
result = bags_of_fertilizer
return result
|
Bella won $90.00 in a raffle and used it to buy chocolates. She sold the chocolates at a 25% profit and saved half of her profit. How much did she put into her savings? | def solve() -> int:
raffle_winnings = 90.00
profit_percentage = 25
profit = raffle_winnings * (profit_percentage / 100)
savings = profit / 2
result = savings
return result
|
Student: 3. Laurence had $2500 and bought a sofa that cost $900. He had $1600 left and he spent half of that money on a storage unit. How much money did he have left? | def solve() -> int:
laurence_money = 2500
sofa_cost = 900
storage_unit_cost = 1600 / 2
remaining_money = laurence_money - sofa_cost
final_money = remaining_money - storage_unit_cost
result = final_money
return result
|
A recipe for cookies requires 2.5 cups of flour to make 36 cookies. If you want to make 48 cookies, how much flour do you need? | def solve() -> int:
cookies_required = 48
flour_required_per_cookie = 2.5 / 36
flour_required = flour_required_per_cookie * cookies_required
result = flour_required
return result
|
Brian borrowed 10,000 dollars from his friend at an interest rate of 5% per year. He agreed to pay back the loan in 4 equal installments at the end of each year. How much did he pay back in total and how much interest did he pay? | def solve() -> int:
P = 10000
r = 0.05
n = 1
t = 4
A = P * (1 + r / n) ** (n * t) / n
total_amount = A * 4
total_interest = total_amount - P
result = (total_amount, total_interest)
return result
|
A gym has 100 members who pay $50 per month. If the gym wants to make $75,000 in a year, how much more should they charge its members per month? | def solve() -> int:
members = 100
monthly_payment = 50
annual_target = 75000
total_revenue = members * monthly_payment * 12
additional_revenue_needed = annual_target - total_revenue
additional_payment_per_month = additional_revenue_needed / 12
result = additional_payment_per_m... |
Possible new questions and python programs are: A pair of socks costs $2, while a pair of gloves is 50% more expensive. Emma bought three pairs of socks and two pairs of gloves. How much did she pay for her purchases? | def solve() -> int:
socks_cost = 2
gloves_cost = socks_cost * 1.5
socks_total = socks_cost * 3
gloves_total = gloves_cost * 2
total_cost = socks_total + gloves_total
result = total_cost
return result
|
John has a mystery book library. He wants to divide his books into two groups: one group with books published before the year 2000 and one group with books published in the year 2000 or later. Out of his 186 books, 54 were published before 2000. What percentage of his books were published in the year 2000 or later? | def solve() -> int:
num_books_published_before_2000 = 54
num_books_published_after_2000 = 186 - num_books_published_before_2000
total_books = num_books_published_before_2000 + num_books_published_after_2000
percentage_published_after_2000 = (num_books_published_after_2000/total_books)*100
result = p... |
A store sells pencils in packs of 12 and notebooks in packs of 3. If a customer buys 5 packs of pencils and 4 packs of notebooks, how many items did they buy in total? | def solve() -> int:
pencils_per_pack = 12
notebooks_per_pack = 3
packs_of_pencils = 5
packs_of_notebooks = 4
total_pencils = pencils_per_pack * packs_of_pencils
total_notebooks = notebooks_per_pack * packs_of_notebooks
total_items = total_pencils + total_notebooks
result = total_items
... |
Student: A flowerbed has a length of 10 meters and a width of 5 meters. What is the area of the flowerbed? | def solve() -> int:
length = 10
width = 5
area = length * width
result = area
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.