Write a java code that will calculate the number of cows for a period of time entered by the user eg. User enters 10 cow
Posted: Sat May 14, 2022 7:06 pm
Write a java code that will calculate the number of cows for a period of time entered by the user eg. User enters 10 cows for 2 years 10(initial number of cows enter by user) x 90 % (in heat) = 9 9 x 90 % (fertile cows) = 8 8 x 95 %( serviced by bull) = 7 10 + 7 = 17 -> Number of cows for the first year if user has ten in 17 x 90 % = 15 15 x 90 % = 13 13 x 95 % = 12 17 + 12 = 29 -> Number of cows for the second year if user started with ten leto