Question: 7. Write an if statement that will assign a value to a variable named cost based on the value in the variable distance. Distance

7. Write an if statement that will assign a value to a

7. Write an if statement that will assign a value to a variable named cost based on the value in the variable distance. Distance Cost 0 through 2,000 15.00 More than 2,000 but not more than 5,000. More than 5,000 but less than 10,000 10,000 or more 28.00 55.00 99.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

You can write the if statemen... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!