{"id":21170155,"url":"https://github.com/novikovadaria/interim_certification_java","last_synced_at":"2025-03-14T17:24:31.840Z","repository":{"id":153471885,"uuid":"614804308","full_name":"novikovadaria/interim_certification_Java","owner":"novikovadaria","description":"Промежуточная аттестация на программе Разработчик онлайн университета GeekBrains |  Intermediate certification at the GeekBrains Online University Developer Program ","archived":false,"fork":false,"pushed_at":"2023-03-16T11:03:51.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T10:50:59.581Z","etag":null,"topics":["certification-exam","geekbrains","java","oop"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/novikovadaria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-16T11:01:50.000Z","updated_at":"2023-07-30T15:17:58.000Z","dependencies_parsed_at":"2023-05-27T09:45:21.284Z","dependency_job_id":null,"html_url":"https://github.com/novikovadaria/interim_certification_Java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novikovadaria%2Finterim_certification_Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novikovadaria%2Finterim_certification_Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novikovadaria%2Finterim_certification_Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novikovadaria%2Finterim_certification_Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/novikovadaria","download_url":"https://codeload.github.com/novikovadaria/interim_certification_Java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243616672,"owners_count":20319939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["certification-exam","geekbrains","java","oop"],"created_at":"2024-11-20T15:56:41.881Z","updated_at":"2025-03-14T17:24:31.834Z","avatar_url":"https://github.com/novikovadaria.png","language":"Java","readme":"# Task 2\n\nIt is necessary to write a program for drawing toys in a children's goods store.\nWe try to use OOP and work with files.\nIf you haven't studied any item and don't know how to do it, then you can do it your own way. For example, if someone did not have OOP in the course, then we use lists\\arrays\\ dictionaries\n\n## Desirable functionality of the program:\nThe program must have at least one class with the following properties:\ntoy id,\ntext name,\nquantity\nfrequency of falling out of the toy (weight in % of 100)\n\nMethod of adding new toys and the possibility of changing the weight (frequency of falling out of the toy)\nThe opportunity to organize a raffle of toys.\nFor example, as follows:\nUsing the method of selecting a prize toy, we get this prize toy and write it to the list\\array.\nThis is a list of prize toys that are waiting to be issued.\nWe should also have a method – getting a prize toy.\nAfter calling it, we remove the first toy from the list\\array and shift the array. And we write this toy to a text file.\nDo not forget to reduce the number of toys\n\n# Задание 2\n \nНеобходимо написать программу – розыгрыша игрушек в магазине детских товаров.\nСтараемся применять ООП и работу с файлами.\nЕсли какой-то пункт не изучали и не знаете, как сделать, то можете сделать своим способом. Например, у кого в курсе не было ООП, то применяем списки\\массивы\\словари\n \n## Желательный функционал программы:\nВ программе должен быть минимум один класс со следующими свойствами:\nid игрушки,\nтекстовое название,\nколичество\nчастота выпадения игрушки (вес в % от 100)\n \nМетод добавление новых игрушек и возможность изменения веса (частоты выпадения игрушки)\nВозможность организовать розыгрыш игрушек.\nНапример, следующим образом:\nС помощью метода выбора призовой игрушки – мы получаем эту призовую игрушку и записываем в список\\массив.\nЭто список призовых игрушек, которые ожидают выдачи.\nЕще у нас должен быть метод – получения призовой игрушки.\nПосле его вызова – мы удаляем из списка\\массива первую игрушку и сдвигаем массив. А эту игрушку записываем в текстовый файл.\nНе забываем уменьшить количество игрушек\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovikovadaria%2Finterim_certification_java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovikovadaria%2Finterim_certification_java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovikovadaria%2Finterim_certification_java/lists"}