TAILIEUCHUNG - c for engineers and scientists introduction to programming with ansi c phần 3

Viết, biên dịch, và thực hiện một chương trình C có tính kháng kết hợp của ba điện trở song song. Các giá trị của điện trở mỗi nên được chấp nhận bằng cách sử dụng một scanf () (sử dụng công thức cho sức đề kháng tổng hợp được đưa ra tại Tập thể dục 24 mục ). | The scanf Function 117 V2 where I E Rl R2 . Using these equations write compile and execute a c program that prompts the user for values of E Rl and R2 calculates the voltage drop and power delivered to R2 and displays the results. Check your program using this test data E 10 volts R1 100 ohms and R2 200 ohms. When you have completed your verification use your program to complete the following table R1 volts R2 ohms R3 ohms 3000 3000 3000 6000 6000 6000 2000 3000 1000 2000 4000 5000 4000 2000 1000 10000 100 100 Combined Resistance ohms 13. Write compile and execute a c program that computes the combined resistance of three parallel resistors. The values of each resistor should be accepted using a scanf statement use the formula for combined resistance given in Exercise 24 of Section . Verify the operation of your program by using the following test data Test data set 1 R1 1000 R2 1000 and R3 1000. Test data set 2 R1 1000 R2 1500 and R3 500. When you have completed your verification use your program to complete the following table E volts R1 ohms R2 ohms Voltage Drop volts Power Delivered watts 10 100 100 10 100 200 10 200 200 20 100 100 20 100 200 20 200 200 14. Using scanf statements write compile and execute a c program that accepts the X and y coordinates of two points. Have your program determine and display the midpoints of the two points use the formula given in Exercise 26 of Section . Verify your program using the following test data Test data set 1 Point 1 0 0 and Point 2 16 0 Test data set 2 Point 1 0 0 and Point 2 0 16 Test data set 3 Point 1 0 0 and Point 2 -16 0 Test data set 4 Point 1 0 0 and Point 2 0 -16 Test data set 5 Point 1 -5 -5 and Point 2 5 5 When you have completed your verification use your program to complete the following table. 118 Chapter Three Completing the Basics Point 1 Point 2 Midpoint 4 6 16 18 22 3 8 12 -10 8 14 4 -12 2 14 -4 -4 -6 20 16 -4 -6 -16 -18 15. Write compile and execute a c program that calculates and .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.