jeudi 13 décembre 2018

helpe the Programming c++

Good day everyone I have a c++ programming problem that I need help with Ask people who can and can help answer the body. Thankful

Create a class called Console. Each object in this class is supposed to contain information about a Console page Keep it Console class fields are: 1. Text () Text () The text displayed on the console page ( 2. Font color. Foreground Color () The color of the text displayed on the console ( 3) Background Color () Background color Console screen ( 4. Number of repetitions of the text (n) () The text is displayed in the console several times ( 5. Total number of field changes (nModify) The designed class must have the following capabilities: 1. Every object created from the class by default has a black background color, white font color, Hello World text! , The number of repetitions of text 1, and the total number of changes is 0. 2. The user can specify the font color and background color. The user determines the color by entering the name of a color he does. The colors that the user is allowed to select is shown in figure (1) if color is entered The user was not listed in the color list, the error message is displayed to the user and the default color is set to The color of the console is considered. Figure 1- User selectable colors 3. Each time you change the properties of the console class object, these changes apply to the console page. for example If the user changes the background color property to red, the background color of the console is also red. 4. The total number of changes to object properties are saved. For example, if the user has twice the background color and once the font color There are a total of three changes that can be saved and displayed. 5. The user can change the text property. By changing the text attribute, the console page is cleared and the new text is in As described above, the properties of the object (n) are displayed on the consoles page n number Is( 6. The user can change the number of repetitions of the text. Changing this feature will delete the console page and the text The target is displayed with a number of new replays. to be used. Setter and Getter 7. Be sure to use the functions to initialize and read the value of the fields 8. A method used to erase the object text and the console page. -9 Write a method that executes the background color and font color randomly. 10 - Write a method that uses 10 different background colors and randomly selected font colors And apply a one-second delay on the console screen. For example, by calling the color method first The red background and font color are green, then the console remains in the same color for 1 second, then the color of the background Blue background and yellow font color, and in 10 seconds, ten random color combinations The console page applies. 11 - When the program starts, the user menu is displayed on the console page where the user can view it Select and apply different class methods. For example, by pressing the 1 key you can change the color Background, by pressing the 2 button you can change the font color, by pressing the 3 key, the text can be changed and .... You must take me Design so that all the features described above can be selected by the menu.

Aucun commentaire:

Enregistrer un commentaire