How to define a structure with tag name car_table, Database Management System

Assignment Help:

QUESTION

(a) Consider a car database consisting of car model, car make, car origin, Engine capacity, color, cost.

                                              186_table.png

                                                                            Fig

Using this car database, illustrate the process of

(i) How to define a structure with tag name car_table.

(ii) How to declare an array of structures with the following

                                          variables car[1], car[2] and car[3].

(iii) How to enter the values in the table for the three cars. (Tips: use a FOR loop)

(iv) How to change the color of car2 from blue to black and display the new color.

(v) How to increase the cost of car 3 by 10 % and display the new cost.

(b) Using function write a C/C++ program to take two arrays of integer numbers and multiply each corresponding values and put the result in a third array.

Sample arrays and values are provided in Fig 2.

                                                     359_table2.png

                                                                                              Fig 2


Related Discussions:- How to define a structure with tag name car_table

Normalization, Consider a bank that has a collection of sites, each running...

Consider a bank that has a collection of sites, each running a database system. Suppose the only way the databases interact is by electronic transfer of money between one another,

Give two profit of reuse of code, Give two profit of Reuse of Code. Re...

Give two profit of Reuse of Code. Reusing the implementation . Place existing class directly inside a new class. The new class can be made up of any number and type of the oth

Replicating data, Replicating Data One approach that may support effici...

Replicating Data One approach that may support efficient access to dissimilar applications as above may be to give access to every of the applications from dissimilar replicate

Relational database integrity, A database is a set of data. But, is the dat...

A database is a set of data. But, is the data kept in a database trustworthy? To answer that query we must first answer the question. What is integrity? Integrity simply means t

aggregate functions-data manipulation language, Aggregate functions ...

Aggregate functions Some of these functions are min, count, max, and avg. These functions help in getting consolidated information from a set of tuples. Example:

Explain about sql server 2000, What is the difference between SQL Server 2...

What is the difference between SQL Server 2000 complete and differential backups? A complete backup makes a copy of the whole database. A differential backup creates a copy of

Define mysql_fetch_object(), What are the differences among MySQL_fetch_arr...

What are the differences among MySQL_fetch_array(), MySQL_fetch_object(), MySQL_fetch_row()? Mysql_fetch_object returns the result from the database like objects while mysql

Explain cnt in the respects of qbe, Explain CNT in the respects of QBE ? ...

Explain CNT in the respects of QBE ? CNT: It is one of the aggregation commands given in QBE. It is used to identify number of tuples

What is database files , The database files accept the actual data and ...

The database files accept the actual data and are typically the biggest in size. Depending on their shape, the tables for all the user operation can go in one database file-but

Attributes, Attributes and its types explain?

Attributes and its types explain?

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd