Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions