schedule of the cinema
In the programming language C or C++ you need to write a console program that makes the schedule of the sessions for the cinema.At the start of the program receives the number of entrance - the number of the halls of the cinema.After this, the user enters another number - the number of films in the procat and simultaneously enters the name and duration (in minutes) for each film.In response to the received information, the program forms and sets out the optimal schedule of the sessions of each hall in the format:
Room 1 :
10:00 - 11:30 King of the Lions
11:30 - 14:00 Terminator
14:00 - 15:30 King of the Lions
The optimum is the schedule in which the rooms are placed without the minimum time.The cinema works from 10:00 to 20:00.The time between sessions can be ignored.Additional tasks:
Add to the program the ability to download the schedule into the file, when writing the command "save" in any combination of string and text characters (Save, SAVE, sAvE...) after the schedule is removed by the program.Change the program in such a way that, if possible, each film is meeting at least 1 time (it is enough for the film to be present in one of the halls).Change the program so that the schedules of sessions in different rooms do not repeat.Differences in one session or in their order.The program will receive at least two rental tickets for entry.
The film.I did a part of the work, but I was confused in both versions in C and C++.It is desirable not only to perform the task, but also to give explanations, as and what, at least in the comments.
Applications 2
Client's review of cooperation with Nazar Semenishin
schedule of the cinemaThey easily found mutual understanding, quickly achieved the final result.
![]()
Freelancer's review of cooperation with client
schedule of the cinemaThe project is quite easy and with signs of a combination task. The buyer allowed to resolve it as simple as possible, but several times asked to change the code.
-
726 42 0 1 Good day, please, I will be happy to collaborate. I’ve been writing C++ for a long time.
-
378 85 3 6 Good day, I will write on C# (as C, but withdraw by other operators(in this task)) comments in the code + oral explanation if necessary
-
461 41 1 Hi, I can do it on C++, write to me in a telegram (indicated in the profile), or here on the site. I will be glad to help you.
-
Мелочь, которая не сильно поможет справиться с заданием, но все же...
С 10:00 до 20:00- это 600 минут, а не 540, как указано в Вашем коде. -
Это учебное задание?
Или прототип для промышленной разработки?
Какие-нибудь методички есть? Или можно использовать любые средства (в том числе Генетические алгоритмы, ИИ и т.п.)?
-
Еще одно уточнение:
"Измените программу таким образом, чтобы расписания сеансов в различных залах не повторялись. Достаточно отличия в один сеанс или в их порядке."
Речь идет о том, чтобы сами фильмы не повторялись в разных залах? Или чтобы порядок длительностей фильмов не повторялся (чтобы в разных залах время начала и конца сеанса были разными)?
Если речь идет о длительностях, то что делать, если все фильмы одинаковой длительности (как их не крути - все длительности одинаковые, а значит будут повторяться)? -
Current freelance projects in the category C & C++
Reverse engineering of console utilities for querying SSD controllers (Flash ID)1. Purpose of the work Extraction of the application programming interface (API) for interaction with SSD/NVMe controllers from the provided set of console utilities (Phison, Silicon Motion, Realtek, Maxiotek, Marvell, JMicron, etc.). The result should be working code in C/C++… C & C++, Desktop Apps ∙ 3 days 9 hours back ∙ 5 proposals |
Development of a Minecraft Java Seed Map / Seed Viewer for the websiteDevelopment of Minecraft Java Seed Map / Seed Viewer for the websiteProject Description A browser-based tool Minecraft Java Seed Map / Seed Viewer needs to be developed, which will work on our website and allow the user to enter a seed from Minecraft Java Edition and view an… C & C++, HTML & CSS ∙ 3 days 16 hours back ∙ 14 proposals |
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x)
22 USD
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x) on the identical hardware platform (ESP32 + SX1268, 2W) based on the criteria of range, throughput, link stability, and power consumption. Conduct tests with… C & C++, C# ∙ 7 days 23 hours back ∙ 2 proposals |
Consultation and audit of the current project on Odoo 19 Community EditionWe are looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition, including using Claude Code. We need a specialist who has successfully implemented projects in Odoo and practical experience in development using Claude Code. Important: we only… C & C++, Javascript and Typescript ∙ 11 days 1 hour back ∙ 8 proposals |
Software development for Arduino (RF modules 3–7.5 GHz, automatic frequency scanning)It is necessary to develop a system on Arduino for the automatic search of active analog video signals and the automatic tuning of the transmitter to the detected frequency.It is planned to use three separate transceiver modules: 3000–4200 MHz; 4900–6000 MHz; 6100–7500… C & C++, Embedded Systems & Microcontrollers ∙ 12 days 1 hour back ∙ 5 proposals |