8. Define a structure type catNum to represent a catalog number consisting of a
ID: 3538806 • Letter: 8
Question
8.
Define a structure type catNum to represent a catalog number consisting of a two- or three-character category code followed by an integer. Then, define a structure type catEntry to represent a catalog entry. Each entry has a catalog number, a description, a wholesale price, and a retail price
9. The __________ character breaks a stream into a sequence of lines
10.In evaluating the following logical expression, which are the first and last operations to be performed? (Assume that all operations are eventually carried out.)
c == a + b || a < b * d
B. + first, || last
C. * first, == last
D. + first, == last E. == first, < last 11. For the following definition:
struct catType
{
string name;
char gender;
int age;
bool friendly;
};
The variable declaration ____________ causes the allocation of storage space for one variable of type catType. 12.When a programmer writes a driver and individually tests a single function before inserting the function in a program system, the programmer is performing ____________.
A. bottom-up testing
B. top-down testing
C. stepwise refinement
D. stub design E. system integration 13.In a function that gets a value from the keyboard and communicates that value to the main function via an argument, the argument used is considered a(n) ____________.
A. input argument B. output argument
C. input/output argument
D. local variable E. stub 14. Types______ and ______ are used to declare data streams. 15.The C++ library function ___________ converts a lowercase character to its uppercase equivalent.
Explanation / Answer
8)
struct catNum
{
string number;
};
struct catEntry
{
struct catnum num;
string description;
float wholesale price,retail price;
};
9)
' '
10)
* first, == last
11)
struct catType variable;
12)
bottom-up testing
13)
A
14)
cin cout
15)
toupper
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.