Question: 1. Write a program that prompts the user to enter four numbers between 1 and 13 and tests whether these four numbers can form
1. Write a program that prompts the user to enter four numbers between 1 and 13 and tests whether these four numbers can form an expression that yields 24. The expression can use the operators (addition, subtraction, multiplication, and division) and parentheses in any combination. Each number must be used once and only once. Here is a sample run of the program: Enter four numbers (between 1 and 13): 5 4 12 13 The solution is 4+12+13-5 1. Draw the UML diagram for the class. 2. Implement the class. Write a client program that tests all functions in the class.
Step by Step Solution
3.48 Rating (165 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
