How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • Go back-and-forth until satisfied
    Rate the answer you receive.
Ask LogicPro Your Own Question
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 32722
Experience:  Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
29751445
Type Your Programming Question Here...
LogicPro is online now

Write the function compare. The function should take as

This answer was rated:

Write the function compare. The function should take as input two strings containing file names. The output should be an integer:
0 if the two files are identical
Or the line number where they first differ

Hi,

Welcome back.

Hope you are doing well.

Please wait, let me check

Here is the function definition: compare

--

To get help with next question/requirement/issue, follow these steps:

Select five stars and add me to favorites

Then click on "Ask your favorite Expert new question" to send me next question and get instant help.

You can also go to my profile page:

http://www.justanswer.com/homework/expert-logicpro/

under my image, tag me using "@For LogicPro only" and click on "Ask your Question" to start chatting and get instant help

Take care and stay safe

Thanks

LogicPro and other Programming Specialists are ready to help you
Customer: replied 4 days ago.
Hi you didn’t identify that one file had more lines in the code so it’s wrong.

This is different requirement than the two line requirements provided originally.

To get help with next file/question/requirement/issue, follow these steps:

Select five stars and Add me to favorites

Then click on "Ask your favorite Expert new question" to send me next question and get instant help.

You can also go to my profile page:

http://www.justanswer.com/homework/expert-logicpro/

under my image, tag me using "@For LogicPro only" and click on "Ask your Question" to start chatting and get instant help

Take care and stay safe

Thanks