A toll bridge charges $3.00 for passenger cars, $2.00 for buses, $6.00 for trucks under 10,000 pounds, and $10.00 for trucks over 10,000 pounds. The problem is to
write a program to compute the toll using a case construct. Use interactive input if
it is available. The input data consists of first the letter C, B, or T for car, bus, or
truck, respectively. Either uppercase or lowercase letters are permitted. If the class
is T (truck), then prompt the user for another character that is either “
less than 10,000 pounds) or “>” (meaning greater than 10,000 pounds). The following are sample executions: