Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Program to be completed in c++ Laura Croft is getting ready to make a trip to Eg

ID: 3568886 • Letter: P

Question

Program to be completed in c++

Laura Croft is getting ready to make a trip to Egypt to check out a new tomb. She has been

notified that the each door into the tomb is locked by an ancient combination lock. To enter the tomb, a

person must solve a simple mathematical calculation. Unfortunately all of the numbers are written in

Roman numerals. As part of her team, your job is to write a program that will quickly perform the

calculation and present the result as a Roman numeral.

The program will read the calculations from a file, perform the operation on the Roman numerals and

send the answer to a file.

Input: All input will come from a file named input.txt. The file will contain simple mathematical

equations, each one on a separate line. The format for each line will be:

<Roman numeral><space><operator><space><Roman numeral>

Each Roman numeral will be valid and will represent a number from 1

Explanation / Answer

Only 300? http://en.wikipedia.org/wiki/Opportunity_cost