Question: I have been trying to write a script comparing two bids in matlab but I have been having problems starting the script based on the

I have been trying to write a script comparing two bids in matlab but I have been having problems starting the script based on the flowing question.

Write a script that will compare 2 bids for a construction project. It will do the following. a) Ask the hours of work and cost per hour of the first bidder. b) Ask the hours of work and cost per hour of the second bidder. c) Calculate the hours times hourly rate for the first and second bidder. d) Determine the winner of the bid based on either the total cost or the numbers worked.

example:

SAMPLE OUTPUT 1 Bidder 1 Enter hours: 5 Enter hourly rate: 10 Bidder 2 Enter hours: 5 Enter hourly rate: 10 Winner - Tie. Total cost - $50.00 Total time - 5hrs. SAMPLE OUTPUT 2 Bidder 1 Enter hours: 5 Enter hourly rate: 10 Bidder 2 Enter hours: 5 Enter hourly rate: 20 Winner - Bidder 1. Total cost - $50.00 Total time - 5hrs.

SAMPLE OUTPUT 3 Bidder 1 Enter hours: 10 Enter hourly rate: 5 Bidder 2 Enter hours: 5 Enter hourly rate: 10 Winner - Bidder 2. Total cost - $50.00. Total time - 5hrs.

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 Databases Questions!