Beginner C/C++

Moderators: None (Apply to moderate this forum)
Number of threads: 5423
Number of posts: 16952

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
C++ help physics coding Posted by sgavit2010 on 27 Jan 2011 at 10:47 PM
I needed help to write a program that calculates the acceleration (m/s 2) of a jet fighter launched from an aircraft-carrier based catapult, given the jet’s takeoff speed in km/hr and the distance(meters) over which the catapult accelerates the jet from rest to takeoff. Assume constant acceleration. Also calculate the time (seconds) for the fighter to be accelerated to takeoff speed. When you prompt the user, be sure to indicate the units for each input. For one run, use a takeoff speed of 278 km/hr and a distance of 94 meters.

Relevant formulas
v = at
s = ½ at 2
v = velocity, a = acceleration, t =time, s=distance
i got it half way through as i just started with c++ a few weeks ago i m still confused on what terms to give and what if statements and what comments to state.(source code only)
help would be gladly appreciated.
thanks
Shreyas.
Report
Re: C++ help physics coding Posted by CprogramC on 17 Feb 2011 at 6:24 AM
real-time simulation or pre simulated?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.