Hi...
This is my first post and I really need help in my hw because it will be submetted tommorow.
Problem # 1:

Write a program that fill two arrays rad[10] and len[10] by random generator (numbers between 0 and 100). rad[] array represents the (radius) of Cylinder, and array len[] represents length of the cylinder. Then using the two arrays, compute the volume of the cylinder and put the result in another array vol[10]. Then find the maximum volume and print it and its radius and length.

Sample Run:

The radiuses are: 2 99 29 4 1 78 23 56 3 6
The lengths are: 2 3 2 9 6 5 4 2 6 55
The volumes are: 25.12 92325.42 5281.48 452.16 18.84 
95518.80 6644.24 19694.08 169.56 6217.20

See reply to post 3

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.