Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Your job is to create a program that will allow a user to enter a year. Your program will then give what animal is

image text in transcribed
1. Your job is to create a program that will allow a user to enter a year. Your program will then give what animal is associated with that year in Chinese culture. Create a new Java Class named AnimalOfTheYear within the Lab7 project. 2. You will want to use the algorithm (year-1972) % 12 in order to get a value, then you will want to use the value within a switch statement to output the proper animal for that year at 3. Your output should look similar to the following: This progran wi12 ank for a year and dtaplay vhat aninal it corresponds to 4. Here are some test cases for you: ooster 5. (Optional) This algorithm only works for years after and including 1972, modify it so that it can also accept answers from before 1972 Remember the following things: 1. If your switch statement, or something else we have covered in the labs, does not work, check some examples to see what may be causing it. 2. Good coding style is expected of you, don't forget to 3. You are required to use the switch statement for this 4. Do not hardcode the test cases, your instructor wll try comment. assignment, you will fail this lab if you do not use it. other years to test for functionality

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions

Question

Compute the derivative f(x)=1/ax+bx

Answered: 1 week ago

Question

What is job enlargement ?

Answered: 1 week ago

Question

what is the most common cause of preterm birth in twin pregnancies?

Answered: 1 week ago

Question

2. Compare the sales and service departments at Auto World.

Answered: 1 week ago