mahir_data
mediumGoCar · mathPro

Round fares up, round loyalty points down

GoCar always rounds the billed fare up to the nearest ringgit, and always rounds loyalty points (1 point per ringgit) down.

Return rider, fare_before_rounding, billed_fare (rounded up), and loyalty_points (rounded down).

Schema

rides
idINT
riderTEXT
fare_before_roundingNUMERIC

Pro

The example input, expected output, and walkthrough for this question unlock with a Pro plan.

Pro

This is a Pro question

Premium practice questions unlock with a Pro plan. The full solution, expected output, and grading are available to Pro members.

See Pro plans