Professional Documents
Culture Documents
Type Code Movie Category: A C D F H M
Type Code Movie Category: A C D F H M
A video rental shop uses the following type of classification scheme for movie video CD’s:
a. Write an if ..else statement that tests the value of the type code, increments the number of
videos of the appropriate category by one and computes the total number of videos in the
inventory. Your code should print a warning message if the type code value is in error.
Input : 3 7
Output : 7 is an odd number and is bigger
Input : 8 2
Output: 8 is an even number and is bigger