Question: Write a Java program and associated documentation. Your program will: Print to the screen your name, course, assignment, and the date and time the program

Write a Java program and associated documentation. Your program will:
Print to the screen your name, course, assignment, and the date and time the program is run
Prompt the user to enter the total number of chickens on the farm.
Prompt the user to enter the number of chickens on the farm who are roosters.
Prompt the user to enter the percentage chance any random chicken lays an egg in a day.
Prompt the user to enter the number of days.
Print to the screen the estimated number of eggs that will be produced on the farm.
The calculation: (number of chickens number of roosters)*(percentage chance of laying an egg)*(number of days). Note that the percentage chance is a value between 0.0 and 1.0.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!