Back to problems

Calculate Dasher Pay

Algorithm · DoorDash · Easy

A Dasher's compensation is made up of a base amount, mileage compensation, time-based compensation, and a tip. Create a function that computes the total amount earned from the supplied values. The required inputs are the base rate (integer), per-kilometer rate (integer), traveled distance in kilometers (integer), per-minute rate (integer), delivery duration in minutes (integer), and tip (integer). Requirements: The input provides six integers: base rate, distance rate,…

Checking your access…