current position:Home>【C Language】Exercise Questions - Train Encounter - with video explanation

【C Language】Exercise Questions - Train Encounter - with video explanation

2022-09-23 09:23:15Uncle Cookie @Ocean

This article is quoted from the following books written by the author; this article is allowed to be quoted, taught or reprinted for personal study, teaching and other purposes, but the original author "Uncle Ocean Biscuits
Uncle" must be indicated; this article is not allowed to be in paper formexcerpts or adaptations for the purpose of electronic publication.
1. "Python programming foundation and application", Chen Bo, Liu Huijun, Higher Education Press.Free teaching video Python programming foundation and application
2. "Python programming foundation and application experiment tutorial", Chen Bo,Xiong Xinzhi, Zhang Quanhe, Liu Huijun, Zhao Hengjun, Higher Education Press Python Programming Fundamentals and Application Experiment Course
3. "Concise C and C++ Language Course", Chen Bo, manuscript to be published.Free lecture video

(Trains meet) Train A is 150 meters long and has a speed of 15 meters per second; train B is 200 meters long and has a speed of 12 meters per second.How long does it take for two trains to move towards each other, from the time the front ends of the trains meet until the rear of the two trains separate?Please program the solution and output the result with two decimal places in seconds.

2_1_Train meet

The lesser of two evils

Instead of letting students search and copy answers online, it is better to allow students to watch the video once, listen to the teacher once, and then copy, debug, and submit.

In order to help more young friends learn programming well, the author opened two free online courses on station B, one with zero basics in Python, and one with zero basics in C and C++.

Concise C and C++
created by Uncle Ocean Biscuits who is good at teaching in the programming world and specializing in programming in the teaching world
Python Programming Fundamentals and Applications
Good at teaching by the programming world, teaching by the worldCreated by Uncle Ocean Biscuit with special programming

If you think the paper book looks more comfortable, there are currently two Python, C and C++ in the process of publishing.

Python programming foundation and application

Python programming foundation and application experiment tutorial
insert image description here

copyright notice
author[Uncle Cookie @Ocean],Please bring the original link to reprint, thank you.
https://caren.inotgo.com/2022/266/202209230906463010.html

Random recommended