top of page
Writer's pictureKeith Carter

Now Anyone Can Program: Reviews Calculator (Colab)


It is well known that the number of stars significantly impacts a restaurant's revenue. Take these statistics from Wowapps.com. Whealan, B. (2023, October 3). How restaurant reviews impact people’s decisions. WOWAPPS.


Statistical Impacts of Positive Google Reviews for Restaurants:

  • For every star received on an online directory, a 5%–9% increase in revenue can be expected.

  • Diners are likely to spend 31% more at restaurants with excellent reviews (4-5 stars).

  • Diners are 3.9 times more likely to choose a restaurant with the highest positive review displayed on Google for each cuisine.

So it behooves a restaurant owner or their marketing team to really go after those diners who loved their place to give 5-star reviews and, to take constructive feedback from the reviewers seriously. 

Now, let’s get back to some algebra. If your restaurant has a 3.7-star rating based on 28 reviews, how many additional reviews do you need to achieve a 4.5-star rating? Algebra! You probably didn’t expect that, but don’t worry—AI can help us solve this.



{Prompt}

Let’s write a program to calculate the number of additional 5-star reviews needed to bring the average rating from 3.7 to 4.5 based on the current number of reviews (28).



{Prompt}

Create a python program that can help calculate the reviews. User input # of reviews, current average # of stars and desired average # of stars. Calculate the amount of 5 star reviews needed to achieve the desired average.




Here is the Google Colab to run the code (click here)



Please see a link to the chat (click here)


This example came from the chapter "Now Everyone is a Programmer" in the book "Know Decide Act: 10x Your Productivity at Work with AI and Automation"



Available at Amazon, Barnes and Noble and more!


1 view0 comments

Comments


bottom of page