The program that calculates the amount of money a person would earn over a period of time if his or her salary as well as other factors inclusive is written below.
The raw form of the program is:
#include <iostream>
using namespace std;
int main(){
const int increment=2;
int day;
float penny=.01,
total=0.0;
cout <<"How many days have you worked? ";
cin >>day;
while (day<1){
cout<<"The number must be greater than 1.\n";
cout<<"Enter again: ";
cin >> day;
}
for (int i=1; i<=day;i++){
total+=penny;
cout <<" Day "<< i <<" "<< " $"<<penny<<endl;
penny*=increment;
}
cout<<"Total salary for "<<day <<" days = $" <<total<<endl;
Learn more about program from
https://brainly.com/question/23275071
#SPJ1