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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!