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  _______?

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
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
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning