Question
Bianca is preparing special dishes for her daughter's birthday. It take her a minutes to prepare the first dish, and each following dish takes b
Bianca is preparing special dishes for her daughter's birthday. It take her a minutes to prepare the first dish, and each following dish takes b minutes longer than the previous dish. She has t minutes to prepare the dishes. For example, if the first dish takes a = 10 minutes and b = 5, then the second dish will take 15 minutes, the third dish will take 20 minutes, and so on. If she has 80 minutes to prepare the dishes, then she can prepare four dishes because 10 + 15 + 20+ 25 = 70. how do I go about creating a program that would prompt the user to enter the values of a, b, and t, and outputs the number of dishes Bianca can prepare?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started