Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Compile and run line.cpp. Try changing the coordinate system. /* Program: line.cpp */ #include ccc_win.h int ccc_win_main() { Point p(1, 3); Point q(4, 7); Line

Compile and run line.cpp. Try changing the coordinate system.

/* Program: line.cpp */

#include "ccc_win.h" int ccc_win_main()

{

Point p(1, 3);

Point q(4, 7);

Line s(p,q);

cwin << s ;

s.move(2,5);

cwin << s ; return 0;

}

Now input an integer value altitude and use a loop to write your own graphics program 'fall.cpp' that produces a graphic representation of falling object (e.g. circle). An object has initial downward velocity 0. Each second, it's velocity increases by 32 ft/sec. Plot the descent of the falling object. Note that terminal velocity is 174 ft/sec so the object's velocity cannot exceed that speed.

Now modify your program to read an integer variable secondstoopen to open a parachute after n seconds. Assume the velocity decreases by 100 ft/sec after the chute opens until the downward velocity hits 17 ft/sec.

Note that outside the bottom of the loop is the code for where the chutist has landed ... put a message there.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

Identify the three general schools of counseling.

Answered: 1 week ago

Question

Develop successful mentoring programs. page 400

Answered: 1 week ago