![jenny3661](/avatars/41737.jpg)
jenny3661
24.04.2021 •
Computers and Technology
I need help with this in C# because i have no clue how to do it. please help. Using C# Create a class named Circle with fields named radius, area, and diameter. Include a constructor that sets the radius to 1. Also include public properties for each field. The Radius Property should have get and set accessors, but Area and Diameter should be read-only. The set accessor for the radius should also provide values for the diameter and area. (The diameter of a circle is twice its radius; the area is pi multiplied by the square of the radius. You can use the public Math class property Math.PI for the value of pi.) Create a class named TestCircles whose Main() method declares three Circle objects. Assign a small radius value to one Circle and assign a larger radius value to another Circle. Do not assign a value to the radius of the third circle; instead, retain the value assigned at construction. Display the radius, diameter, and area for each Circle. (Display the area to two decimal places.) Save the program as TestCircles.cs
Solved
Show answers
More tips
- F Food and Cooking How to Get Reconfirmation of Registration?...
- C Computers and Internet How to Get Rid of Spam in ICQ?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
- F Family and Home How to Get Rid of Your Neighbors?...
- S Society and Politics How Could Nobody Know About the Dead Mountaineers?...
- H Health and Medicine How to Cure Adenoids?...
- H Health and Medicine Why Wearing a Back Brace Can Be Beneficial During Back Strain?...
- S Sport When and Where Will the 2014 World Cup be Held?...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
Answers on questions: Computers and Technology
- C Computers and Technology Which of the following is a true statement? Question 33 options: Data entities correspond to sources/sinks on a data flow diagram. An entity type is described many times in the...
- M Mathematics Which table shows the same relationship as the graph? Explain thank you!...
- M Mathematics The distance between dallas and houston is 244 miles. how far is the distance in feet...
- B Business Jessica is hired to keep the books and pay the bills for a small company. She provides aNo resource for the firm....
Ответ:
yes it makes since and the midpoint is the middle value between the two points.
Step-by-step explanation:
example
point 1 (2,3)
point 2 (6, -1)
midpoint
(2+6)/2 for x
(3+(-1))/2 for y
x = 8/2 = 4
y = 2/2= 1
so midpoint on line between 2 points is (4, 1)