Cốc Cốc
NPL.Practice.T01_2.pdf -
Google X + (
2) Facebook
drive.google.com/file/d/145A2CSgQ12ywk2tRqKu5YmDMETCA5iDb/view
Problem 01. Draw circle chart
A circular statistical graphic, which is divided into slices to illustrate numerical proportion. Each element in the chart is represented by a central angle. All central angles should be full-fill to the circle.
Australia Other
Canada.
LQ
←
+
←
☆
↓
AI
Zalo
UK
+
USA
f
Friso
To draw circle chart, developer is requested to convert value of array from integers to decimals, each value is convert to number of percent in the total.
Input: array of positive integers
Output: array of decimals, all values are formatted in 2 decimal places with default rounding.
Note: The last value is calculated to fit a circle.
Example:
Input: {1, 1, 2, 3}
Output: {14.29, 14.29, 28.57, 42.85}
In created solution above, create Console Application project name NPL.Practice. T01.Problem01
In Program class, create method with signature:
private static decimal[] DrawCircleChart (int[] chartInput)
Complete code in the method to implement requirement
Add comments to explain your code
Pre to search
Problem 02. Create email address
Test your method with test cases in Main method
Task:
31°C Nhiều mây
1:59 PM
10/24/2023