- 3
Car wiper simulation
Utilizing the whole programming cycle, implement a C++ program to rotate two dashed lines with the same origin as follows: one dashed line should cover 60 degrees clockwise and back to the origin, while the other one should cover 60 degrees anti-clockwise and back to the origin....assume both of them are vertically positioned at 90 degrees (the origin)....let both move in steps of 10 degrees....incorporate a delay of 2 seconds between the steps.....
11 Réponses
0
It is impossible in SoloLearn
0
But I can do it out of it
0
Okay
What do you suggest
0
Just make for loop in that have three forms
First if i=0 then cout / and clear screen
Second if i=1 then cout __ and clear screen
Thirdly if i=2 then cout \ and clear screen
And just go to the loop more and more
0
How do you incorporate the degrees part because it has to move in steps of 10 degrees
0
In console?
0
Yes
0
It is impossible
0
But you can make it in OOP
0
OOP is fine too
0
Just not using graphics.h header