nyadimo
Junior Member level 2
hi i appreciate your assisstance.
how would you approach these two questions.
1) The distance between 2 points in a co-ordinate system is given by the formula
√(x1-X2)²+ (y1-y2)²
Write a program to read in the coordinates of two points and write out the distance between them.
2) Statistics of the rainfall for a town has been collected for ten years. Write a program to read the in the information for ten years and present the results in form of a histogram. Assume the rainfall ranges from 0-200 mm. (output as a horizontal histogram)
the codes would be appreciated
how would you approach these two questions.
1) The distance between 2 points in a co-ordinate system is given by the formula
√(x1-X2)²+ (y1-y2)²
Write a program to read in the coordinates of two points and write out the distance between them.
2) Statistics of the rainfall for a town has been collected for ten years. Write a program to read the in the information for ten years and present the results in form of a histogram. Assume the rainfall ranges from 0-200 mm. (output as a horizontal histogram)
the codes would be appreciated