Problem Solving group homework
Work in groups of 2-3. There are 2 problems to solve, and I am looking for a program that first prompts and solves problem 1 and then continues to prompt and solve problem 2. Use the discussion board to solve your problem individually, and then one team member can combine the 2 programs. Note: Test data in comments is required.
Extra credit: Make each problem its own method. Then, have the main method call the two problem solving methods.
Partner #1: Write a program that asks the user for three numbers and displays the maximum and minimum of the three. Use Math.max() and Math.min() methods. You may need to invoke min an max more than once.
Partner #2: Ask the user for the distance of the user's commute in miles. Ask for the miles per gallon their car achieves. Then, ask for the price of a gallon of gas. Tell the user how much they will pay for each commute.
Partner #3 (only groups with 3 partners need to do this one): Write a program
that reads in two integers typed on the keyboard and outputs their sum, difference
and product.