إسأل مهندسة حاسوب الآن

المهندسه روان الريماوي

المهندسه روان الريماوي

مهندسة حاسوب

الأسئلة المجابة 14191 | نسبة الرضا 97.7%

اختصاصي حاسوب

A point in the x-y plane is represented by its...

تم تقييم هذه الإجابة:
A point in the x-y plane is represented by its x-coordinate and y-coordinate. Design a class, point Type, that can store and process a point in the x-y plane. You should then perform operations on the point, such as setting the coordinates of the point, printing the coordinates of the point, returning the x-coordinate, and returning the y-coordinate. Also, write a program to test various operations on the point. 3. Every circle has a center and a radius. Given the radius, we can determine the circle's area and circumference. Given the center, we can determine its position in the x-y plane. The center of the circle is a point in the x-y plane. Design a class, circleType, that can store the radius and center of the circle. Because the center is a point in the x-y plane and you designed the class to capture the properties of a point in Programming Exercise 3, you must derive the class circleType from the class pointType. You should be able to perform the usual operations on the circle, such as setting the radius, printing the radius, calculating and printing the and circum- ference, and carrying out the usual operations on the center. Also, write a 4. program to test various operations on a circle. اريد هذا السؤال ملف Pdf ويكون الحل بواسطة برنامج code block اي الحل بلغة سي++

إطرح سؤالك

إجابة الخبير: المهندسه روان الريماوي

المهندسه روان الريماوي

المهندسه روان الريماوي

مهندسة حاسوب

الأسئلة المجابة 14191 | نسبة الرضا 97.8%

C ++ circuit drawing code :
#include <stdio.h>
 
#include <conio.h>
 
#include <graphics.h>
 
int r=100, xc=320,yc=240,x,y
 
float p;
 
void main ()
 
{
 
int gd=DETECT,gm;
 
initgraph(&gd,&gm,"");
 
p=5/4-r;
 
x=0;
 
y=r;
 
do {x++;
 
if (p<0)p+=2*x+1;
 
else{y--;
 
p+=2*x+1-2*y;}
 
putpixel(y+xc,x+yc,12);
 
putpixel(x+xc,-y+yc,13);
 
putpixel(-y+xc,-x+yc,7);
 
putpixel(-x+xc,y+yc,Cool;
 
}while();
 
closegraph();
 
}
 
to learn C ++ programming
- You can learn C ++ through the udemy educational platform and watch the course by clicking here
The Unreal Engine Developer Course - Learn C++ & Make Games
learn C++ From Beginner to Expert

إسأل مهندسة حاسوب

المهندسه روان الريماوي

المهندسه روان الريماوي

مهندسة حاسوب

الأسئلة المجابة 14191 | نسبة الرضا 97.7%

  • 100% ضمان الرضا
  • انضم الى 8 مليون من العملاء الراضين
المحادثات تتم ضمن هذه البنود

في الأخبار