giúp mk vs ạ mai mk thi r
Cho tệp so.txt có giá trị sau: 3 4 5 9 10 -5 9. Em hãy viết chương trình đọc tệp so.txt sau đó thực hiện các yêu cầu sau rồi ghi vào tệp kq.txt
- Tính tổng các số chẵn
- Tính tổng các số lẻ
- Tính tổng các số chia hết cho 3
AI GIÚP EM NHANH VỚI Ạ CHIỀU EM THI RỒI
cho tệp SO.TXT gồm nhiều số nguyên viết chương trình đọc dữ liệu từ tệp SO.TXT và lưu vào máy nguyên A
uses crt;
const fi='so.txt'
var f1:text;
a:array[1..100]of integer;
n,i:integer;
begin
clrscr;
assign(f1,fi); reset(f1);
readln(f1,n);
for i:=1 to n do
read(f1,a[i]);
for i:=1 to n do
write(a[i]:4);
close(f1);
readln;
end.
*Viết chương trình ghi hai số 5 và 15 vào tệp so.txt:
const f='so.txt'
var f1:text;
begin
assign(f1,f); rewrite(f1);
writeln(f1,'5 15');
close(f1);
end.
*Viết chương trình tính tổng, hiệu, tích, thương của x,y và in kết quả ra màn hình:
uses crt;
const fi='so.txt'
var x,y:integer;
f1:text;
begin
clrscr;
assign(f1,fi); reset(f1);
readln(f1,x,y);
writeln('Tong la: ',x+y);
writeln('Hieu la: ',x-y);
writeln('Tich la: ',x*y);
writeln('Thuong la: ',x/y:4:2);
close(f1);
readln;
end.
Em biết giờ này hỏi bài là hơi kì ạ. Nhưng mà mai thi mất tiêu r ạ. Các anh chị có thể giúp em vs không ạ. Sáng mai em phải nộp r ạ.😖😖😖
viết ctrinh n≤ 10000 nguyên dương. Viết ra số lượng số nguyên tố và 10 giá trị số nguyên tố lớn hơn cả
Dữ liệu vào: file B5.INP.TXT. Có dòng đầu là số n. Từ dòng kế ghi lần lượt n số cách nhau dấu cách hoặc xuống dòng
KQ ra: ghi file B5.OUT.TXT dòng đầu ghi số lượng số nguyên tố dòng kế ghi 10 giá trị số nguyên tố lớn hơn cả được cách nhau bằng dấu cách
BÀI 2
Viết chương trình đọc các dòng trong một file văn bản độ dài dòng (255 ký tự, số dòng ≤ 50000). Tính ra số từ trong file( từ nằm trọn trên dòng), và dòng có số từ nhiều nhất là bao nhiêu từ, có bao nhiêu dòng như vậy.
Dữ liệu vào : file B6-INT.TXT gồm nhiều dòng văn bản.
KQ ra: file B6-OUT.TXT dòng đầu ghi tổng số từ vủa file, dong 2 ghi số từ nhiều nhất của 1 dòngvà số dòng có số từ nhiều nhất
5+5=10
mn ơi
mai cs ai thi hk kỳ ko ạ
mai mk thi văn vs A
hồi hộp wá,có ai giống mk ko
mai ai thi giống mk thì cố lên nhé
mau kb vs mk để lấy động lực nào
mk ch thi, mk tuần sau ms thi bn! chúc bn thi tốt hey!
cố gắng lên nhé, đạt đc điểm 10, lm bài thật xuất sắc luôn nha!
tìm x biết:
x + 5/2 . x - 3/2 = 9/4
( giúp mk vs nha mai mk nộp bài r )
x + 5/2 . x - 3/2 = 9/4
<=> x( 1+ 5/2 ) - 3/2 = 9/4
<=> x . 7/2 = 9/4 + 3/2
<=> x .7/2 = 15/4
<=> x = 15/4 : 7/2
<=> x = 15/14
TA CÓ:
X + 5/2 . X - 3/2 = 9/4
X + 5/2 .X = 9/4 +3/2 = 15/4
(X . 1) + (5/2 . X) = 15/4
X . (1 + 5/2) =15/4
X . 7/2 = 15/4
X = (15/4) / (7/2)
X = 15/14
DỄ ÒM MÀ
BẠN HỌC TRỪNG NÀO MÀ MAI NỘP VẬY
Tính giá trị biểu thức :
P = (10×10^2×10^3 ... 10^9)÷ (10^5× 10^10× 10^25)
Q= (2^9×3+2^9×5)÷ 2^12
1500×{5^3× 2^3 - 11×[7^2-5×2^3+8×(11^2-12^1]}
3^2×10^3-[13^2-5^2×4+2^2×15]×10^3
Mấy bạn ơi giúp mk vs mk đang cần gấp nạn nào biết làm thì giúp mk nha
Q=(2^9.3+2^9.5):2^12
Đặt A=2^9.3+2^9.5
A=2^9.(3+5)
A=2^9.8
Mặt khác:8=2^3
=>A=2^9.2^3
A=2^12
Theo đề bài ta có Q=(2^9.3+2^9.5):2^12
=>Q=2^12:2^12
Q=1
Nhìn dài dòng thế thôi chứ đơn giản lắm.Nếu thấy đúng thì cho mình nhé!
bạn nào có đề thi t.a để ôn, bình luận giúp mk vs ạ. Mai e mk thi rùi ạ!!!
Đề t.a lớp 5 cho e mk
I. Phonics:
Odd one out:
1. A. story | B. worry | C. fly | D. study |
2. A. ride | B. | C. nice | D. fish |
3. A. fever | B. very | C. bed | D. well |
4. A. school | B. chocolate | C. child | D. children |
5. A. many | B. animal | C. engineer | D. friend |
Odd one out:
6. A. singer | B. worker | C. farmer | D. engineer |
7. A. cartoon | B. programme | C. music | D. classroom |
8. A. garden | B. question | C. delicious | D. water |
9. A. intelligent | B. greedy | C. princess | D. favourite |
10. A. character | B. apple | C. because | D. stupid |
II. Vocabulary:
Odd one out:
11. A. engineer | B. teacher | C. farm | D. doctor |
12. A. stomachache | B. headache | C. fever | D. school |
13. A. bike | B. motorbike | C. plane | D. comic |
14. A. write | B. read | C. song | D. sleep |
15. A. apple | B. fox | C. elephant | D. lion |
Choose the correct answer:
16. What would you to be in the future? – I’d to be _____ writer.
A. a
B. an
C. Ø
D. the
17. I think Tam is _______.
A. greedy
B. kind
C. ugly
D. stupid
18. My favourite book is _______.
A. comics
B. songs
C. TV
D. children
19. The main character in Snow White is _______.
A. the princess
B. Snow White
C. Doraemon
D. Tom
20. Trung would to be a _______ in the future.
A. pilot
B. engineer
C. artist
D. architect
21. What are you doing? – I am _______ my favourite books.
A. read
B. reading
C. listen
D. listening
22. Nam has a high temperature. He has a/an _______.
A. earache
B. stomachache
C. fever
D. toothache
23. Why do you would to be a teacher? - _______ I’d to teach children.
A. When
B. Because
C. What
D. Where
24. Why would you to be a nurse? - _______.
A. Because I would to look after the patients.
B. Because I would to teach the children.
C. Because I would to write stories for children.
D. Because I would to fly a plane.
25. Linda has a pain in her throat. She has a/an _______.
A. toothache
B. sore throat
C. earache
D. backache
26. Don’t ride your _____ so fast!
A. car
B. matches
C. bike
D. stairs
27. You shouldn’t play with the knife because it’s _______.
A. small
B. sharp
C. tall
D. deep
28. What is she doing? – She _______ with matches.
A. are playing
B. was playing
C. is playing
D. am playing
29. What’s the ______ with you, Tony? – I’ve got a fever.
A. problem
B. matter
C. happiness
D. luck
30. What do you do in your free time? – I surf _______.
A. the Internet
B. comics
C. homework
D. flowers
31. John is riding his bike _______ the park.
A. on
B. at
C. above
D. in
32. I love karate. I _______ karate every day.
A. work
B. make
C. do
D. clean
33. Hoa often _______ to the music club every Sunday.
A. goes
B. does
C. listens
D. climbs
34. They _______ and singing songs.
A. dancing
B. climbing
C. going
D. doing
35. A: Thanks for your lovely gift.
B: ________.
A. You’re welcome
B. Go ahead!
C. I’m sorry!
D. Don’t worry about it!
36. Quan has a pain in his stomach. He has a/an _______.
A. toothache
B. stomach ache
C. sore throat
D. headache
III. READING
Task 1. Look and write the correct words.
Toothache/ bus stop/ pilot/ rice/ The story of Tam and Cam/
37. It’s a fairy tale about two sisters. ______________
38. He has a pain in her tooth. ________________
39. A person who flies or is qualified to fly an aircraft or spacecraft. ____________
40. A Southeast Asian grass widely grown in warm wet areas especially for its seeds which are used for food. _________________
41. A place where a bus regularly stops, usually marked by a sign. _________________
Task 3: Read and answer the questions.
Hi, I’m Mai. My hobby is reading folk tales. Folk tales are usually short and interesting. They often give me one surprise after another. The character are sometimes honest, sometimes greedy, sometimes wise, and sometimes stupid. I The Fox and the Crow very much. The Fox was clever and the Crow was not. The Crow lost its delicious meat and the Fox got it. I love folk tales very much because each of them gives me a lesson in life.
49. What kinds of stories does Mai reading?
____________________________________________________.
50. What does she think of folk tales?
____________________________________________________.
51. What does she think of the characters in folk tales?
____________________________________________________.
52. What does she think of the characters in The Fox and the Crow?
_________________________________________________
35 đề thi học kì 2 môn tiếng Anh lớp 5 năm 2021 có đáp án - 35 Đề thi tiếng Anh lớp 5 học kì 2 năm 2020 - 2021 - VnDoc.com
T.a lớp mấy à bạn?
Tính hợp lý giá trị biểu thức
A=(-3/4+2/3).11/9+(-1/4+1/3):|-9/11|
Giải giúp mk vs ạ mk cảm ơn trc ạ
A=(-3/4+2/3).11/9+(-1/4+1/3):|-9/11|
\(=\left(-\frac{3}{4}+\frac{2}{3}\right).\frac{11}{9}+\left(-\frac{1}{4}+\frac{1}{3}\right).\frac{11}{9}\)
\(=\frac{11}{9}\left(-\frac{3}{4}+\frac{2}{3}-\frac{1}{4}+\frac{1}{3}\right)\)
\(=\frac{11}{9}\left(-1+1\right)\)
\(=\frac{11}{9}.0\)
=0
(2) giải pt:
a) \(\sqrt{4-2x}=5\)
b) \(\sqrt{25\left(x+1\right)}+\sqrt{9x+9}=16\)
\(\sqrt{4x^2+12x+9}=4\)
giúp mk vs ạ mai mk hc rồi
a, ĐKXĐ: \(x\le2\)
\(\sqrt{4-2x}=5\\ \Leftrightarrow4-2x=25\\ \Leftrightarrow2x=-21\\ \Leftrightarrow x=-10,5\left(tm\right)\)
b, ĐKXĐ: \(x\ge-1\)
\(\sqrt{25\left(x+1\right)}+\sqrt{9x+9}=16\\ \Leftrightarrow5\sqrt{x+1}+\sqrt{9\left(x+1\right)}=16\\ \Leftrightarrow5\sqrt{x+1}+3\sqrt{x+1}=16\\ \Leftrightarrow8\sqrt{x+1}=16\\ \Leftrightarrow\sqrt{x+1}=2\\ \Leftrightarrow x+1=4\\ \Leftrightarrow x=3\)
c, \(\sqrt{4x^2+12x+9}=4\Leftrightarrow4x^2+12x+9=16\\ \Leftrightarrow4x^2+12x-7=0\\ \Leftrightarrow\left(4x^2-2x\right)+\left(14x-7\right)=0\\ \Leftrightarrow2x\left(2x-1\right)+7\left(2x-1\right)=0\\ \Leftrightarrow\left(2x-1\right)\left(2x+7\right)=0\\ \Leftrightarrow\left[{}\begin{matrix}x=\dfrac{1}{2}\\x=-\dfrac{7}{2}\end{matrix}\right.\)
a: \(\Leftrightarrow4-2x=25\)
hay \(x=-\dfrac{21}{2}\)
c: \(\Leftrightarrow\left|2x+3\right|=4\)
\(\Leftrightarrow\left[{}\begin{matrix}2x+3=4\\2x+3=-4\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=\dfrac{1}{2}\\x=-\dfrac{7}{2}\end{matrix}\right.\)