Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this problem, i've been working on this one for two days but i still couldn't get it right. write a C++

image text in transcribed

image text in transcribed

Please help me with this problem, i've been working on this one for two days but i still couldn't get it right.

write a C++ program to simulate uber's method of calculating cost ofnde Your program is to prompt the user for Rider's first and last name in one prompt the length of nde in minutes the distance of ride in miles code of Xfor uherX Uber's budget option) or code of s for SUV. or L' for luxury car. code for whether or not there is a surge for the trip. Letter"Y" for yes and 'N' for if and only if code for surge is "Y ask the user for the surger multiplier CALCULATE x Calculate the otal fare as base fare t per minute x number of minutes +per mile bekre of miles. If there is a surge tee then multipl the surge fee calculating total fare. If total fare is less than minium fee then lotal fare is set equal lo minimum fare. Use the following fee schedule: Iminule per mile Minimum fire ype of vehicle base fare per S15.00 so ST13 510 55 Luxury So OUTPUT sample run might look like this: A Enter name: Mary Pape Enter ewer time in mini Enter enter distance: suv or L for auxury: x Enter 'x' for s for Enter if surge or 'N' if not DeLL

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