璁茶ВMNTC 313

Posted 浜ょぞ鎯ф亹鐥?,

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了璁茶ВMNTC 313相关的知识,希望对你有一定的参考价值。

MNTC 313 鈥?Assignment 3
1 of 2
A common situation dealt with in engineering and physics is that of projectile motion. The
equation for the height of a projectile, 饾懄 [m], is:
饾憯 = Acceleration due to gravity: 9.81 m/s2
饾憽 = Time (seconds)
饾憠0 = Initial Velocity of Projectile (m/s)
巡0 = Launch Angle (degrees)
饾懄0= Initial height of the projectile (m)
The equation for the vertical velocity of the projectile, 饾懃 [m], is:
饾憠饾懄 = 鈭掟潙旔潙?+ 饾憠0 sin(巡0
).
Write a program using C/C++ to determine the projectile motion (height, vertical velocity) at a
certain time.
MNTC 313 鈥?Assignment 3
2 of 2
Your code should then employ the following logical conditions:
鈥?If time is greater or equal than zero, first print 鈥淧rojectile released鈥?br>o Print the position and velocity value with the following format:
鈥淧osition: xx.xx meters鈥?br>鈥淰elocity value: xx.xx meters/second鈥?br>o If the projectile has a vertical velocity greater or equal than zero, print 鈥淧rojectile
ascending鈥?br>鈻?If the vertical position of the projectile is greater or equal than the initial
vertical position, print 鈥淧rojectile above initial position鈥?br>o Or, if the projectile has a negative vertical velocity, print 鈥淧rojectile descending鈥?br>鈻?If the vertical position of the projectile is greater or equal than the initial
vertical position, print 鈥淧rojectile above initial position鈥?br>鈻?Otherwise, print 鈥淧rojectile below initial position鈥?br>鈥?Or, if time is lower than zero, print 鈥淧rojectile not released鈥?br>Your output must look like:
10,10,45,10
Projectile released
Position: -409.82 meters
Velocity value: -91.03 meters/second
Projectile descending
Projectile below initial position
And for negative time must look like:
-10,10,45,10
Projectile not released
Note: The first line in each example above contains sample inputs passed via the scanf()
statement. Your program should function properly for any inputs. A starter code file has been
provided on OnQ. Download the file, and copy and paste its contents into a new .c/.cpp file in
your IDE. Use pi = 3.14.
Reminder: Please DO NOT include any personal information such as name, student number or
Net ID in your submission. All submissions to Gradescope will be run through plagiarism
detection software.

WX锛歝odehelp

以上是关于璁茶ВMNTC 313的主要内容,如果未能解决你的问题,请参考以下文章

Echars璁茶В鍒嗘瀽

Dubbo婧愮爜璁茶В瑙嗛鏁欑▼

04_渚嬪瓙璁茶В锛歳lViewDemo.exe

涓嶈閿欒繃锛孒adoop銆丼park 鏍稿績鎶€鏈爤璁茶В

鏄撻敊鏄撴贩娣嗙煡璇嗙偣璁茶В绯诲垪锛堜節锛夆€斿缓绔嬪姩鎬佽鍒掓ā鍨嬬殑鍩烘湰姝ラ