Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Explore a wealth of knowledge from professionals across different disciplines on our comprehensive platform. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.

Beginners’ computer science!
Language- Java

Details of assignment-

3) As a coder at a pharmaceutical company,
you've been tasked with writing a program that will determine how long a particular drug may stay on shelves to be sold in
stores. Assume this drug loses 12% of its effectiveness every month (save into a
variable, but you don't have to get this value from the keyboard), and must be
discarded when effectiveness dips below 50%. Write a program that prints how many months the drug can remain on
shelves.

Please leave a comment if you would like a sample run!