Question: Given the following rules, come up with an efficient design using selection: If gasPrice > $ 4 and numVechicles < 2 , then decisiofi =

Given the following rules, come up with an efficient design using selection: If gasPrice > $4 and numVechicles <2, then decisiofi = 'Fly' If gasPrice > $4 and numMembers <6, then decision = 'Fly' If numVechicles >=2 and numMembers >=6, then decision = 'Drive If gasPrice =- $4, then decision = 'Vote: Fly or Drive If gasPrice < $4 and numMembers >3, then decision = 'Recruit more members If gasPrice < $4 and numMembers <3, then decision = 'Drive 1 vehicle

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!