Home
О нас
Products
Services
Регистрация
Войти
Поиск
aleksandraliva
@aleksandraliva
December 2021
1
11
Report
Помогите плииз напишите программу
Please enter comments
Please enter your name.
Please enter the correct email address.
Agree to
terms of service
You must agree before submitting.
Send
Answers & Comments
MaxLevs
C++20
Код:
#include <iostream>
#include <iomanip>
double frand(double min, double max)
{
auto f = ((double) rand() / (RAND_MAX));
return min + f * (max - min);
}
template <typename T, typename Func>
void print_arr(T cont, int n, Func printer) {
for (auto x = 0; x < n; ++x) {
printer(x, cont[x]);
}
}
int main() {
constexpr short n = 17;
constexpr double min = 37.0;
constexpr double max = 38.0;
constexpr int eps = 1;
std::srand(std::time(nullptr));
double t[n];
for (double & x : t) {
x = frand(min, max);
}
auto printer = [](int x, double t){std::cout << 12 + x << " сентября: t = " << std::fixed << std::setprecision(eps) << t << std::endl;};
print_arr(t, n, printer);
return 0;
}
0 votes
Thanks 0
More Questions From This User
See All
aleksandraliva
August 2022 | 0 Ответы
umniki i umnicy pomogite pozhalujstv tupomu cheloveku
Answer
aleksandraliva
August 2022 | 0 Ответы
lyudi pomogite pozhalujsta nomer 9 pozhalujsta s podrobnym obyasneniem tolko eta
Answer
aleksandraliva
August 2022 | 0 Ответы
pomogite pozhalujsta s tablicej pozhalujstaa4f85c4f0018c5cc772fe4f71a144f00 37187
Answer
aleksandraliva
August 2022 | 0 Ответы
ch tolko pozhalujst asostavte tablicu pozhalujsta umolyayu pomogite
Answer
aleksandraliva
August 2022 | 0 Ответы
4 vy moya nadezhda pozhalujsta pomogite srochno
Answer
aleksandraliva
August 2022 | 0 Ответы
postrojte grafik funkcii yx 2 pozhalujsta pomogite srochno
Answer
aleksandraliva
August 2022 | 0 Ответы
nomer 1 srochnocda59ff77399e189be8e98298ebf17ee 75217
Answer
aleksandraliva
August 2022 | 0 Ответы
funkciya zadaa formuloj fx 4x1 najdite znachenie vyrazheniya f 1f0 pomogi
Answer
aleksandraliva
August 2022 | 0 Ответы
srochno oochen nuzhno grafik linejnoj funkcii y 3x prohodit cherez tochku ordin
Answer
aleksandraliva
August 2022 | 0 Ответы
pozhalujsta nado oochen zapishite formulu i postrojte grafik linejnoj funkciiecc589ea6c45aa11d6e32808e47c31ef 3598
Answer
рекомендуемые вопросы
rarrrrrrrr
August 2022 | 0 Ответы
o chem dolzhny pozabotitsya v pervuyu ochered vzroslye pri organizacionnom vyvoze n
danilarsentev
August 2022 | 0 Ответы
est dva stanka na kotoryh vypuskayut odinakovye zapchasti odin proizvodit a zapcha
myachina8
August 2022 | 0 Ответы
najti po grafiku otnoshenie v3v1 v otvetah napisano 9 no nuzhno reshenie
ydpmn7cn6w
August 2022 | 0 Ответы
Choose the correct preposition: 1.I am fond (out,of,from) literature. 2.where ar...
millermilena658
August 2022 | 0 Ответы
opredelite kak sozdavalas i kto sozdaval arabskoe gosudarstvo v kracii
MrZooM222
August 2022 | 0 Ответы
ch ajtmanov v rasskaze krasnoe yabloko ispolzuet metod rasskaz v rasskaze opi
timobila47
August 2022 | 0 Ответы
kakovo bylo naznachenie kazhdoj iz chastej vizantijskogo hrama pomogite pozhalujsta
ivanyyaremkiv
August 2022 | 0 Ответы
moment. 6....
pozhalujsta8b98a56c0152a07b8f4cbcd89aa2f01e 97513
sarvinozwakirjanova
August 2022 | 0 Ответы
pomogite pozhalusto pzha519d7eb8246a08ab0df06cc59e9dedb 6631
×
Report "Помогите плииз напишите программу..."
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
Helpful Links
О нас
Политика конфиденциальности
Правила и условия
Copyright
Контакты
Helpful Social
Get monthly updates
Submit
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
C++20
Код: