#include #include using namespace std; class Computer { public: void setRam(int); void setBrand(string); int getRam() const; string getBrand() const; private: int ram; string brand; }; void Computer::setRam(int ramInComputer) { ram = ramInComputer; } void Computer::setBrand(string brandOfComputer) { brand = brandOfComputer; } int Computer::getRam() const { return ram; } string Computer::getBrand() const { return brand; } int main () { Computer myComputer; string computerBrand; int computerRam; cout << "What is the brand of your computer?" << endl; cin >> computerBrand; cout << "How many megabutes of ram does your computer have?" << endl; cin >> computerRam; myComputer.setBrand(computerBrand); myComputer.setRam(computerRam); cout << "Your computer is a " << myComputer.getBrand() << " with " << myComputer.getRam() << "ghz of ram."; return 0; }