Read the following description carefully: In a Course Management System, the class Course has the following attributes: courseCode, courseName, credit and courseType. Both the courseCode and courseName are String and their length can be of maximum 6 and 30 respectively. Courses can be of either Theory or Lab in type. What should be the data type of credit and course Type, so that an object of Course does not occupy more than 75 Bytes? Q. Data Type for credit and courseType should be______ and _______?
Read the following description carefully: In a Course Management System, the class Course has the following attributes: courseCode, courseName, credit and courseType. Both the courseCode and courseName are String and their length can be of maximum 6 and 30 respectively. Courses can be of either Theory or Lab in type. What should be the data type of credit and course Type, so that an object of Course does not occupy more than 75 Bytes? Q. Data Type for credit and courseType should be______ and _______?
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
Related questions
Question
100%
Read the following description carefully: In a Course Management System, the class Course has the following attributes: courseCode, courseName, credit and courseType. Both the courseCode and courseName are String and their length can be of maximum 6 and 30 respectively. Courses can be of either Theory or Lab in type. What should be the data type of credit and course Type, so that an object of Course does not occupy more than 75 Bytes?
Q. Data Type for credit and courseType should be______ and _______?
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning