Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Function 0 Save C Reset function finalToll = CalculateToll ( baseToll , vehicleweight ) % baseToll: The base toll to cross a bridge in dollars

Function 0
Save
C Reset
function finalToll = CalculateToll (baseToll, vehicleweight)
% baseToll: The base toll to cross a bridge in dollars
% vehicleweight: Weight of a vehicle in pounds
% TODO: Assign finalToll with baseToll
finalToll =0;
% TODO: If vehicleweight is over 5,000 pounds, increase finalToll by 4 dollars
% TODO: Assign finalToll with twice the value of finalToll
end
Code to call your function?
1 CalculateToll(10,3500)
image text in transcribed

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

More Books

Students also viewed these Databases questions

Question

7. Where Do We Begin?

Answered: 1 week ago