Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Dev C++ Project InstructionsCreate the PLD10-4 application . MAKE SURE NO SPACES ARE IN THE DIRECTORY PATH OR FILE NAME. Specifically perform the following. Create

Dev C++ Project InstructionsCreate the "PLD10-4" application . MAKE SURE NO SPACES ARE IN THE DIRECTORY PATH OR FILE NAME. Specifically perform the following.

Create a Folder, "PLD10-4" (e.g., "C:\COP1000\PLD10-4") Copy "Computer.h" & "Computer.cpp" files (located in "Project15" folder) into the "PLD10-4" folder.

image text in transcribedimage text in transcribedimage text in transcribed
#include #include #include "Computer.h" using namespace std; Computer::Computer( ) { make=""; // Make model=""; // Model memory=0; // RAM } void Computer::setMake(string ma) { make = ma; } void Computer::setModel(string mod) { model = mod; } void Computer::setMemory(int mem) { memory = mem; } string Computer::getMake( ) { return make; } string Computer::getModel( ) { return model; } int Computer::getMemory( ) { return memory; } void Computer::displayComputer() { cout using namespace std; #ifndef _Computer #define _Computer class Computer { private: string make; // computer make string model; // computer model int memory; // computer RAM public: Computer( ); void setMake(string ma); void setModel(string mod); void setMemory(int mem); string getMake( ); string getModel( ); int getMemory( ); void displayComputer(); }; #endif // Pseudocode PLD Chapter 10 #4 pg. 461 // Start // Declarations // Computer myComputer // string make // string model // int memory // output "Please enter the Make: " // input make // output "Please enter the Model: " // input model // output "Please enter the Amount of Memory: " // input memory // Set the Make for myComputer // Set the Model for myComputer // Set the Amount of Memory for myComputer // output "Make: ", myComputer.getMake() // output "Model: ", myComputer.getModel() // output "Amount of Memory: ", myComputer.getMemory() // Stop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

8 What are the main features of efficient customer response?

Answered: 1 week ago