Define a struct, cartype , to store the following data about a car: Manufacturer (string), model (string),
Fantastic news! We've Found the answer you've been seeking!
Question:
- Define a struct, cartype , to store the following data about a car: Manufacturer (string), model (string), model type (string), color (string), number of doors (int), miles per gallon in city (int), miles per gallon on highway (int), year when the car was built (int), and the price (double).
- Consider the following declarations and statements:
Student type student;
Student Type classList(100);
CourseType course;
NameType name;
Mark the following statements as valid or invalid. If invalid, explain why.
a) Student . course (4) . callNum ? ?CSC 2430?;
b) Cin >> student.name;
c) classList [0] ? name;
d) classList [1] . gpa= 3.45;
e) name - classList [15] . name =;
f) student . name = name;
g) cout
h) for (int j ? 0; j
classList [j] . name = name;
i) classList . courses[3] . credits = 3;
j) course = studentType . courses[1];
Related Book For
Business Statistics A First Course
ISBN: 978-0321979018
7th edition
Authors: David M. Levine, Kathryn A. Szabat, David F. Stephan
Posted Date: