Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 2 KB

README.md

File metadata and controls

13 lines (12 loc) · 2 KB

This are 2 first train apps with GUI written in C++ with object-oriented programming and using QT Creator.

Task of app1:

- rus: - На одном из столов офиса растёт стопка макулатуры и одноразовой посуды. Сотрудники опасаются, что в определённый момент равновесие нарушится и стопка упадёт. Разработайте для них программу, позволяющую воссоздать стопку и определить, находится ли она в равновесии. Стопка падает если центр масс стопки находится вне границы первого листа (или тарелки). 1. Лист бумаги: ширина, высота, толщина, координаты по двум осям 2. Стопка макулатуры (стек кусков бумаги): метод проверки на наличие равновесия 3. Бумажная тарелка: радиус, толщина, координаты по двум осям. Наследовать класс Тарелки и Листа от класса Позиция, содержащего поля: координаты, толщина. - eng: - A stack of waste paper and disposable tableware is growing on one of the office tables. Employees fear that at some point the balance will be disturbed and the stack will fall. Develop a program for them to recreate the stack and determine if it is in balance. The stack falls if the center of mass of the stack is outside the boundary of the first sheet (or plate). 1. Sheet of paper: width, height, thickness, coordinates along two axes 2. Recycled paper stack (stack of pieces of paper): balance test method 3. Paper plate: radius, thickness, coordinates along two axes. Inherit the Plate and Sheet class from the Position class containing the fields: coordinates, thickness.