Answer to Question #79275 in C for bindu

Question #79275
John was given a task to make a rectangular box during his innovation competition. He was given with the P cm of wire and S cm2 of special paper. He had to use all the wire (for the 12 edges) and paper (for the 6 sides) to make the box. So what will be the maximum volume of that box?

Input Format

The first line contains n, the number of test cases.
Each test case contains two integers A and B in a line.
Constraints

Resultant to be of two decimal places accuracy.
Output Format

Single lined output for the maximum volume of the made box with 2 two decimal places.
Sample Input 0

2
20 14
20 16
Sample Output 0

3.0
4.15
1
Expert's answer
2018-07-23T07:29:01-0400
Dear bindu, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS