Предмет: Информатика, автор: Аноним

Помогите, кому не трудно) Срочно! Ерунду всякую не писать! Выполнять в Паскале) Спасибо))



Задание 1.

Опишите комбинированный тип для записей, содержащих следующие данные учеников: фамилию, имя, год рождения, рост (в сантиметрах), вес (в килограммах).



Задание 2.

Опишите содержимое текстового файла, из которого будут вводиться данные, соответствующие описанию из предыдущего задания, для нескольких учеников класса (не менее 5).

Ответы

Автор ответа: shavrinatv
1

Ответ:

const

n=5;

type

t_spisok=record

surname:string[20];

name:string[20];

YearBorn:string[4];

ves:integer;

Rost:integer;

end;

mas=array  [1..n] of t_spisok;

var

spis1:mas;

f: file of t_spisok;

i:integer;

Объяснение:

program spisok1;

const

n=5;

type

t_spisok=record

surname:string[20];

name:string[20];

YearBorn:string[4];

ves:integer;

Rost:integer;

end;

mas=array  [1..n] of t_spisok;

var

spis1:mas;

f: file of t_spisok;

i:integer;

// То что ниже - это для проверки

begin

Assign(f,'klass9.dat');

Rewrite(f);

for i:=1 to n do begin

with spis1[i] do begin

Write('фамилия: ');

ReadLn(surname);

Write('имя: ');

ReadLn(name);

Write('год рождения: ');

ReadLn(yearborn);

Write('вес(кг): ');

ReadLn(ves);

Write('рост(см): ');

ReadLn(rost);

end;

   Write(f, spis1[i]);

 end;

 Close(f);

Assign(f,'klass9.dat');

Reset(f);

writeln ('фамилия':20,'имя':20, 'год рожд.':10,' вес ':4,' рост ':4);

i:=1;

while not Eof(f) do begin

Read(f, spis1[i]);

 with spis1[i] do begin

writeln (surname:20,name:20,YearBorn:10,ves:4,rost:4);

end;

i:=i+1;

end;

close(f);

readln;

end.


isakuoy: а второе задание где
shavrinatv: второе - всего-то нужно описать файл: f: file of t_spisok; а t_spisok уже описано віше
Похожие вопросы
Предмет: Английский язык, автор: mishayt20102010
ПАМАГИТЕЕЕЕ ПАЖЭЭЭЭЭЭЭ(((((((((((((((((((((
Test 9 5 класс

1 Переведи

булочная
аптека
овощной магазин
ювелирный магазин
газетный киоск
картинная галерея
парк аттракционов
фильм ужасов
боевик
музыкальный магазин
магазин одежды

2 Вставь нужное слово

• music • aspirin • buy • clothes • pair • fast • floors • florist’s • games
The ………. shop has got the dress I like.
What do you want to ………. ?
You will find ………. at the chemist’s.
I’m hungry. Let’s eat at the ………. food restaurant.
I need some flowers. Where's the ………. ?
I want to buy a ………. of shoes.
Brown’s has six ......... and a basement.
You can find .......... at Toyland.
U2’s new CD is at the ......... shop.

3 Вставь a, an or the.

Every year, Sam gets ..... electronic game for his birthday
Kate always has ..... party on her birthday.
Is there ..... toy shop in this town?
I have ..... apple every day.
I'm going to the chemist's on ..... fifth floor.
I like to go shopping at ..... weekend.
I want to buy ..... new pair of shoes.

4 Дополни предложения с must or mustn’t.

You ………. feed the animals at the zoo. It’s dangerous.
You .......... be quiet in this library.
We .......... take photos. It’s bad for the paintings.
They .......... eat inside the gallery.
You .......... leave before 6 o’clock or you’ll be late.
You .......... throw rubbish in the bin.
You .......... talk in the theatre.

5 вставь глаголы в скобках in Past Simple.
Kate ....... (buy) a dress yesterday.

The cat ........ (not/eat) any fish last week.
Tom and Jane ......... (be) at the theatre last month.
..... you ....... (watch) TV last night?
Jill ........ (cook) meat yesterday.
Peter ....... (not/be) at the zoo yesterday.
Where ...... (see) Helen last week?
He ...... (write) a letter last Sunday.
.... you .... (go) to school last Friday?
They ..... (not/be) at home yesterday.
Предмет: Математика, автор: sasasirena87
Предмет: Английский язык, автор: vanesamaldini7
Выберите подходящую форму глагола

СРОЧНО ПРОШУ ПОМОГИТЕ


1. He won't buy/doesn't will buy you this ring. It's too expensive

2. I not will help/ won't help you with your work. Do it yourself!

3. I think they will to hire/ will hire you. When they will tell/telling you their decision?

4. How old you will be/ will you be?

5. I will be/will very busy tomorrow.

6. I'm sure she will gets/will get back to you.

7. Can you make/ Will you make me a ham sandwich, please.

8. When she come to see you, she will bring/ bring you this book.

9. I hope the rain finished/ will finish soon. 10. James breaks/will break his promise, won't/does he? 11. We shall not go/don't go to the seaside tomorrow. 12. Peter and Mark are always late. They won't arrive/didn't arrive until 8 p. m. 13. I don't think I will drink/am drinking carrot juice. I simple don't like it.

2 14. My boss will return/is returning to the office in several minutes.

15. Where we live/ will live in the future? 16. Molly likes history of nature. I think she goes/will go to the Canadian Museum of Nature. 17. It's cold? Shall/ Do I close the window? 18. My sister doesn't / will not come home early today. 19. Linda is sick. I don't think she goes/ will go to the cinema with boyfriend. 20. The train is late. I will not/not be home until 9 p. m.





Напишите вопросительные формы.PAST SIMPLE Правильные глаголы.
Пример: You called —> Did you call

1. He stopped
2. Anna played
3. They enjoyed
4. We liked
5. He danced

6. David carried
7. You visited
8. Kate changed
9. She used
10. They tried
Предмет: Литература, автор: alexs22
Предмет: Математика, автор: Рафа06