Hi all.
I am writing a program for C++ that should predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average daily poulation increase (as a percentage) and the number of days they will multiply. A loop should display the population for each day.
I am a very confused girlie and could REALLY use some help.
This is what I have so far:
#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main () { int orgs, avg, days, percent; //Ask User for # of Organisms cout << "Enter the starting number of organisms: " << orgs << endl; cin >> orgs //Ask User for % Poulation Increase cout << "Enter the average daily population incease (as a %): " << percent << endl; avg = (percent/100) cin >> percent //Ask User for # Days to Multiply cout >> "Enter the number of days to multiply: \n\n\n" << days << endl; cout << " Population Chart\n\n" cout << "======================================\n\n" cout << " DAY # Population\n" while (days++ avg) cout <<
Thanks