Chương trình sau đọc dữ liệu từ tệp RESIST.DAT, tính các điện trở tương đương và ghi kết quả ra tệp văn bản RESIST.EQU, mỗi dòng ghi 10 điện trở tương đương của 4 điện trở ở dòng dữ liệu vào tương ứng.

Các câu hỏi liên quan

làm hộ mình 2 bài đầu nha ( làm cả bài 3 cũng đc) Ex 1: Rewrite the following sentences: 1. He can’t go out because he has to study for his exam. => If………………………………………………….. 2. She is lazy so she can’t pass the exam. If………………………………………………………… 3. He will pay me tonight; I will have enough money to buy a car. => If……………………………………………………………. 4. He smokes too much; that’s why he can’t get rid of his cough. => If…………………………………………………………….. 5. She is very shy, so she doesn’t enjoy the party. => If…………………………………………………………….. 6. I will get a work permit. I will stay for another month. => If…………………………………………………………….. 7. He doesn’t take any exercises. He is so unhealthy => If………………………………………………………………. 8. We can’t get the ticket because I don’t have the right change. => If……………………………………………………………….. Ex 2: Rewrite sentences by combining two sentences into one sentence and using suggested clues: 1. The air is so dirty. I sneeze so much. CONDITIONAL SENTENCE TYPE 2 ________________________________________________________________________________ 2. Their children have birth defects. The parents were exposed to radiation. BECAUSE ________________________________________________________________________________ 3. The air pollution causes breathing problems. LEADS ________________________________________________________________________________ Ex 3: Put the verbs in brackets in correct tenses. 1/ If I (have) ________ a typewriter, I could type it myself. 2/ You could make much progress if you (attend) ________ class regularly. 3/ If I (know) ________ his telephone number, I would give it to you. 4/ If he (study) ________ harder, he can pass an exam. 5/ She may be late if she (not hurry) ________. 6/ Tell him to ring me if you (see) ________ him. 7/ What (you do) ________ if you got fat ? 8/ If you are kind to me, I (be) _______ good to you. 9/ He (come) _______ if you waited. 10/ If you (ring) _______ the bell, the servant would come. 11/ If it (not, rain) _______ a lot, the rice crop wouln’t grow. 12 If today (be) _______ Sunday, we wouldn’t have to work. 13/ We lost the match. If you (play) _______ for us, we (win) _______. 14/ They would not be paid unless they (do) _______ their work well.