All pastes #2107622 Raw Edit

Miscellany

public text v1 · immutable
#2107622 ·published 2012-01-30 02:47 UTC
rendered paste body
/* Name: Brennen Cox
        Project: A2C2P2
        Description: Help to solve to breaking speed over time.*/
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
	double sec, velocity;
	cout << "Press return after entering a answer.\n";
	cout << "Enter in seconds how long the car has been braking.\n";
	cin >> sec;
	velocity = 283.7–(53.2*sec);
	cout.setf(ios::fixed);
	cout.setf(ios::showpoint);
	cout.precision(3);
	cout<< "After" << sec << "seconds of breaking, the velocity of the car is"<< velocity << "ft/s.\n";
}