Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a for or while loop that displays a table with the 12 Chinese zodiac signs by using the images provided as column headers and
Write a for or while loop that displays a table with the 12 Chinese zodiac signs by using the images provided as column headers and with the years displayed below the appropriate column heading. Begin the table with the year 1912 and end with the current year. You can use the modulus operator to determine the number of columns in each table's row. The animals of the Chinese zodiac are in the following order:
Rat
Ox
Tiger
Rabbit
Dragon
Snake
Horse
Goat
Monkey
Rooster
Dog
Pig
Rat 1912 1924 1936 1948 1960 1972 1984 1996 2008 Ox 1913 1925 1937 1949 1961 1973 1985 1997 2009 Tiger Rabbit 1914 1926 1938 1950 1962 1974 1986 1998 1915 1927 1939 1951 1963 1975 1987 1999 Dragon Snake 1916 1928 1940 1952 1964 1976 1988 2000 1917 1929 1941 1953 1965 1977 1989 2001 Dog Horse Goat Monkey Rooster 1918 1930 1942 1954 1966 1978 1990 2002 1919 1931 1943 1955 1967 1979 1991 2003 1920 1932 1944 1956 1968 1980 1992 2004 1921 1933 1945 1957 1969 1981 1993 2005 1922 1934 1946 1958 1970 1982 1994 2006 A Pig 1923 1935 1947 1959 1971 1983 1995 2007
Step by Step Solution
★★★★★
3.42 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
Heres an example in Python using a for loop Chinese zodiac signs zodiacsigns Rat Ox Tiger Rabbit Dra...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started