I'm a freshman student, just started learning c language and our instructor asked me to make a program out of a certain problem. Please, can anyone help me make the program?
Here's the problem:
"A government research lab has concluded that certain chemicals commonly used in foods will cause death in laboratory mice. A friend of yours is desperate to lose weight but cannot give up soda pop. Your friend wants to know how much diet soda pop it is possible to drink without result a dying. Write a program to supply the answer. The input to the program is the amount of artificial sweetener needed to kill a mouse, the weight of the mouse, and the weight of the dieter, to ensure the safety of your friend, be sure the program requests the weight at which the dieter will stop dieting, rather than the dieters current weight. Assume that diet soda contains one-tenth of 1% artificial sweetener."
These are the topics that my instructor had discussed to us about C: Algorithm, Flowcharting and Basic program structure and arithmetic operators. These are the only things we could use for the program(no logical operators, loop, array and etc..). Please someone help me make and explain how you come up with the program?