Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Across campus, Petey is planning his revenge. He will open his own ice cream shop by the reflection pond. It will be great, he thinks.
Across campus, Petey is planning his revenge. He will open his own ice cream shop by the reflection pond. It will be great, he thinks.
However, his pricing is very tricky. He will ask you a series of questions, and depending on your answers you will be charged different amounts. Here are his questions:
How many years have you been at UCF the first year is
What is your favorite ice cream?
What is your name?
Petey knows that it is easier to hook new students and older students will be gone soon. So he will take the years you have attended UCF and multiply it by $
He really wants to sell mint ice cream, and if you type in "mint" he will take off rounded down. He doesn't like change You may assume that the user will always type in mint all lowercase.
He does nothing with this information unless your name is "Knightro". Then the price of your food is $
Can you write this program for Petey?
Sample
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