Hey everyone,
So I'm curious how I should approach this math problem. Basically, a person wants to know how much artificial sweetener in a diet soda they can drink without dying (it's from a book...I'm not crazy...). And the input for this program is the amount of artificial sweetener needed to kill a mouse, the weight of the mouse, and the weight of the person who wants to know. And also the problem says to assume that the diet soda contains .001 percent of sweetener. Could someone possibly push me in a good direction? I've been looking at the problem for so long that I'm not even reading the words anymore haha.
---------------------------------------------------------------------------------
OH...and also, does anyone know of a good approach to convert military time (24 hour) to civilian time (12 hour) in terms of a program? I was thinking to simply check if 24 hour time entered is greater than or equal to 1300 AND less than or equal to 2400 and subtract 1200 if true, also, to make sure my am/pm boolean variable value is correct I would also have to make another if to check if the 24 hour time is greater than 1200....sound good so far? The only other issue I was having is how could I convert the new 12 hr time to a hh:mm:ss format? As usual, I'm not expecting answers (that doesnt help any), I'm looking for a good push. Thank you so much for reading all these words -Chap