Academic coaching, editing, and research guidance for university students.

c++ code editing, programming assignment help

1 min read
  

i am trying to create this code, but i am kind of stuck here, getting a wrong output. i need you to fix this program, and i need to use the recursing function.You have just gotten a new swimming pool and need to add chlorine to the water. You add 32 ounces of chlorine the first week and 14 ounces every week thereafter. Each week 40% of the chlorine in the pool evaporates.and this is my code i’ve created.———————————-#include
#include
usingnamespacestd;
void chlorineLeft(int n, double t, int i){ // n is the number of weeks

    t = (t + 14 * n) – (.40) * (t + 14 *i); // t is the total chlorine left
    i++;
    cout << "chlorine left: " << t << endl;     if(i

Academic integrity note

Use this educational resource to build your understanding. Follow your institution’s rules and cite sources appropriately.

Want feedback on your own work?

Request Academic Support

Leave a Reply

Your email address will not be published. Required fields are marked *