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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started