Question

What are the benefits and disadvantages of object-oriented programming? What is the difference between a flat-file...

What are the benefits and disadvantages of object-oriented programming?
What is the difference between a flat-file database and a relational database?
In what situations is it more appropriate to a flat-file database over a relational database, and vice versa?
What are the advantages to using cookies to power a web application? Are there any risks involved using cookies?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Advantages

  1. The programmes written with OOP are really easy to understand.

  2. Since everything is treated as objects, so we can model a real-world concept using OOP.

  3. OOP approach offers the reusability of classes. We can reuse the classes that are already created without writing them again and again.

  4. Since the parallel development of classes is possible in OOP concept, It results in the quick development of the complete programmes.

  5. Programmes written in OOP technique are marginally easier to test, manage as well as maintain.

  6. It is a secured development technique since data is hidden and can’t be accessed by external functions.

Disadvantages:-

  1. Sometimes, the relation among the classes become artificial in nature.
  2. Designing a program in OOP concept is a little bit tricky.

  3. The programmer should have a proper planning before designing a program using OOP approach.

  4. Since everything is treated as objects in OOP, the programmers need proper skill such as design skills, programming skills, thinking in terms of objects etc.

  5. The size of programmes developed with OOP is larger than the procedural approach.

  6. Since larger in size, that means more instruction to be executed, which results in the slower execution of programmes.

Flat-File Databases

Relational Databases

Flat file databases are typically plain text files that store one record per line, with record fields delimited by whitespace or a delimiting character. Flat file databases can be read directly by a variety of software applications

In addition to the data tables, relational databases use "indexes" to quickly find records based on search criteria. Relational databases generally require a relational database management system (RDBMS) to manage and access the data.

Flat file databases are simple and portable, and typically can be used without requiring special software.

Relational databases are faster, more efficient and more powerful than flat files. Most RDBMSs provide database access over networks.

Flat-File Importance

A flat-file database is a database of just one table. It can be created in database software or in a spreadsheet and is often saved as a CSV file.A single flat-file table is useful for recording a limited amount of data.A flat file is easier to setup because it is not as complex as a relational database. it contains a single table/single spreadsheet of data unlike a relational database which contains multiple table of data.A flat file is easier to set up is an advantage of using a flat file instead of a relational database.It is easier to assign foreign keys to a flat file.A flat file reduces storage of redundant data.A flat file reduces storage of irrelevant data.Example:usernames and passwords,contact details,product details.

Advantages to using cookies to power a web application:

  • Conveniency: Cookies not only remember which websites you have been to, they also remember information about forms. Tired of filling out your address every time you buy something online? Cookies can make filling out address forms quick and efficient.
  • Personalization: Cookies are like the theme song to the popular sitcom Cheers, Where everybody knows your name. They are great for serving up personalized content that is geared towards that specific user’s preferences
  • Effective Advertising: How nice would it be to only be offered products or services that are relevant to you? Internet marketing companies collect data from cookies to run marketing campaigns aimed at a very specific market
  • Ease of Control: It is actually really easy to manage your cookies if you know how. Most browsers make it easy for you to clear your browsing history.
