Write a C++ program using class for the following:
A cellphone is a device that can be used to make or receive calls, or send or receive text messages. A cellphone can be turned on or off. The phone can be used to take or display photographs; it has a battery indicator, and in indicator of the strength f the signal that it receives. There are ways to control the brightness of the display and sound volume. The user can set the background picture on the main display.
This is not some trivial program because it sounds like you have to use a GUI interface to display photos and the battery indicator.
Since this is a phone app it screams object oriented to me.
I would design a Phone class first and foremost:
class CellPhone
{
public:
CellPhone( ); // constructor
bool TurnOn( ); // returns true if turned on, false if already on
bool TurnOff( ); // returns true if turned off, false if already off
void MakeCall( ); // makes a call
void ReceiveCall ( ); // receives a call
void TakePic( ); // takes a pic
void DisplayPic(int pic); // displays a pic by its id
int BatteryStatus( ); // returns battery status (1-10)
void SetBackground(string imagePath); // sets background from image path
SetBrightness(int setting); // sets brightness
int GetBrightness( ); // returns brightness setting
SetSound( int setting); // sets sound
int GetSound( ); // returns sound setting
};
This is a rough draft of what you need. You need sound like someone who has no idea how to accomplish this task and that is very unfortunate but it is what it is. The GUI aspect is not difficult to learn and neither is manipulating the media and filepaths but if you don't even have a foundation in basic programming than you certainly have your work cut out for you.
@IceThatJaw:
I suspect that you (mostly) just gave him the solution. I have a hunch that the exercise wasn't to implement a functional phone app, but to design a class to represent a phone.