- 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.....

21st May 2020, 10:34 AM
Sandra Awuor
Sandra Awuor - avatar
11 Antworten
0
It is impossible in SoloLearn
21st May 2020, 10:55 AM
ycsvenom
ycsvenom - avatar
0
But I can do it out of it
21st May 2020, 10:55 AM
ycsvenom
ycsvenom - avatar
0
Okay What do you suggest
21st May 2020, 10:56 AM
Sandra Awuor
Sandra Awuor - avatar
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
21st May 2020, 11:01 AM
ycsvenom
ycsvenom - avatar
0
How do you incorporate the degrees part because it has to move in steps of 10 degrees
21st May 2020, 11:07 AM
Sandra Awuor
Sandra Awuor - avatar
0
In console?
21st May 2020, 11:13 AM
ycsvenom
ycsvenom - avatar
0
Yes
21st May 2020, 11:15 AM
Sandra Awuor
Sandra Awuor - avatar
0
It is impossible
21st May 2020, 11:15 AM
ycsvenom
ycsvenom - avatar
0
But you can make it in OOP
21st May 2020, 11:16 AM
ycsvenom
ycsvenom - avatar
0
OOP is fine too
21st May 2020, 11:19 AM
Sandra Awuor
Sandra Awuor - avatar
0
Just not using graphics.h header
21st May 2020, 11:19 AM
Sandra Awuor
Sandra Awuor - avatar