Add a comment
Know the answer?
Add Answer to:
What are the benefits and disadvantages of object-oriented programming? What is the difference between a flat-file...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What are the differences between the traditional program paradigm (procedural programming) and the newer object oriented...

    What are the differences between the traditional program paradigm (procedural programming) and the newer object oriented paradigm? What are the advantages and disadvantages of each? Which paradigm would you prefer to work with? Explain and give your reasons.

  • 1. Why are the advantages and disadvantages of object-oriented databases? 2. What are data marts? How...

    1. Why are the advantages and disadvantages of object-oriented databases? 2. What are data marts? How do they differ from data warehouses? 3. What is HTML and why is it needed to use the web?

  • In your own words, explain the difference between a flat file and a relational database. (5...

    In your own words, explain the difference between a flat file and a relational database. (5 points) Review the example Hospital Physician Data Dictionary as found in your Lecture this week. Create a similar Data Dictionary for Patients, using the same format. Include at least 5 field names you think should be included in a Patient Data dictionary. Remember to use different data types for dates, text, and numbers. I have given you two examples to start. (10 points) Field...

  • Information About This Project             In the realm of database processing, a flat file is a...

    Information About This Project             In the realm of database processing, a flat file is a text file that holds a table of records.             Here is the data file that is used in this project. The data is converted to comma    separated values ( CSV ) to allow easy reading into an array.                         Table: Consultants ID LName Fee Specialty 101 Roberts 3500 Media 102 Peters 2700 Accounting 103 Paul 1600 Media 104 Michael 2300 Web Design...

  • C# Goals: Practice building a class Use object oriented programming to solve a problem Problem Description:...

    C# Goals: Practice building a class Use object oriented programming to solve a problem Problem Description: Create a Windows Console Application using the .NET Framework For this application you will be designing a program that allows users to keep track of robot inventory. First, you will design a Robot class, and then build an application that creates Robot objects. Important formulas / relationships: Before we begin designing robots, we should understand a few key electrical terms and relationships. Terms: Voltage...

  • PYTHON 3 Object Oriented Programming ***a9q3.py file below*** class GradeItem(object): # A Grade Item is anything...

    PYTHON 3 Object Oriented Programming ***a9q3.py file below*** class GradeItem(object): # A Grade Item is anything a course uses in a grading scheme, # like a test or an assignment. It has a score, which is assessed by # an instructor, and a maximum value, set by the instructor, and a weight, # which defines how much the item counts towards a final grade. def __init__(self, weight, scored=None, out_of=None): """ Purpose: Initialize the GradeItem object. Preconditions: :param weight: the weight...

  • Advanced Object-Oriented Programming using Java Assignment 4: Exception Handling and Testing in Java Introduction -  This assignment...

    Advanced Object-Oriented Programming using Java Assignment 4: Exception Handling and Testing in Java Introduction -  This assignment is meant to introduce you to design and implementation of exceptions in an object-oriented language. It will also give you experience in testing an object-oriented support class. You will be designing and implementing a version of the game Nim. Specifically, you will design and implement a NimGame support class that stores all actual information about the state of the game, and detects and throws...

  • i. What is the difference between sample and population? ii. What is the difference between statistic...

    i. What is the difference between sample and population? ii. What is the difference between statistic and parameter? iii. What is the difference between descriptive statistics and statistical inference? iv. Categorical random variable contrast with numerical random variable. v. Compare discrete data from continuous data. saw. Detail the difference between nominal and ordinal scale. vii. Detail the difference between interval and ratio scale. viii. Explain the main reasons for obtaining data. ix. What is the difference between probabilistic and non-probabilistic...

  • JAVA project PLEASE complete/ create project with comments in the programming explaining everything Text file Year...

    JAVA project PLEASE complete/ create project with comments in the programming explaining everything Text file Year of storm/ Name of storm/ mmdd storm started/ mmdd storm ended/ magnitude of storm/ //made up data 2004/Ali/1212/1219/1 2003/Bob/1123/1222/3 1980/Sarah/0123/0312/0 1956/Michael/1211/1223/4 1988/Ryan/0926/1019/ 1976/Tim/0318/1010/0 2006/Ronald/0919/1012/2 1996/Mona/0707/0723/1 2000/Kim/0101/0201/1 2001/Jim/1101/1201/3 Text file Class storm{ private String nameStorm; private int yearStorm; private int startStorm; private int endStorm; private int magStorm; public storm(String name, int year, int start, int end, int mag){ nameStorm = name; yearStorm = year; startStorm...

  • Explain what enterprise resource planning (ERP) systems. Outline several of their key characteristics. Describe in reasonable...

    Explain what enterprise resource planning (ERP) systems. Outline several of their key characteristics. Describe in reasonable detail how a company leverages an ERP system and how its operations are improved after installing an ERP system like SAP. Explain how a supply chain management system helps an organization make its operations more efficient What is Upstream and Downstream management of the supply chain? Explain the concept of “Supply Network”, its benefits, and how technology made this concept available Explain the difference...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT