Consider the following statements:struct supplierType
{ string name; int supplierID;
};struct paintType
{ supplierType supplier; string color; string paintID;
};
paintType paint;What is the data type of paint.supplier?
A. string
B. paintType
C. supplierType
D. struct
Answer: C
You might also like to view...
____________ reduces the cost of goods and services by using workers and manufacturing facilities in countries with inexpensive labor.
Fill in the blank(s) with the appropriate word(s).
Define an exception class called DimensionException to use in the driver program from Programming Project 4 in Chapter 8. Modify that driver program to throw and catch a DimensionException if the user enters something less than or equal to zero for a dimension.
This project is fairly simple. The DimensionException class is written to accept a String and an integer so the message can be more helpful (it can display which dimension is invalid and its value). The MoreGraphicsDemo program from Chapter 8 Programming Project 4 is modified to create the version using DimensionException and to be interactive so the exception code can be exercised.