Question: Plx fix the code and rewrite it thaks #include //Required for cin,cout #include //Required for setprecision(), setw() #include //Required for pow() using namespace std; int

 Plx fix the code and rewrite it thaks #include //Required forPlx fix the code and rewrite it thaks

#include //Required for cin,cout #include //Required for setprecision(), setw() #include //Required for pow() using namespace std; int main() { // Declare objects. double time, velocity, acceleration;

// Get time value from the keyboard. cout > time; velocity = 0; acceleration = 0; // Compute velocity and acceleration. while (time

// Print time, velocity and acceleration.

cout HAND IN LABORATORY TASK: LAB #11 load the PREVIOUS ifwhile1 program MODIFY With "else" velocity 32 time2 (90 time) 1/2 acceleration -9 velocity+log (time) USE pow0, Sqrt0,logo Run and attach output for times 150,30 WITH THE printed program Write comments on the final printed outputs that show the value of time as follows: Use a pencil! This is called playing computer with the control variable (time" here!) (ie "condition" on time controls the while and the if/else) 1. Comment as to what part of the "ifelse" structure is doing the calculations of acceleration and velocity for each output (that is (if or else? Or neither?) and write the values of 'time' that was used to calculate the output? for each output write time Warning the output of time is deliberately not the correct value used to Calculate in most lines. 2. What was the value of time that ended the loop for each input. That is show the exit point and the time value for each input. Careful detailed analyze for the above 3. Hand in a flow chart on this assignment THis IS VERY IMPORTANT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!