Total Marks: 20
Please read the following instructions carefully before submitting assignment:
Read and follow the instructions given in document inside the Help folder attached.
It should be clear that your assignment will not get any credit if:
The objective of this assignment is to;
In this assignment, you are provided with a small startup code attached with this assignment in folder “StartupCode”. Your job is to slightly modify this code as desired in this assignment.
First, you need to understand the working of the given code and execute it in Dev-C++. This program essentially draws some text, a line and a point on screen as shown in following screenshot.
By opening rotation.dev project file in Dev-C++ and successful compilation, execution, you will see the above output. Notice the small Dot near the middle of screen; this is our center of rotation.
Your task is to add few lines of code in order to rotate the line around the “point near the center” as shown in “DesiredSolution.exe”. Each time, you press Spacebar button on the keyboard, the line is slightly moved along the circular path. If keep on press the spacebar, the line will keep revolving around this central point. This simply requires only few lines of code to modify the x and y coordinates of the Line. You shall add your code inside the while loop in the areas indicated with comments “Add your code here to modify coordinates of Line”.
Hint: You have to use your mathematical skills in order to calculate the coordinates of Line for its rotation about the given point.
Screenshot of the desired output:
You are required to submit your solution through LMS in zip format containing two files.
last hours complete hony waly hain aur koi correct code nahi share kr raha.
koi to ha jo chala raha ha
Very simple code frndz
to share karo phir
bachon ki jaan lene ka irda he plz upload kar do ab to
changing bi karni he
10 min k liye solution post kr do bad ma delete kr lena .....
koi lafz logo k chahray pa nahi likha hota........
isi tarha sa pahchane jate hain. SADIMA