Home
О нас
Products
Services
Регистрация
Войти
Поиск
Markova1Marina
@Markova1Marina
August 2022
1
3
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
petyaGavrikov
Verified answer
Var x,y,x0,xn,h:real; n,i:integer;
begin
x0:=-5; xn:=10; h:=0.5;
n:=round((xn-x0)/h)+1;
x:=x0-h;
writeln(' x y');
for i:=1 to n do
begin
x:=x+h;
if x<-4
then y:=-x
else if x<7 then y:=2.87*x
else y:=x+1.8;
writeln(x:4:1,y:7:2);
end;
end.
Результат:
x y
-5.0 5.00
-4.5 4.50
-4.0 -11.48
-3.5 -10.05
-3.0 -8.61
-2.5 -7.18
-2.0 -5.74
-1.5 -4.31
-1.0 -2.87
-0.5 -1.44
0.0 0.00
0.5 1.44
1.0 2.87
1.5 4.31
2.0 5.74
2.5 7.18
3.0 8.61
3.5 10.05
4.0 11.48
4.5 12.92
5.0 14.35
5.5 15.79
6.0 17.22
6.5 18.66
7.0 8.80
7.5 9.30
8.0 9.80
8.5 10.30
9.0 10.80
9.5 11.30
10.0 11.80
0 votes
Thanks 0
More Questions From This User
See All
Markova1Marina
August 2022 | 0 Ответы
4)+1...
Answer
Markova1Marina
August 2022 | 0 Ответы
paskal avsvvesti tri celyh polozhitelnyh chisla abccltabuvelichit t
Answer
Markova1Marina
July 2022 | 0 Ответы
paskal avs 1vvedite massiv iz 5 elementov s klaviatury i najdite kolichestvo el
Answer
Markova1Marina
July 2022 | 0 Ответы
dlya peredachi dannyh ispolzuetsya 8 bitovoj kod v kotorom mladshie 7 bit eto asc
Answer
Markova1Marina
April 2022 | 0 Ответы
ispolzuya funkciyu najti vse avtomorfnye chisla iz promezhutka ot a do b avtomorfn
Answer
Markova1Marina
October 2021 | 0 Ответы
pomogite vyrazhenie s foto zapisat v paskale avs
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
Verified answer
Var x,y,x0,xn,h:real; n,i:integer;begin
x0:=-5; xn:=10; h:=0.5;
n:=round((xn-x0)/h)+1;
x:=x0-h;
writeln(' x y');
for i:=1 to n do
begin
x:=x+h;
if x<-4
then y:=-x
else if x<7 then y:=2.87*x
else y:=x+1.8;
writeln(x:4:1,y:7:2);
end;
end.
Результат:
x y
-5.0 5.00
-4.5 4.50
-4.0 -11.48
-3.5 -10.05
-3.0 -8.61
-2.5 -7.18
-2.0 -5.74
-1.5 -4.31
-1.0 -2.87
-0.5 -1.44
0.0 0.00
0.5 1.44
1.0 2.87
1.5 4.31
2.0 5.74
2.5 7.18
3.0 8.61
3.5 10.05
4.0 11.48
4.5 12.92
5.0 14.35
5.5 15.79
6.0 17.22
6.5 18.66
7.0 8.80
7.5 9.30
8.0 9.80
8.5 10.30
9.0 10.80
9.5 11.30
10.0 11.80