Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You would like to establish yourself as a new provider on the e-scooter market. To differentiate your business from your competitors, you offer two pricing

You would like to establish yourself as a new provider on the e-scooter market. To differentiate your business from your competitors, you offer two pricing models from which the customer can select one before each ride. Each pricing model has a fixed price component that applies when a scooter is rented and a variable price component that depends on the time driven.

With pricing model 1, the fixed price per rental is 1.69 euros and 0.29 euros is charged per minute driven. With pricing model 2, the fixed price per rental is 2.99 euros. The formula for calculating the price per minute in euros is: price_per_minute=0.95^(1/driving_time)

Both pricing models should be available for customers to select from in the app. You now want to write the necessary Python code for this. First, the customer should be asked for the estimated driving time (in minutes). Then, the results of both pricing models should be displayed for this estimated driving time and, below that, a recommendation for the more favorable pricing model should be made, e.g. "The cheapest model is number 1!".

Realize both pricing models as functions pricing_model_1 and pricing_model_2. If you realize the code without using functions, you still receive (partial) points.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions