Something went wrong. Try again.
A collection of projects I've done for Berks Career and Technology Center Information Technology Programming
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536#include <iostream>
using namespace std;
int main(){
int startingWashers = 0; int boughtWashers = 0; int soldWashers = 0;
cout << "Enter the dishwashers at the start of the month: "; cin >> startingWashers; cout << endl;
cout << "Enter the dishwashers bought: "; cin >> boughtWashers; cout << endl;
cout << "Enter the dishwashers sold: "; cin >> soldWashers; cout << endl;
int totalWashers = startingWashers;
totalWashers += boughtWashers; totalWashers -= soldWashers;
int netWashers = totalWashers - startingWashers;
cout << "There are " << totalWashers << " washers at the end of the month" << endl; cout << "There was a net of " << netWashers << " washers" << endl;
}