A chemical technician is filling one of 3 tanks of various sizes with a chemical. Write a program that will prompt a user
to type in the number of gallons that are being put into a tank AND prompt the user to enter the tank number(1, 2, or
3) that they are putting the chemical into.
Using a switch statement, determine the number of gallons that can be placed into this tank once the technician is done
filling the tank in question. Print to the console screen, the number of gallons that be placed into the tank, include the
tank number in the output statement. The output should look something like this:
"Tank #2 can take 2000 gallons before it is full."
The user fails to enter a valid tank number, the program should print to the screen:
"Invalid tank number. Please try the program again"
Use the table below to determine the capacity of each of the three tanks:
Tank number
1
2
3
Capacity(in gallons)
5000
12000
8000
Test your program with the following data:
6000 gallons into tank 2
2000 gallons into tank 1
4000 gallons into tank 4