На паскале ! определить количество посетителей салона, которых успеет обслужить мастер-стилист, если его рабочий день составляет t часов и известна продолжительность (в минутах) обслуживания каждого посетителя очереди (вводится пользователем).
Var t,m,k:integer; begin write('Введите продолжительность рабочего дня мастера (час) = '); readln(t); write('Введите время обслуживания посетителя (мин) = '); readln(m); k:=t*60 div m; writeln('Количество обслуженных посетителей = ',k); end.
Не указано, какая используется СУБД, ниже запросы подойдут для Postgresql: 1. select article.id from article where article.text like '%beta%' or '%4%' 2. select article.id from article where comments.text is NULL and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id 3. select users.name from users where users.id=article.user_id and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id 4. SELECT article.id, COUNT(comments.id) AS "CNT" from article, comments where article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id
Не указано, какая используется СУБД, ниже запросы подойдут для Postgresql: 1. select article.id from article where article.text like '%beta%' or '%4%' 2. select article.id from article where comments.text is NULL and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id 3. select users.name from users where users.id=article.user_id and article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id 4. SELECT article.id, COUNT(comments.id) AS "CNT" from article, comments where article_comment_association.article_id=article.id and article_comment_association.сomment_id=comments.id
begin
write('Введите продолжительность рабочего дня мастера (час) = ');
readln(t);
write('Введите время обслуживания посетителя (мин) = ');
readln(m);
k:=t*60 div m;
writeln('Количество обслуженных посетителей = ',k);
end.