question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Student: If 4 printers in an office print 16 pages each minute, how many minutes would it take for 12 printers to print 240 pages? | def solve() -> int:
num_printers = 12
num_pages = 240
pages_per_minute = 16
total_pages_per_minute = num_printers * pages_per_minute
num_minutes = num_pages / total_pages_per_minute
result = num_minutes
return result
|
Ben has 18 marbles in his bag. He lost some marbles when he played with his friends. After he played, he had 12 marbles left. He then found 3 marbles on the ground and put them in his bag. How many marbles did Ben lose when he played with his friends? | def solve() -> int:
marbles_before = 18
marbles_after = 12
marbles_lost = marbles_before - marbles_after
marbles_found = 3
marbles_now = marbles_after + marbles_found
result = marbles_lost
return result
|
A car is traveling at a speed of 60 km/h. If the car travels for 3 hours, how far has it traveled? | def solve() -> int:
speed = 60
time = 3
distance = speed * time
result = distance
return result
|
If Sally, the guinea pig, hops 3 meters per minute when the temperature averages 65 degrees F, but hops twice as far per minute when the temperature averages 75 degrees F, how many meters will she hop over 25 minutes if the temperature averages 65 degrees F for 80% of the time, and 75 degrees F for the rest of the time... | def solve() -> int:
mH65 = 3 * 25 * 0.8
mH75 = 6 * 25 * 0.2
total_mh = mH65 + mH75
result = total_mh
return result
|
Bob is going on a trip that requires him to drive 256 miles. If his car gets 25 miles per gallon and gas costs $3.50 per gallon, how much will it cost him to fill up his tank for the trip? | def solve() -> int:
gallons_of_gas = 256/25
cost_of_gas = gallons_of_gas*3.50
result = f'{cost_of_gas}'
result = cost_of_gas
return result
|
Jack pays $15 for a monthly Spotify premium subscription. A different music provider charges $0.10 per song played. If Jack listens to 200 songs per month, how much would he save by switching to the alternative music provider? | def solve() -> int:
subscription_cost = 15
songs_per_month = 200
cost_per_song = 0.10
total_cost_spotify = subscription_cost
total_cost_alternative = songs_per_month * cost_per_song
savings = total_cost_spotify - total_cost_alternative
result = savings
return result
|
A triangle has a base of 6 inches and a height of 8 inches. What is the area of the triangle? | def solve() -> int:
base = 6
height = 8
area = 0.5*base*height
result = area
return result
|
If one machine can produce one hundred boxes per hour, how many machines would it take to produce 1,500 boxes in five hours? | def solve() -> int:
boxes_per_hour = 100
hours = 5
total_boxes = 1500
boxes_per_machine_per_hour = boxes_per_hour
boxes_produced = boxes_per_machine_per_hour * hours
machines_needed = total_boxes / boxes_produced
result = machines_needed
return result
|
If a bag contains 8 green marbles and 6 blue marbles, what is the probability of picking a green marble on the first try? | def solve() -> int:
total_marbles = 8 + 6
probability_of_green = 8/total_marbles
result = probability_of_green
return result
|
Charlie correctly answered 6 fewer questions than Trevor. If Trevor got 24 correct, how many questions did Charlie get correct? | def solve() -> int:
charlie_num = 0
trevor_num = 24
fewer = 6
charlie_num = trevor_num - fewer
result = charlie_num
return result
|
A school has 1000 students. If 60% of them play sports, how many students play sports? | def solve() -> int:
total_students = 1000
percent_sports = 0.6
num_sports_students = percent_sports * total_students
result = num_sports_students
return result
|
Student: Ana walks 7 miles in 2 hours. At this rate, how far can she walk in 8 hours? | def solve() -> int:
miles = 7
hours = 2
target_hours = 8
rate = miles / hours
distance = rate * target_hours
result = distance
return result
|
A florist had 40 roses, 35 daisies, and 25 tulips. She sold 20 roses, 30 daisies, and 15 tulips. How many flowers does she have left? | def solve() -> int:
roses = 40
daisies = 35
tulips = 25
roses = roses - 20
daisies = daisies - 30
tulips = tulips - 15
result = roses + daisies + tulips
return result
|
John is twice as old as Sara. In three years, he will be three times as old. How old is John? | def solve() -> int:
difference_of_ages = 2 - 1
age_difference = 3
john_age = (age_difference * difference_of_ages) + 2
result = john_age
return result
|
Student: Sam and Rico are collecting money for their youngest brother's school supplies. Sam contributed $18 and Rico contributed 25 coins. If each coin is worth $0.20, how much have they together saved for their brother's school supplies? | def solve() -> int:
sam_contribution = 18
rico_contribution = 25
coin_value = 0.20
total_contribution = sam_contribution + (rico_contribution * coin_value)
result = total_contribution
return result
|
On Monday, Alice walked 4 km and on Tuesday she walked 8 km. She decreased her distance walked by 75% on Wednesday. How many km did Alice walk on Wednesday? | def solve() -> int:
monday = 0
tuesday = 0
wednesday = 0
monday = 4
tuesday = 8
wednesday = ((monday + tuesday) / 100) * 25
result = wednesday
return result
|
A certain park has 400 trees, and the park aspires to plant atleast fifteen additional trees per two-month season. How many two-month seasons would it take for the park to reach 1000 trees? | def solve() -> int:
current_trees = 400
target_trees = 1000
trees_per_season = 15
result = (target_trees - current_trees)/trees_per_season
return result
|
Kevin is renting a car for a road trip. The rental company charges $60/day or $350/week. If Kevin needs the car for 10 days, how much money does he save by choosing the weekly rate? | def solve() -> int:
daily_rate = 60
weekly_rate = 350
days_needed = 10
daily_cost = daily_rate * days_needed
weeks_needed = days_needed // 7
remaining_days = days_needed % 7
weekly_cost = weekly_rate * weeks_needed + daily_rate * remaining_days
amount_saved = daily_cost - ... |
Manolo was able to make 24 face-masks in two hours. How long did he work in that shift? | def solve() -> int:
def time_calculator(masks):
hour_one = 60/4
rest_hour = masks-hour_one
result = rest_hour*6/60+1
return result
total_time = time_calculator(24)
result = total_time
return result
|
Sophia has 20 stickers. She wants to give some stickers to her friends. She gives 3 stickers to each of her 4 friends. How many stickers does she have left? | def solve() -> int:
stickers = 20
friends = 4
stickers_per_friend = 3
stickers_given = friends * stickers_per_friend
stickers_left = stickers - stickers_given
result = stickers_left
return result
|
Alex is trying to find the most efficient way to pack for a trip. In the first packing method, he spends 10 minutes packing his clothes, packs his toiletries for twice this amount of time, and then packs his electronics for a third of the time it took to pack hisAmy is learning to play the piano. She practices for 4 da... | def solve() -> int:
clothes_packing_time = 10
toiletries_packing_time = clothes_packing_time * 2
electronics_packing_time = clothes_packing_time / 3
total_packing_time = clothes_packing_time + toiletries_packing_time + electronics_packing_time
days_per_week = 7
weeks_to_start_complex_c... |
A tank has a capacity of 1000 liters. If the water level in the tank is 80% full, how many liters of water are in the tank? | def solve() -> int:
capacity = 1000
fill_level = 0.8
water_level = capacity * fill_level
result = water_level
return result
|
For every 4 apples purchased, a customer gets 3 oranges free. If a customer purchased 24 apples, how many oranges did they get for free? | def solve() -> int:
apples = 4
oranges = 3
num_apples = 24
num_oranges = (num_apples // apples) * oranges
result = num_oranges
return result
|
A pizza has a radius of 20 cm and is cut into 8 equal slices. Each slice is sold for $2.5. If a pizza shop makes 15 pizzas and sells all the slices, how much money does it make? | def solve() -> int:
slices = 8
total_slices = slices * 15
revenue = total_slices * 2.5
result = revenue
return result
|
In nine years, Mr. Jackson will be thrice as old as his son Daniel is now. If Daniel is 14, what is 13 years less than their average age? | def solve() -> int:
daniel_age = 14
mr_jackson_age = (3 * daniel_age) - 9
average_age = (daniel_age + mr_jackson_age) / 2
result = average_age - 13
return result
|
Kate's car is traveling at 60 miles per hour, and she has to travel a total distance of 120 miles. How many minutes will it take Kate to reach her destination? | def solve() -> int:
speed = 60
distance = 120
time_hours = distance / speed
time_minutes = time_hours * 60
result = time_minutes
return result
|
A recipe requires 1/2 teaspoon of vanilla extract to serve 6 people. If the recipe is doubled to serve 12 people, how many teaspoons of vanilla extract are needed in total? | def solve() -> int:
vanilla_extract_per_person = 1/2 / 6
num_people = 12
total_vanilla_extract = vanilla_extract_per_person * num_people
result = total_vanilla_extract
return result
|
Jane collected some stickers. Sarah collected 7 more stickers than Jane. Grace collected 10 more stickers than Sarah. If Grace collected 40 stickers, how many did Jane collect? | def solve() -> int:
jane_stickers = 40 - 7 - 10
result = jane_stickers
return result
|
In a park, 40% of the total area is occupied by trees. If the occupied area reduced to 1/3, how much area in percentage was freed from the trees? | def solve() -> int:
total = 100
occupied = total * (40/100)
freed = total * (1/3)
result = (occupied - freed) / total * 100
return result
|
If a bag of candy costs $4.50 and there are 25 pieces of candy in the bag, how much does each piece of candy cost? | def solve() -> int:
cost = 4.5
candies = 25
cost_per_candy = cost / candies
result = cost_per_candy
return result
|
Student: A movie ticket costs $12.00 on weekdays and $15.00 on weekends. A coupon gives you a 20% discount on any ticket. How much do you pay for three weekday tickets and two weekend tickets with the coupon? | def solve() -> int:
weekday_ticket_price = 12.00
weekend_ticket_price = 15.00
discount = 0.20
weekday_tickets = 3
weekend_tickets = 2
weekday_total = weekday_tickets * weekday_ticket_price
weekend_total = weekend_tickets * weekend_ticket_price
total_before_discount = weekday_total + week... |
Rachel has 90 minutes to complete a math quiz. She has answered 20 out of 50 questions and has used 30 minutes. If she maintains her current speed, how many minutes will she have left to complete the quiz? | def solve() -> int:
total_questions = 50
answered_questions = 20
time_used = 30
time_per_question = time_used / answered_questions
remaining_questions = total_questions - answered_questions
remaining_time = (remaining_questions * time_per_question) + 30
result = 90 - remaining_time
retur... |
The candy store sells chocolates for $2 per bar and gummies for $1 per bag. If they made $30 in sales and sold 5 bags of gummies, how many chocolate bars did they sell? | def solve() -> int:
choco_price = 2
gum_price = 1
gum_bags = 5
total_sales = 30
gum_sales = gum_price * gum_bags
choco_sales = total_sales - gum_sales
choco_bars = choco_sales / choco_price
result = choco_bars
return result
|
Alex has 150 sheets of paper. He uses 7 sheets per day. Each day he gives 6 sheets to his sister. How many days will Alex's paper last? | def solve() -> int:
sheets = 150
use_per_day = 7
give_per_day = 6
days = sheets // (use_per_day + give_per_day)
result = days
return result
|
The speed limit on a highway is 55 miles per hour. If you drive at 70 miles per hour, how much over the speed limit are you driving? | def solve() -> int:
speed_limit = 55
your_speed = 70
over_speed_limit = your_speed - speed_limit
result = over_speed_limit
return result
|
If 8 people share the cost of a pizza that costs 32 dollars, how much does each person need to pay? | def solve() -> int:
num_people = 8
cost_of_pizza = 32
cost_per_person = cost_of_pizza / num_people
result = cost_per_person
return result
|
A candy jar has 5 red candies, 8 blue candies and 3 yellow candies. What is the probability of selecting a blue candy if one is selected at random? | def solve() -> int:
total_candies = 5 + 8 + 3
probability_of_blue_candy = 8 / total_candies
result = f'<<<{probability_of_blue_candy}>>>'
result = probability_of_blue_candy
return result
|
Paul has 4/7 of the total number of pens that Michael has. If they have 28 pens together, how many pens does Paul have? | def solve() -> int:
total_pens = 28
Michaels_pens = 28 * 7/4
Pauls_pens = total_pens - Michaels_pens
result = Pauls_pens
return result
|
Tom spent $80 on groceries last week, but this week he only spent half the amount. If Tom wants to buy twice as many groceries as last week, and each item on his list costs $5 on average, how many items will Tom be able to buy this week? | def solve() -> int:
last_week_spending = 80
this_week_spending = last_week_spending / 2
this_week_desired_spending = last_week_spending * 2
items_can_buy = this_week_desired_spending / 5
result = items_can_buy
return result
|
A city has 120,000 inhabitants with 30% of them being over the age of 50. If 20% of the inhabitants are employed in the healthcare sector, how many inhabitants work in healthcare? | def solve() -> int:
population = 120000
over_50_percentage = 0.3
healthcare_employment_percentage = 0.2
over_50 = population * over_50_percentage
healthcare_employment = population * healthcare_employment_percentage
result = healthcare_employment
return result
|
A family travels 260 miles in 5 hours. If they travel at a constant speed, how far can they travel in 8 hours? | def solve() -> int:
speed = 260/5
time = 8
distance = speed * time
result = distance
return result
|
**** A farmer is planting a vegetable garden. He needs a total of 2 feet of fencing to completely enclose the whole garden. If he buys fencing that is 12 feet long, how many pieces of fencing will he need? | def solve() -> int:
total_fencing = 2
length = 12
num_fencing = total_fencing / length
result = num_fencing
return result
|
Sarah wants to distribute her weekly allowance in the ratio of 2:5 for personal expenses and charity, respectively. If she receives $60 every week, what amount of money is she going to spend on personal expenses? | def solve() -> int:
weekly_allowance = 60
personal_expenses_ratio = 2
charity_ratio = 5
total_ratio = personal_expenses_ratio + charity_ratio
personal_expenses_amount = (personal_expenses_ratio / total_ratio) * weekly_allowance
result = personal_expenses_amount
return res... |
A pouch contains 16 tubes each with 9 packets of cookies. If a dozen pouches cost $504, how much would a packet of cookies cost? | def solve() -> int:
numTubesPerPouch = 16
numPacketsPerTube = 9
numPouches = 12
pouchCost = 504
packetCost = pouchCost / (numPouches * numTubesPerPouch / numPacketsPerTube)
result = packetCost
return result
|
A hotel charges $80 per room per night, and gives a 15% discount for more than 3 nights. What is the cost for 5 nights? | def solve() -> int:
cost_per_night = 80
discount = 0.15
total_nights = 5
if total_nights > 3:
cost = (cost_per_night*total_nights) - (cost_per_night*total_nights*discount)
else:
cost = cost_per_night*total_nights
result = cost
return result
|
6. Kyle had 16 sandwiches and gave away 5. After that he ate half of the remaining sandwiches. How many sandwiches are left for him? | def solve() -> int:
total_sandwiches = 16
sandwiches_given_away = 5
remaining_sandwiches = total_sandwiches - sandwiches_given_away
sandwiches_ate = remaining_sandwiches / 2
result = remaining_sandwiches - sandwiches_ate
return result
|
A rectangular garden measures 6 meters by 4 meters. What is the perimeter of the garden? | def solve() -> int:
length = 6
width = 4
perimeter = 2*(length+width)
result = perimeter
return result
|
Mason completes high school in 2 years instead of 3. It takes Mason 9 times more time to earn his bachelor's and Ph.D. degrees than the time he spent in high school. What's the total time it took for Mason to complete high school, college, and Ph.D. programs? | def solve() -> int:
high_school_time = 2
college_time = high_school_time * 9
phd_time = college_time * 9
total_time = high_school_time + college_time + phd_time
result = total_time
return result
|
Two siblings, David and Christian, bought a laptop, printer, and two ink cartridges. The laptop cost $1000, the printer cost $200, and each ink cartridge cost $50. David agreed to pay for the printer and one ink cartridge, while Christian agreed to pay for the laptop and one ink cartridge. Christian then decided to pay... | def solve() -> int:
laptop = 1000
printer = 200
ink_cartridge = 50
total = laptop + printer + (2 * ink_cartridge)
David = printer + ink_cartridge + (2/5 * printer)
Christian = laptop + ink_cartridge + (3/5 * printer)
result = Christian - David
return result
|
Kevin has 12 apples and 8 oranges in his basket. He gives away 3 apples and 2 oranges to his friends. He then sells the remaining fruits at a rate of 50 cents per apple and 40 cents per orange. How much money does he make? | def solve() -> int:
apple_price = 50
orange_price = 40
apples_left = 12 - 3
oranges_left = 8 - 2
revenue = apple_price * apples_left + orange_price * oranges_left
revenue_in_dollars = revenue / 100
result = revenue_in_dollars
return result
|
If each box of apples contains 36 apples and there are 20 boxes, how many total apples are there? | def solve() -> int:
numBoxes = 20
applesPerBox = 36
totalApples = numBoxes * applesPerBox
result = totalApples
return result
|
-Have the correct indent for the python code. Possible questions and programs are: There are 12 children at a birthday party with an average age of 7 years and 3 adults with an average age of 35 years. What is the average age of all 15 people at the party? | def solve() -> int:
result = 189 / 15
return result
|
There are 50 candies in a bag. Maria eats 20% of the candies and her friend eats 30% of the candies. How many candies are left in the bag? | def solve() -> int:
total_candies = 50
maria_eats = 0.2 * total_candies
friend_eats = 0.3 * total_candies
remaining_candies = total_candies - maria_eats - friend_eats
result = remaining_candies
return result
|
If there are 30 students in a class, and each student has 2 pencils, how many pencils are in the classroom? | def solve() -> int:
total_pencils = 30 * 2
result = total_pencils
return result
|
Andrea has 4 times as many marbles as Laura. If Laura has 36 marbles, how many marbles do they have combined? | def solve() -> int:
laura_marbles = 36
andrea_marbles = 4 * laura_marbles
total_marbles = laura_marbles + andrea_marbles
result = total_marbles
return result
|
Possible questions and programs are: Lisa wants to make 5 skirts for her friends. Each skirt requires 3.75 feet of fabric. She has 10 yards of fabric in her closet. How many feet of fabric does she have left after making the skirts? | def solve() -> int:
yards_to_feet = 10 * 3
fabric_needed = 5 * 3.75
fabric_left = yards_to_feet - fabric_needed
result = fabric_left
return result
|
The decapod has ten legs. In a colony of decapods, there are a total of 80 legs and heads. How many decapods are in the colony? | def solve() -> int:
legs_per_decapod = 10
total_legs_and_heads = 80
total_legs = total_legs_and_heads
total_heads = total_legs_and_heads
num_decapods = total_legs // legs_per_decapod
result = num_decapods
return result
|
If a car travels 8 miles in 5 minutes, what is the car's speed in miles per hour? | def solve() -> int:
miles = 8
minutes = 5
time_in_hours = minutes / 60
result6 = miles / time_in_hours
result = result6
return result
|
A company has a total expenditure of $120000 and revenue of $400000. What is the minimum amount of profit they need to make to have a profit percentage of at least 25%? | def solve() -> int:
desired_percent_profit = 0.25
total_expenditure = 120000
revenue = 400000
minimum_profit_needed = revenue * desired_percent_profit - total_expenditure
result = minimum_profit_needed
return result
|
Mr.Paul gave his daughter 1 3/4 of the total birthday gifts he bought. If he bought a total of 18 gifts, how many did he give to his daughter? | def solve() -> int:
gifts_daughter = 18 * 7/4
result = gifts_daughter
return result
|
There are 2 balloons with 8 ribbons each and 4 balloons with 6 ribbons each, how many ribbons are there in total? | def solve() -> int:
total_ribbons = (2*8)+(4*6)
result = total_ribbons
return result
|
Emily has a bag with 30 candies. She shares 5 candies with her friend and then adds another 10 candies to her bag. How many candies does Emily have now? | def solve() -> int:
candies = 30
candies = candies - 5
candies = candies + 10
result = candies
return result
|
Kevin baked 18 blueberry muffins, each weighing 6 ounces. He evenly divides them into 3 different boxes. If his friend eats all the muffins in one of the boxes, what is the total weight, in ounces, of the remaining muffins? | def solve() -> int:
muffin_weight = 6
num_muffins = 18
num_boxes = 3
total_weight = muffin_weight * num_muffins
box_weight = total_weight / num_boxes
remaining_weight = total_weight - box_weight
result = remaining_weight - (num_muffins / num_boxes * muffin_weight)
ret... |
Here are some possible questions to follow the example format: Judy has 12 more marbles than 4 times the number of marbles that Sam has. If Judy has 68 marbles, how many marbles does Sam have? | def solve() -> int:
judy_subtracted = 68 - 12
sam = judy_subtracted / 4
result = sam
return result
|
Mary weighed 60 kgs in January. She lost 10% of the weight in February and an additional 5% in March. What is her weight in March? | def solve() -> int:
current_weight = 60
first_weight_loss = current_weight * 10/100
current_weight -= first_weight_loss
second_weight_loss = current_weight * 5/100
current_weight -= second_weight_loss
result = current_weight
return result
|
Danny is a cyclist and he has three colors of helmets: white, black, and red. One-third of his helmets are white, one-fourth of the helmets are black, and the rest are red. If he has 6 white helmets, what is the total number of red helmets in his closet? | def solve() -> int:
white = 6
total_helmets = white / (1/3)
red = total_helmets * (1 - 1/3 - 1/4)
result = red
return result
|
If I give my grandpa 10 dollars, I will have triple his amount of money, but my grandma will have double the amount I do. The total amount of money we have is 147 dollars. How much money did I have originally? | def solve() -> int:
result = 41.25
return result
|
Student: A pizza is divided into 8 slices. If the whole pizza costs $12, what is the cost, in dollars, of one slice of pizza? | def solve() -> int:
whole_pizza_cost = 12
number_of_slices = 8
cost_of_one_slice = whole_pizza_cost / number_of_slices
result = cost_of_one_slice
return result
|
Jill owns 10 crayons. Her brother, Jack, owns 2 crayons too. Jack's friend, Tim, has 6 more crayons than Jill and Jack combined. How many crayons do they have altogether? | def solve() -> int:
jill_crayons = 10
jack_crayons = 2
tim_crayons = (jill_crayons + jack_crayons) + 6
total_crayons = jill_crayons + jack_crayons + tim_crayons
result = total_crayons
return result
|
Student: Jack and Jill went to the store to buy groceries. Jack spent $20 and Jill spent $35. How much money did they spend in total? | def solve() -> int:
jack_spent = 20
jill_spent = 35
total_spent = jack_spent + jill_spent
result = total_spent
return result
|
How much time will it take for Jessica to paint 17 lilies, 10 roses, 8 orchids and 23 vines if it takes her 7 minutes to paint a lily, 12 minutes to paint a rose, 9 minutes to paint an orchid, and 4 minutes to paint a vine? | def solve() -> int:
total_time = (17*7)+(10*12)+(8*9)+(23*4)
result = total_time
return result
|
Taylor pays $11 for a toy that costs $15 before sales. What is the percentage discount? | def solve() -> int:
price = 15
paid = 11
discount = price - paid
percentage = (discount / price) * 100
result = percentage
return result
|
John has $240 in his wallet. He spends one-third of it on food, one-fourth of the remainder on clothes, and one-fifth of the remaining money on transportation. How much money is left in John's wallet? | def solve() -> int:
total_money = 240
food_cost = total_money / 3
money_left = total_money - food_cost
clothes_cost = money_left / 4
money_left -= clothes_cost
transport_cost = money_left / 5
money_left -= transport_cost
result = money_left
return result
|
A tiger and a scorpion are sleeping for 9 and 6 hours a day respectively. How much time do both animals sleep in 3 months? | def solve() -> int:
sum=0
for day in range (1, 92):
sum = sum + 9
sum = sum + 6
result = sum
return result
|
Tara had $40 in her purse. She bought a scarf for $8 and then returned a shirt for $12. She then spent 20% of her money on a taxi and found $5 on the street. She also gave $2 to a homeless person. How much money did Tara have left in her purse? | def solve() -> int:
money = 40
money = money - 8
money = money + 12
taxi = money * 0.2
money = money - taxi
money = money + 5
money = money - 2
result = money
return result
|
Student: In 2010 the Orlando Magic won 59 games. The New York Knicks won 4 more games than the Magic. How many games did the Magic and the Knicks win together? | def solve() -> int:
magic_wins = 59
knicks_wins = magic_wins + 4
total_wins = magic_wins + knicks_wins
result = total_wins
return result
|
In 3 years, Kian will be 3 times as old as Maya. If Maya is currently 9 years old, how old is Kian? | def solve() -> int:
maya_future = (9 + 3)
kian_future = (maya_future * 3)
kian_current = (kian_future - 3)
result = kian_current
return result
|
Daniel is taking a summer course in statistics that lasts for 6 weeks. The class contains 2 two-hour lectures and 1 three-hour lab per week. Additionally, Daniel must work on a final project that will require him to dedicate 6 hours per week. How many hours will Daniel need to allocate to the course every week? | def solve() -> int:
weeks = 6
lectures_per_week = 2
lab_per_week = 1
lecture_hours = 2
lab_hours = 3
project_hours = 6
total_lecture_hours = lectures_per_week * lecture_hours
total_lab_hours = lab_per_week * lab_hours
total_hours_per_week = total_lecture_hours + total_lab_h... |
ally has five times the amount of pencils that Mary has. If Sally has 30 pencils, how many pencils does Mary have? | def solve() -> int:
Sally_pencils = 30
Mary_pencils = Sally_pencils/5
result = Mary_pencils
return result
|
A bakery sells cakes for parties. They need to have 10 small cakes per party for 25 parties. They’ve made 5 dozen chocolate cakes and 3 dozen vanilla cakes. How many more dozen cakes do they need to make? | def solve() -> int:
small_cakes_per_party = 10
parties = 25
total_small_cakes = small_cakes_per_party * parties
chocolate_cakes = 5 * 12
vanilla_cakes = 3 * 12
total_cakes = chocolate_cakes + vanilla_cakes
cakes_needed = total_small_cakes - total_cakes
dozen_cakes_needed = cake... |
A company sells 3 different types of t-shirts for $10, $15, and $20 respectively. If they sell 10 of the $10 t-shirts, 5 of the $15 t-shirts, and 3 of the $20 t-shirts, how much money did they make? | def solve() -> int:
shirt1_price = 10
shirt2_price = 15
shirt3_price = 20
num_shirt1 = 10
num_shirt2 = 5
num_shirt3 = 3
total_money = (shirt1_price * num_shirt1) + (shirt2_price * num_shirt2) + (shirt3_price * num_shirt3)
result = total_money
return result
|
A swimming pool has a capacity of 80,000 liters. If it is currently 60% full, how many liters of water need to be added to fill it completely? | def solve() -> int:
pool_capacity = 80000
percent_full = 60
liters_full = pool_capacity * (percent_full / 100)
liters_empty = pool_capacity - liters_full
result = liters_empty
return result
|
John has a rectangular garden which measures 5 meters by 8 meters. Calculate the area of the garden in square meters. | def solve() -> int:
area = 5 * 8
result = area
return result
|
Robert wants to resell a set of 300 shoes he bought for $4000. He wants to gain a half of the initial investment in profits when all units are sold. What will be the selling price for each pair of shoes? | def solve() -> int:
cost_price = 4000
number_of_shoes = 300
profit_percentage = 50
total_cost = cost_price * number_of_shoes
profit = (profit_percentage / 100) * total_cost
selling_price = (total_cost + profit) / number_of_shoes
result = selling_price
return result
|
Possible new questions and their python programs are: A bakery makes 240 muffins every day. On Monday, they sell 75% of the muffins they make. On Tuesday, they sell 80% of the muffins they make. On Wednesday, they sell 85% of the muffins they make. How many muffins do they have left after Wednesday? | def solve() -> int:
muffins = 240
monday = 0.75
tuesday = 0.8
wednesday = 0.85
sold_monday = muffins * monday
left_monday = muffins - sold_monday
sold_tuesday = muffins * tuesday
left_tuesday = left_monday - sold_tuesday
sold_wednesday = muffins * wednesday
left_wednesday = left_... |
A distribution company needs to transport 521 crates of apples. The truck can hold up to 100 crates. How many trucks are required to transport the apples? | def solve() -> int:
crates = 521
capacity = 100
trucks = crates // capacity + 1
result = trucks
return result
|
Student: How many cubic feet are there in a cube with an edge length of 10 feet? | def solve() -> int:
edge_length = 10
volume = edge_length ** 3
result = volume
return result
|
A restaurant bill includes the cost of the meal, a 10% service fee, and 8% tax. If a meal costs 25£, what is the total bill including tax and service? | def solve() -> int:
meal_cost = 25
service_fee = 0.1 * meal_cost
meal_with_service = meal_cost + service_fee
total_cost = meal_with_service * 1.08
result = total_cost
return result
|
Student: Max has 4 more nickels than dimes in his pocket. He has a total of 45 cents. How many nickels does he have? | def solve() -> int:
nickels = 0
dimes = 0
total_cents = 45
nickels = total_cents // 5
dimes = nickels - 4
total_coins = nickels + dimes
total_amount = total_coins * 5
nickels = total_amount // 5
result = nickels
return result
|
Sarah gave her cat 20 treats. The cat only ate 5 and refused to eat the rest. After a few hours, Sarah offered more treats and the cat ate 7. If Sarah gave the cat 35 treats, how many did she give the cat on the second attempt? | def solve() -> int:
treats_given = 20
treats_eaten = 5
treats_left = treats_given - treats_eaten
treats_offered = 35
treats_second_attempt = treats_offered - treats_left - 7
result = treats_second_attempt
return result
|
John wants to buy a new bike worth 150 dollars. He has 45 dollars. How much more money does John need to buy the bike? | def solve() -> int:
bike = 150
money = 45
money_needed = bike - money
result = money_needed
return result
|
A lemonade stand is selling cups of lemonade for $1.50 each. They have a special deal where you can buy 5 cups of lemonade for $6. If you buy the 5-cup deal, how much would it cost for 12 cups of lemonade? | def solve() -> int:
cup_price = 1.50
special_deal = 6
special_deal_quantity = 5
regular_price_total = (12 % special_deal_quantity) * cup_price
special_deals = 12 // special_deal_quantity
special_deal_total = special_deals * special_deal
total_price = regular_price_total + special_deal_total
... |
Student: 6. Jennifer and Victoria are swimming in a lake with a current. Jennifer is swimming at a speed of 3 m/s while Victoria is swimming at a speed of 5 m/s. If Jennifer takes 2 hours to reach the end, how many more minutes will it take Victoria to reach the end? | def solve() -> int:
speed_jennifer = 3
speed_victoria = 5
time_jennifer = 2
distance_jennifer = speed_jennifer * time_jennifer
time_victoria = distance_jennifer / speed_victoria
time_difference = time_victoria - time_jennifer
time_difference_minutes = time_difference * 60
result = tim... |
How much money will Joanie have to pay every month for the last 4 months of her 3-year membership? | def solve() -> int:
membership_price_per_month = 12
remaining_months = 4
monthly_payment = membership_price_per_month
result = monthly_payment
return result
|
Andrew is 25 years old. 2 years ago, he was three times as old as his sister will be in 4 years. If Andrew's brother is 6 years younger than Andrew, how old is Andrew's brother? | def solve() -> int:
andrew_age = 25
sister_age_2_years_ago = (andrew_age - 2) / 3
sister_age_in_4_years = sister_age_2_years_ago + 6
andrew_brother_age = andrew_age - 6
brother_age = andrew_brother_age - sister_age_in_4_years
result = brother_age
return result
|
1. Erica has four children. The oldest is 8 years old and the youngest is 2 years old. How many years of difference are there between the oldest and the youngest? | def solve() -> int:
total_difference = 0
oldest = 8
youngest = 2
total_difference = oldest - youngest
result = total_difference
return result
|
Student: It takes 8 boxes to fill a 10-foot wall. How many boxes are needed to fill a 20-foot wall? | def solve() -> int:
box_length = 10
wall_length = 20
num_boxes = wall_length // box_length
result = num_boxes * 8
return result
|
A pet store sells 15 puppies on Monday, 25 kittens on Tuesday, and 5 fish on Wednesday. If each puppy costs $200, each kitten costs $100, and each fish costs $10, how much does the pet store earn from Monday to Wednesday? | def solve() -> int:
puppies = 15
kittens = 25
fish = 5
puppy_cost = 200
kitten_cost = 100
fish_cost = 10
puppy_earnings = puppies * puppy_cost
kitten_earnings = kittens * kitten_cost
fish_earnings = fish * fish_cost
total_earnings = puppy_earnings + kitten_earnings... |
Emma is 6 inches taller than Marcus, who is 10 inches shorter than Laura. If Laura is 68 inches, what is the average height of the three people? | def solve() -> int:
laura_height = 68
marcus_height = laura_height - 10
emma_height = marcus_height + 6
average_height = (laura_height + marcus_height + emma_height) / 3
result = average_height
return result
|
Leo saved 25% of his weekly allowance for 4 weeks. He then spent 60% of his savings on a video game. The video game cost $36. How much is Leo's weekly allowance? | def solve() -> int:
total_savings = 36 / 0.6
weekly_savings = total_savings / 4
weekly_allowance = weekly_savings / 0.25
result = round(weekly_allowance, 2)
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.