السلام عليكم ورحمة الله وبركاته
أبغى مساعدتكم في كتابة هذا البرنامج بلغة الجافا
مرررررة صدعة منه لأنه الأستاذة لسة معطيانة أول محاضرة
السؤال كالتالي
supposed to create a class, instantiate object of that class and call methods on these objects. Program a Java application that performs calculations
(addition and multiplication). The application will consist of two classes:
ت
بغى 2 class
الكلاس الاولى :A class Calculator that has two instance variables and three methods:
وفيها : setNumbers - which is used to set the numbers
addNumbers - which is used to return the sum of the numbers
multiplyNumbers - which is used to multiply the numbers
الكلاس الثانية:
A class CalculatorApp that contains the main method and asks the user what he/she wants to do through a menu. Depending what the user wants to do, it needs to call the appropriate methods in the class Calculator and potentially print the results returned.