Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program that lets the user to enter 3 numbers, each in between 1-9. Then, form the expressions using the operators (addition, subtraction,

image text in transcribed

Write a Java program that lets the user to enter 3 numbers, each in between 1-9. Then, form the expressions using the operators (addition, subtraction, multiplication, and division). Given the order of the number is fix and the result of the expression must equal to 18. You can only use array to solve the problem. Contoh output: Sample output: Enter 3 numbers (1-9) : 6 7 8 No Solution Enter 3 numbers [1-9] : 4 7 2 4 + 7 * 2 = 18 Enter 3 numbers [1-9] : 9 7 5 9 * (7 - 5) = 18 Enter 3 numbers (1-9] : 2 16 (2 + 1) * 6 = 18 Enter 3 numbers [1-9] : 4 2 9 (4 2) * 9 = 18 4 / 2 * 9 = 18 4 / (2/9) = 18

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

1. Discuss the potential legal issues that relate to training.

Answered: 1 week ago

Question

3. Design a program for preparing for cross-cultural assignments.

Answered: 1 week ago

Question

2. Develop a program for effectively managing diversity.

Answered: 1 week ago