Write a declaration for a variable channel that can hold TV channel numbers (1 to 900) and a variable hours_recorded that can hold the number of hours of TV recorded (numbers like 1.0 or 3.5).

LANGUAGE: C++

CHALLENGE:

Write a declaration for a variable channel that can hold TV channel numbers (1 to 900) and a variable hours_recorded that can hold the number of hours of TV recorded (numbers like 1.0 or 3.5).

SOLUTION:



int channel;
float hours_recorded;