![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/16003414_1566476157650_DEF.jpg)
Nimra Mubeen
2019 年からアクティブ
Followers: 0 Following: 0
統計
MATLAB Answers
0 質問
1 回答
ランク
of 148,011
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
回答済み
Write a function called fare that computes the bus fare one must pay in a given city based on the distance travelled. Here is how the fare is calculated: the first mile is $2. Each additional mile up to a total trip distance of 10 miles is 25 cents.
function fare =taxi_fare(d,t) fare=5+(ceil(d-1)*2)+(ceil(t)*.25)
Write a function called fare that computes the bus fare one must pay in a given city based on the distance travelled. Here is how the fare is calculated: the first mile is $2. Each additional mile up to a total trip distance of 10 miles is 25 cents.
function fare =taxi_fare(d,t) fare=5+(ceil(d-1)*2)+(ceil(t)*.25)
5年弱 前 | 0