Answer:
The statements which are true are;
- A user-defined data type can include other user-defined data types
- A user-defined data type is defined using a class
- A user-defined data type can include a list
Explanation:
A user-defined data type (UDT) is a datatype that is defined and derived by the use of the datatypes which preexist including existing user-defined datatypes and the built-in datatypes
It is therefore true that a user-defined data type can include other user-defined data types
A class is a user-defined data type that contains both its member data and member functions, that can be used when an instance of the class is first created
Therefore, a user-defined data type is defined using a class
In a user-defined data type, a variable has actual data within it which can include an array or list
Therefore a user-defined data type can include a list.
Answer:
#include <iostream>
using namespace std;
int main()
{
int cookies;
cin >> cookies;
cout << "The calorie consumption is: " << cookies * 142 << endl;
return 0;
}
Explanation:
First line: include basic library of C++(input and output).
using namespace std;
Says to compiler we are using std.
int main() Main function
int cookies, cookies variable, of int type
cin >> cookies
get the number of the cookies from user
cout Print the text and calories(one cookie have 142 calories)
Have a nice day ;)
Answer: <em><u> How to code for a database? A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques. </u></em>
WWW. Wikipedia.com
Explanation: When creating a database first you need to make a software program then you need to start planing on what to do ...
{ A database management program (DBMS) is a software package design designed to manipulate, define, retrieve, and manage data in database.
A DBMS generally manipulates the data itself, the the data format, field names, record structure and file structure.}
<h3><u><em>
HoPe ThIs HeLpS YoU!!</em></u></h3>
<u><em /></u>
Loop is a control structure that causes a statement or group of statements to repeat.Before entering a loop, the first input, or the accumulator where the total will be kept is retrieved to an initial value, usually zero.