Question: In Java Programming Assignment 1 Dinner with Emma Input: File Input Output: Standard Output Jack decides to invite Emma out for a dinner. Jack is


Programming Assignment 1 Dinner with Emma Input: File Input Output: Standard Output Jack decides to invite Emma out for a dinner. Jack is a modest student, and he doesn't want to go to an expensive restaurant. Emma is a girl with high taste, and she prefers elite places. Munhattan consists of n streets and m avenues. There is exactly one restaurant on the intersection of each street and avenue. The streets are numbered with integers from 1 to n and the avenues are numbered with integers from 1 tom. The cost of dinner in the restaurant at the intersection of the i-th street and the j-th avenue is cij. Jack and Emma decide to choose the restaurant in the following way. Firstly Emma chooses the street to dinner and then Jack chooses the avenue. Emma and Jack make their choice optimally: Emma wants to maximize the cost of the dinner, and Jack wants to minimize it. Emma takes into account that Jack wants to minimize the cost of the dinner. Find the cost of the dinner for the couple in love. Input File The first line contains two integers n. m (1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
