Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the last 10 years, online product purchases have exploded. For many consumers

ID: 3669187 • Letter: I

Question

In the last 10 years, online product purchases have exploded. For many consumers, this is the preferred method because of the convenience and the ability to comparison shop. By the completion of this class, you will have developed an interactive Java program that supports a company of your choosing to sell products online. This will allow customers to order products through your application.

You are trying to decide the best methodology to approach the development of your online product ordering system. You have heard that using object-oriented programming (OOP) will save you time and allow you to reuse many of the functions that you develop for this application. You also recognize that there will be requests for future functionality to be added to this ordering application after you launch the first version.

You have decided to evaluate the similarities and differences between structured procedural programming and object oriented programming. You are also looking at how the object-oriented concepts can enhance your overall design and the development of this application. Research at least 2 sources (which may include your textbook) to support your response.

Discuss the following:

What are the similarities between procedural programming and object-oriented programming?

What are the differences between procedural programming and object-oriented programming?

Choose 4 of the following object-oriented concepts, and explain how they help in programming objects, classes, methods, encapsulation, information hiding, inheritance, or polymorphism.

Explanation / Answer

Similarities:

Both models uses procedures to carry out logical operations.

Differences:

Procedure oriented versus object oriented

1.top down approach oop is bottom up

2.data moves freely. 2. Data is tied to entities.

3.less secure. 3. More secure

4.less reusability. 4. More reusability

5.polymorphism not possible. 5.polymorphism is

  possible

In the given system, products,orders.,manufacturers,

Customers are maintained as entities using classes.

Polymorphism can be applied to different products.

Secure transactions are possible with information hiding.

Methods are used to get order and to pprocess order and to track order.

Methods are encapsulated to member variables in classes.

For example order class contains methods like get order,track order etc.. And members are order id.,product id ,customer id etc.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote