السلام عليكم اخواني
بليززز اختكم محتاجه مساعدتكم بالواجب وتسلييييمه قررررريب
عندي سؤاليييين مو عارفه اشلون احلهم
ياليت تساعدوني بالكود
الله يرحم والدينكم الي يساعدني
ويجزيه الجنه ووالديييييه
Write a C++ code to implement the following application. Make sure to define all variables that you will use. The title of the application is "Decimal-To-Binary" and it should appear on the title bar of the form. The "Print" button is first disabled. You should use well designed form which is more suitable to the users:
Enter a positive integer number in the edit box between 0 and 255 ([0,255]). If the number is outside the given range then the edit box will be cleared and the focus will be on the same edit box in order to enter a new valid value.
Write a C++ code to implement the following application:
If you press on “Calc” button:
1. If the entered integer number is wrong then an error message will be printed in the memo (please use the following massage: “Ops! Wrong entry, PLS enter number between 0 and 255.. Retry again”), the edit box will be cleared and the focus will be on it.
2. If the entered integer number is correct, then the memo will be cleared and a granted message will be printed on it (please use this massage: “Accepted Entry... You can print now”). The "Print" button will be enabled. The number will be represented by its equivalent binary number, the edit box will keep the valid integer number, and the focus will be on it.
If you press on "Print" button,
1. The resulted binary number will be printed on the memo side by side after the valid granted message that you entered in the memo, keeping one empty line between them.
2. The enabled "Print" button will be disabled again.
If you press on “Exit” button, the application will be closed.
The run time design when the value 4 is entered is shown as below.
والسؤاااااااال الثاني
This question is based on Block III – Unit 1 (Graphical User Interfaces), Block III – Unit 2 (Designing Interfaces), and Block III – Unit 3. It is intended to test your ability to work with Borland’s IDE to develop a simple application and make use of the IDE’s help system.
Given the following form at run time
The form distinguishes between three parts of the form from left to right based on the Xcoordinates: the first part is between 50 and 200, the second part is between 200 and 300, and the third part is between 300 and 500. The points in the middle of the form have the Xcoordinates of 50, 100, ....... , 500.
Write code for the OnPaint event handler to draw the above shape using a maximum of 1 for loop, 3 if statements, 3 MoveTo methods, and only the methods MoveTo and LineTo of Canvas.
اررررجوووا المساعده


