Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose subs are sold for $ 1 0 each at a local shop. Every sub purchased comes with a coin. Once you have collected 1
Suppose subs are sold for $ each at a local shop. Every sub purchased comes with a coin. Once you have collected coins, you can exchange them for one free sub from the shop. Your goal is to determine the total number of subs you can get, including those obtained through exchanging coins, given n dollars to spend. For instance, if the user inputs $ they can initially buy subs, thereby receiving coins, which are enough to get more sub for free. Thus, with $ the user can get a total of subs and will have coin left over.
allow user input for "how much they would like to spend on subs", tell how many subs they can buy with the amount of money entered, how many coins are left, and ask if you would like to reuse the program with a yn
python and c
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