Question: 1) Find a web reference for object oriented programming (OOP) software applications for mobile apps and write a short paragraph summarizing the contents. Please provide

1) Find a web reference for object oriented programming (OOP) software applications for mobile apps and write a short paragraph summarizing the contents. Please provide the web link. Also, try to show information that is relevant to you and that you can understand and explain.

2) The Java code attached adds and subtracts two numbers using linear programming. Please rewrite this code using OOP and provide your code. In this way, the code will have the same functionality but it will use OOP. Your code must be original, and it can be a modified version of a posted code; however, make sure you provide a reference to the student who wrote the original code. You can change the variable names and modify the logic in some way // This class add and subtract numbers using linear programming import java.util.Scanner;

public class addNumbers {

public static void main(String[] args)

{ // Begin main

Scanner input = new Scanner( System.in ); // Instantiate object input

System.out.println("Enter number 1"); // Ask the user to enter number 1

double number1 = input.nextDouble(); // Read the first number

System.out.println("Enter number 2"); // Ask the user to enter number 2

double number2 = input.nextDouble(); // Read the second number

double sum=number1 + number2; // Add the numbers

double difference = number1 - number2; // Subtract number 2 from number1

System.out.printf(" Sum = %f ", sum); // Print the sum

System.out.printf("Difference = %f", difference); // Print the difference. }

}

// end main

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!