Answer:
Computer hardware is any physical device used in or with your machine, whereas software is a collection of code installed onto your computer's hard drive. For example, the computer monitor you are using to read this text and the mouse you are using to navigate this web page are computer hardware.
Explanation:
Answer:
Hi Riahroo! This is a good question on the concept of relational databases.
We can normalize the relations as follows:
Flight
(flightnumber (unique), flighttime, airline_id, departure_city, arrival_city, passenger_id, pilot_id, airplane_id)
has_one_and_belongs_to :airline
has_many :passengers
has_one :pilot
Itinerary(passenger_id, flight_id)
Belongs_to
Passenger_details
(passengername (unique), gender, date_of_birth)
has_many :flights
Pilot
(pilotname (unique), gender, date_of_birth)
has_many :flights
airline(airlinename)
airplane(planeID, type, seats))
Explanation:
To normalize a relation, we have to remove any redundancies from the relationships between database objects/tables and simplify the structure. This also means simplifying many-to-many relationships. In this question, we see there is a many-to-many relationship between flights and passengers. To resolve this we can introduce a join table which simplifies this relationship to a one-to-many between the objects.
Answer:
A table is fine till we need rows and columns. However, the list is quite more flexible. Hence, the table is always going to be a great choice when the data needs to be expressed as a table. However, if we want a more flexible view for a list of products or items with quite a long list of properties. Also, we can have any level of indented lists within the list. This can be done with the help of tabs, and bullets and numbering. Both ordered and unordered lists are possible. And that proves lists are more flexible. And the main purpose of the table is the row and column type of formatting on the web page, where we create a table and then hide the borders.
Explanation:
Please check the answer section.